TomatoCart

TomatoCart Community
Welcome, Guest
Please Login or Register.    Lost Password?

Price Variant
(1 viewing) (1) Guest
Go to bottomPage: 12345
TOPIC: Price Variant
*
#13298
Re:Price Variant 3 Years, 3 Months ago Karma: 3
Hi, if you use that fix then if you have diferents images of each variants (example color of a tshirt) the image dont change.

The image, nor quantity, and stock...
infinityl
Moderator
Posts: 136
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#13301
Special price, Who can solve this...Re:Price Variant 3 Years, 3 Months ago Karma: 6
Yes, i noticed,,so it is not really an option.....


Is there anyone here who can modify the script, so that it works?

I have also checked out the latest info.php in SVN, but doesn't make a difference.


So,,,maybe the development team can mean some?

Vincent
vinbo21
Stay positive
Gold Boarder
Posts: 196
graphgraph
User Offline Click here to see the profile of this user
Gender: Male vinbo21@hotmail.com Location: Netherlands Birthday: 10/25
You don't have to be sick to get better
The administrator has disabled public write access.
 
#13303
Re: Price Variant 3 Years, 3 Months ago Karma: 6
Did you already solved this issue?

Vincent
vinbo21
Stay positive
Gold Boarder
Posts: 196
graphgraph
User Offline Click here to see the profile of this user
Gender: Male vinbo21@hotmail.com Location: Netherlands Birthday: 10/25
You don't have to be sick to get better
The administrator has disabled public write access.
 
#13340
Better FIX temp Re:Price Variant 3 Years, 2 Months ago Karma: 6
I have found out a workable solution.

Disable in variants.js (under includes/javascript) the line which gets the productprice, it now works with the product info tab.
........
else {
if (product['quantity'] > 0) {
//$('productInfoPrice').set('text', product['display_price']);]
$('productInfoSku').set('text', product['sku']);
$('productInfoQty').set('text', product['quantity']);
$('productInfoAvailable').set('text', this.options.lang.txtInStock);
...........

Please test it, I dont see any other things which i miss when i do this.


I think it will only work when you have all the same prices in your variants groups. With this line commented out, it will use the price in the main product data tab instead of the price in the variant tab. In my case they are all the same within one variant group, so I think I can temporally us this FIX.

Go to my site if you wanna see this work.

Anybody who test this, please give feed back. Also the "incl tax" text is displayed now. Special Price is also working.

Vincent
vinbo21
Stay positive
Gold Boarder
Posts: 196
graphgraph
User Offline Click here to see the profile of this user
Gender: Male vinbo21@hotmail.com Location: Netherlands Birthday: 10/25
Last Edit: 2011/06/05 17:03 By vinbo21.
You don't have to be sick to get better
The administrator has disabled public write access.
 
#13363
Re: Better FIX temp Re:Price Variant 3 Years, 2 Months ago Karma: 4
//$('productInfoPrice').set('text', product['display_price']);]

This fix stops the change when you have for example 3 variants with a different price. The price don't change anymore.

We are here in the good direction. I think the code must be rewritten to have special prices / incl vat to work normally.
Jonathan
Expert Boarder
Posts: 132
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#13557
Re: Better FIX temp Re:Price Variant 3 Years, 2 Months ago Karma: 18
actually the problem is not within the js script
but inside the product class ( file : include/classes/product.php )
the variant data that was taken from database is not reflected with the special price
you could check on this function iniProductVariants() ;

i have tried modify the product class file, and now the special price is displayed
but still need some verification on this
i'll post it after i could verify the result is correct
int2k
Team Member
Posts: 620
graphgraph
User Offline Click here to see the profile of this user
Gender: Male p_heri2000 duakilo.net@gmail.com duakilodotnet p_heri2000@hotmail.com Location: Indonesia Birthday: 04/28
The administrator has disabled public write access.
 
Go to top Page: 12345
Moderators: creativegenius

Latest Blog Post

TomatoCart v1.1.7 to v1.1.8 Upgrade Guide!

The upgrade guide is a step-by-step tutorial to help users to upgrade TomatoCart v1.1.7 to v1.1.8. If you have not yet updated to v1.1.7, please review its upgrade guide before applying these changes. [...]

By TomatoCart | august 21, 2012

contact_us

info@tomatocart.com
partner@tomatocart.com
Facebook Google+ Linkedin Twitter

Newsletter Subscription

Fork us on GitHub