| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Variant chart in product description. | ||||
|
|
Thread Tools | Search this Thread |
#31
|
|||||||
|
|||||||
I've just changed (with the help of geckoday) the variant prices so that they are displayed with a comma, instead of a point.
This was done in /skin1/modules/Product_Options/check_options.tpl. Changing the point on line 276 (price = top+"."+bottom.substr(1,bottom.length) into a comma results in variant prices with a comma. But that doesn't affect the variant prices in this chart mod. They still show a point instead of a comma... Anybody knows where to change this? Thanks in advance!
__________________
X-Cart 4.0.12 Heavy modified with paid, free and forum mods. PHP 5.2.5 | MYSQL 5.0.51a |
|||||||
#32
|
|||||||
|
|||||||
Re: Variant chart in product description.
Quote:
Pretty Please Kevin
__________________
Version 4.1.3 |
|||||||
#33
|
|||||||
|
|||||||
Re: Variant chart in product description.
I believe to change the prices to display correctly with a comma instead of a point when set that way in the admin change {$variants[test].price} to {include file="currency.tpl" value=$variants[test].price}
__________________
Manuka Bay Company X-Cart Version 4.0.19 [Linux] UGG Boots and other fine sheepskin products http://www.snowriver.com |
|||||||
#34
|
|||||||
|
|||||||
Re: Variant chart in product description.
Hi
Im tring to show a variants table on the product page. I have added the following code to the skin1/customer/main/product.tpl but it doesnt work. Is there any reason this will not work in 4.1.3. I have tried with no luck. Code:
Regards Kevin
__________________
Version 4.1.3 |
|||||||
#35
|
|||||||
|
|||||||
Re: Variant chart in product description.
Variant images was mentioned a few posts back... I'm hoping to either figure this out or find a post addressing this.... I would like to have an image box next to the options/variants that would show the variant image (instead of it changing the main image at the top) so that the customer could see what he/she was adding on to the product.
Anyone know of a post regarding this? In the mean time, I'll keep looking and maybe start tinkering ... wish me luck
__________________
X-Cart Gold 4.6.3 Codero dedicated server |
|||||||
#36
|
|||||||||
|
|||||||||
Re: Variant chart in product description.
Refer to this thread....you can see it live here: http://www.taigayarns.net Look at a yarn product....you will see the swatch images that I added.
http://forum.x-cart.com/showthread.php?t=25100 Louise
__________________
Louise Studio 57 Designs - X-Cart Customization Providing X-Cart Services since 2004 Hottest Blog Directory - Submit Your Blog for a Free Listing |
|||||||||
#37
|
|||||||
|
|||||||
Re: Variant chart in product description.
Hi
Thanks for your replies, but what I am trying to do is show a table with; SKU, Description and Price of all variants for a product in a table and display it on skin1/customer/main/product.tpl thats is. There is a version at the begining of this thread (This code is also at the top of this page in another post by me) that works, but not with 4.1.3. Could anyone get this to work. This one is driving me mad!!! Thanks Kevin
__________________
Version 4.1.3 |
|||||||
#38
|
|||||||
|
|||||||
Re: Variant chart in product description.
Here's a version for 4.1.3 that I've modifed for my own benefit. The update excludes from the table, all exceptions that would otherwise be shown. It's not the prettiest code in the world and someone with more tallent could make it a bit slicker....
This goes in to customer/main/product.tpl Code:
Code:
|
|||||||
#39
|
|||||||
|
|||||||
Re: Variant chart in product description.
Simon,
I tried your 4.1.3 version and it shows this SKU16131 Dark chambray 1000 Not available ... price not availabel although the price is there... any suggestions? Andy
__________________
X-Cart version 3.5.9 (online) X-Cart Version 4.0.19 (online) X-Cart Version 4.1.3 (in dev) PHP 4.4.4 MySQL 4.1.21 |
|||||||
#40
|
|||||||
|
|||||||
Re: Variant chart in product description.
Sorry Andy,
Change the line that begins : <td>{if $product.planer_show_price eq 'Y' } to read <td>{include file="currency.tpl" value=$variant.price}</td> That removes the conditional display of the prices (an internal mod I wrote) |
|||||||
|
|||
X-Cart forums © 2001-2020
|