Author |
Topic |
|
go4gold
VP-CART New User
151 Posts |
Posted - November 30 2006 : 05:40:11
|
Hi. The random products images on my home page are being compressed width-ways for some reason, distorting them. Can anyone tell me what I need to do to correct this please?
Thanks in advance.
Go4Gold |
|
devshb
Senior Member
United Kingdom
1904 Posts |
|
go4gold
VP-CART New User
151 Posts |
Posted - November 30 2006 : 13:25:39
|
Many thanks devshb, that's sorted it!
Go4Gold |
|
|
frank Cochrane
Starting Member
United Kingdom
11 Posts |
Posted - December 04 2006 : 11:06:13
|
devshb,
I hope you don't mind me jumping in with a supplementary on distorted images.
I have changed the width and removed the depth and this rectified the distortion, but now I get the $ symbols from the beginning of lines 16 & 17 showing as text before the wording Our Price (which is a format customer price). The same thing happens with the next line - Was - This line should not appear on the site at all.
Could the fact that I have set the pricing to be default =Retail for the rest of the world - And Trade Pricing for those who are registered as Trade Customers when they log in, have any bearing on this - this may seem a bit strange, but I'm clutching at strawn here!
Regards, Frank |
|
|
devshb
Senior Member
United Kingdom
1904 Posts |
Posted - December 04 2006 : 14:04:08
|
if your ccy symbol (eg $) shows-up on a different line to the actual price, eg: $ 10.00
then it's because there's a space in between them in the ccy formatting function. whenever we work on vpasp client sites we always get rid of that spurious space so that it never does a break between the symbol and amt (which only happens when the column is very narrow)....
the fix is...
(i think this is only relevant to early v6 versions or prior, I think later v6 versions already have the space taken out, and in later versions of v6 it's in shopproductsubs2.asp and not shop$db.asp)
in shop$db.asp, look for: Function ShopFormatCurrency
and inside that function, change: getconfig("XCurrencySymbol") & " " & formatNumber (tamount, decimalpoint) to: getconfig("XCurrencySymbol") & formatNumber (tamount, decimalpoint)
the below is probably unrelated, but you mentioned $'s so I thought I'd add it just in case..
if you've got a $ showing up when there shouldn't be one, then it's because the $ trick is not being used in the right way.
make sure the $ is the very first character on that physical line in the template source, and also make sure that you've only got one template-field on that line.
from what I can remember, the $ trick I think only works on certain template-fields; it depends on what kind of fields they are. from what I can remember, it only works on template fields that have arguments, or raw column template fields. but I might be wrong.
in case anyone's not sure about the $ trick and what it does, basically $ signs should only be used as a special character in the templates and not put into the templates like a normal price (you'd use the formatcurrency template-field etc for that)
here's a relevant link to explain how the $ trick works: "How can I avoid printing a product label when the corresponding field is blank?" http://www.bigyellowzone.com/support/issue_view.asp?ID=223&CATE=8
Simon Barnaby Developer [email protected] www.BigYellowZone.com Web Design, Online Marketing and VPASP addons |
Edited by - devshb on December 04 2006 14:25:04 |
|
|
|
Topic |
|