Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Problems and bugs
 $ characters showing after editing tmp_ page
 New Topic  Reply to Topic
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

Joff
Starting Member

United Kingdom
43 Posts

Posted - April 19 2007 :  09:24:14  Show Profile  Reply with Quote
I've edited tmp_topsellers.htm and now when viewing the shop, I get $ characters prefixing the lines (as you would expect in any normal HTML page).

What would cause VP-ASP to stop parsing the $-prefixed lines?

The $ characters are the first character on the line.

$	[cdescription]<br /><br />
$ Price: <span class='price'>[formatcustomerprice cprice]</span>

Displays:
http://joff.org/vpasp_screen1.jpg

Kidd
VP-CART Super User

Australia
373 Posts

Posted - April 19 2007 :  10:18:59  Show Profile  Reply with Quote
the $ sign must be the 1st character on the line, if you have space if will show i.e

correct:
$ [cdescription]<br /><br />

wrong
$ [cdescription]<br /><br />
$ [cdescription]<br /><br />
Go to Top of Page

Joff
Starting Member

United Kingdom
43 Posts

Posted - April 19 2007 :  11:27:25  Show Profile  Reply with Quote
Yup, got that, the $ is the first character, with no leading whitespace. Still have the error.

Edited by - Joff on April 19 2007 11:27:48
Go to Top of Page

stone5150
VP-CART New User

USA
186 Posts

Posted - April 19 2007 :  12:16:32  Show Profile  Visit stone5150's Homepage  Reply with Quote
Check for any basic HTML errors right before that line.
Go to Top of Page

Joff
Starting Member

United Kingdom
43 Posts

Posted - April 19 2007 :  14:31:34  Show Profile  Reply with Quote
I'll take a look tomorrow, but the file is pretty basic and there's nothing else that was changed other than opening it and saving it.
No extra markup was added.
Go to Top of Page

Joff
Starting Member

United Kingdom
43 Posts

Posted - April 20 2007 :  03:19:13  Show Profile  Reply with Quote
I've stripped the tmp_topsellers.htm file down to leave only the following:
$ [formatcustomerprice cprice]
$ <img src="[cimageurl]" />


Two lines in the file, no whitespace before the $ on either line and I still get the $ character showing.
Go to Top of Page

Joff
Starting Member

United Kingdom
43 Posts

Posted - April 20 2007 :  03:21:07  Show Profile  Reply with Quote
Update, I've tried a few different versions of the code and have found that
$ <a href="shopexd.asp?id=[catalogid]&bc=no"><img src="[cimageurl]" border="0" alt=" " title=" " /></a>

Displays no $ character, but
<br />
$ <a href="shopexd.asp?id=[catalogid]&bc=no"><img src="[cimageurl]" border="0" alt=" " title=" " /></a>

does show the character. Removing the break tag and leaving the image on line #2 also shows the $ character.
Go to Top of Page

devshb
Senior Member

United Kingdom
1904 Posts

Posted - April 20 2007 :  05:30:54  Show Profile  Visit devshb's Homepage  Reply with Quote
The dollar trick will only work properly if there's just one template-field on that physical line in the template source.

Also, there are some template-fields where it won't work (I think it won't work for template-fields which don't have arguments but which also aren't column names)

Probably a good idea to add some test lines in the template, and then do a view-source on the product page to see exactly where the $ is appearing, because it might be appearing from another area (eg the customerprice bit) rather than from the image bit.

Simon Barnaby
Developer
[email protected]
www.BigYellowZone.com
Web Design, Online Marketing and VPASP addons

Edited by - devshb on April 20 2007 05:32:30
Go to Top of Page

Joff
Starting Member

United Kingdom
43 Posts

Posted - April 20 2007 :  06:23:04  Show Profile  Reply with Quote
Cheers Simon, I'll give that a try, but how would I split the anchor tag onto two lines?

If the opening "<a href" is conditioned by the $ on a template field, then what about the closing "</a>" tag?

Eg.

$ <a href="shopexd.asp?id=[catalogid]&bc=no">
$<img src="[cimageurl]" border="0" alt=" " title=" " />
</a>


The original page had that code snippet above all on one line, with a $ prefix.
Go to Top of Page

Joff
Starting Member

United Kingdom
43 Posts

Posted - April 20 2007 :  06:24:57  Show Profile  Reply with Quote
Ah, my bad - the original tmp_topsellers.htm looks like this:

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="2" class="ac vt"><span class=hdrproduct><a href="shopexd.asp?id=[catalogid]&bc=no">[cname]</a></span></td>
  </tr>
  <tr>
  	<td width="20%" class="ac vt"><a href="shopexd.asp?id=[catalogid]&bc=no">
$					 <img src="[cimageurl]" border="0" alt=" " title=" " />
	</a></td>
  </tr>
  <tr>
    <td class="ac vt">[cdescription]
		<br /><br />
$ Price: <span class='price'>[formatcustomerprice cprice]</span></td>
   </tr>
  
</table>
<hr />


So somewhere I must have messed about with the image and link line, causing the start of these problems.

I've copied over the original tmp file... but still have the errors!

Edited by - Joff on April 20 2007 06:28:05
Go to Top of Page

devshb
Senior Member

United Kingdom
1904 Posts

Posted - April 20 2007 :  07:02:16  Show Profile  Visit devshb's Homepage  Reply with Quote
I'm wondering if the $ trick doesn't work on the cimageurl on 6.5, because 6.5 uses a missing-image bit of logic in it (ie there's a config option for when the cimageurl is blank) - it might be that.

Simon Barnaby
Developer
[email protected]
www.BigYellowZone.com
Web Design, Online Marketing and VPASP addons
Go to Top of Page

Joff
Starting Member

United Kingdom
43 Posts

Posted - April 20 2007 :  11:25:46  Show Profile  Reply with Quote
Cheers, wonder if this is a bug then and if so I'll open this one up to VPASP staff, hopefully someone's watching :D

Edited by - Joff on April 20 2007 11:26:36
Go to Top of Page

Joff
Starting Member

United Kingdom
43 Posts

Posted - April 23 2007 :  07:08:49  Show Profile  Reply with Quote
Bump for admin
Go to Top of Page

support
Administrator

4679 Posts

Posted - April 23 2007 :  15:53:08  Show Profile  Visit support's Homepage  Reply with Quote
Hi Joff,

If you'd like for us to take a look at this, please open a new helpdesk ticket at https://www.vpasp.com/virtprog/helpdesk/

The replies in here from everyone have addressed the most common known causes of this issue (such as $ not being the first character on the line) however to really be able to debug this for you we will need access to your files.

Thank you

Michael
VPASP SUPPORT

Go to Top of Page

Joff
Starting Member

United Kingdom
43 Posts

Posted - April 23 2007 :  16:15:09  Show Profile  Reply with Quote
Thanks Michael - I was hoping to exhaust all other options first before risking paying for support credits ;)

The site's only being hosted locally at present but I can zip and email the site contents over if that will do. I'll email tomorrow morning anyway.
Go to Top of Page

Joff
Starting Member

United Kingdom
43 Posts

Posted - April 24 2007 :  10:25:46  Show Profile  Reply with Quote
Problem solved!!

Typically, I was just replying to a support email from Billy @ VPASP when I opened up tmp_topsellers.htm in Windows Notepad.

All the file contents were on a single line rather than across multiple lines.

I code on a Mac and access/save files over the network onto a Windows PC so there must be some odd character formatting going on.

Anyone got any clues so this doesn't happen again?
Go to Top of Page
Page: of 2
Previous Topic Topic Next Topic  
Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00