Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 Distorted images on "random products"
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

go4gold
VP-CART New User

151 Posts

Posted - November 30 2006 :  05:40:11  Show Profile  Visit go4gold's Homepage  Reply with Quote
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

Posted - November 30 2006 :  08:27:10  Show Profile  Visit devshb's Homepage  Reply with Quote
if you edit tmp_frontpage.htm in notepad (which is where that format comes from), then you'll see the image has a fixed width and height; if you change it to have either a fixed width, or a fixed height (but not both) then they won't get distorted.

ie change:
<img src="[Cimageurl]" width='60' height='60' border='0'>
to something like:
<img src="[Cimageurl]" width='60' border='0'>

if you're after a fuller more flexible/dynamic way of sizing images for all areas for products/categories, then have a look at:

Dynamic Image Sizing (for product and/or category images) :
http://www.bigyellowzone.com/shopexd.asp?id=85

On a similar subject, you might also like:
Image Defaulting (for product and/or category images) :
http://www.bigyellowzone.com/shopexd.asp?id=77


Sizing+Defaulting Combined:
http://www.bigyellowzone.com/shopexd.asp?id=86

Missing Images Report:
http://www.bigyellowzone.com/shopexd.asp?id=82

or, if you want a package with pretty much everything related to images, including zoomer, multiple-images per product etc etc:
Image Mega Bundle:
http://www.bigyellowzone.com/shopexd.asp?id=93

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

Edited by - devshb on November 30 2006 08:47:45
Go to Top of Page

go4gold
VP-CART New User

151 Posts

Posted - November 30 2006 :  13:25:39  Show Profile  Visit go4gold's Homepage  Reply with Quote
Many thanks devshb, that's sorted it!

Go4Gold
Go to Top of Page

frank Cochrane
Starting Member

United Kingdom
11 Posts

Posted - December 04 2006 :  11:06:13  Show Profile  Reply with Quote
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
Go to Top of Page

devshb
Senior Member

United Kingdom
1904 Posts

Posted - December 04 2006 :  14:04:08  Show Profile  Visit devshb's Homepage  Reply with Quote
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00