Author |
Topic |
|
Joff
Starting Member
United Kingdom
43 Posts |
Posted - April 19 2007 : 09:24:14
|
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
|
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 /> |
|
|
Joff
Starting Member
United Kingdom
43 Posts |
Posted - April 19 2007 : 11:27:25
|
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 |
|
|
stone5150
VP-CART New User
USA
186 Posts |
Posted - April 19 2007 : 12:16:32
|
Check for any basic HTML errors right before that line. |
|
|
Joff
Starting Member
United Kingdom
43 Posts |
Posted - April 19 2007 : 14:31:34
|
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. |
|
|
Joff
Starting Member
United Kingdom
43 Posts |
Posted - April 20 2007 : 03:19:13
|
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. |
|
|
Joff
Starting Member
United Kingdom
43 Posts |
Posted - April 20 2007 : 03:21:07
|
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.
|
|
|
devshb
Senior Member
United Kingdom
1904 Posts |
Posted - April 20 2007 : 05:30:54
|
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 |
|
|
Joff
Starting Member
United Kingdom
43 Posts |
Posted - April 20 2007 : 06:23:04
|
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. |
|
|
Joff
Starting Member
United Kingdom
43 Posts |
Posted - April 20 2007 : 06:24:57
|
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 |
|
|
devshb
Senior Member
United Kingdom
1904 Posts |
Posted - April 20 2007 : 07:02:16
|
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 |
|
|
Joff
Starting Member
United Kingdom
43 Posts |
Posted - April 20 2007 : 11:25:46
|
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 |
|
|
Joff
Starting Member
United Kingdom
43 Posts |
Posted - April 23 2007 : 07:08:49
|
Bump for admin |
|
|
support
Administrator
4679 Posts |
Posted - April 23 2007 : 15:53:08
|
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
|
|
|
Joff
Starting Member
United Kingdom
43 Posts |
Posted - April 23 2007 : 16:15:09
|
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. |
|
|
Joff
Starting Member
United Kingdom
43 Posts |
Posted - April 24 2007 : 10:25:46
|
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? |
|
|
|
Topic |
|