Jump to content

Incorrect width calculation by smarty?


Recommended Posts

Hi there,

I have a slight issue where it appears the following code (for thumbs_list_frame) is exceptionally large:

width: {math equation="width * nbImages" width=80 nbImages=$images|@count}px" 



is producing a width of 2883px

Could anybody give a bit of guidance as to how it is arriving at such a large number? Each of these thumbs are only 80px wide each. I'm guessing the part '$images|@count' is somehow "wrong", to put it simply. Even still, 2883 doesn't break into 80's evenly so I'm struggling to debug this.

Any help would be greatly appreciated!

You can see this @ http://en.surfer-girl.com/store/product.php?id_product=7

Tx!

edit: this is in product.tpl

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...