TomatoCart

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

Price Variant
(1 viewing) (1) Guest
Go to bottomPage: 12345
TOPIC: Price Variant
*
#13561
Re: Better FIX temp Re:Price Variant 3 Years, 3 Months ago Karma: 18
this is the change i made
find this
Code:


 $products_variants[$product_id_string]['price'] = $Qvariants->value('products_price');

        $products_variants[$product_id_string]['display_price'] = $osC_Currencies->displayPrice($Qvariants->value('products_price'), $this->_data['tax_class_id']);


Code:


        $products_variants[$product_id_string]['price'] = $Qvariants->value('products_price');

        $products_variants[$product_id_string]['display_price'] = $osC_Currencies->displayPrice($Qvariants->value('products_price'), $this->_data['tax_class_id']);

// ADD: 20110615
$price = $Qvariants->value('products_price');
if ($osC_Services->isStarted('specials')) {
          global $osC_Specials;

          if ($new_price = $osC_Specials->getPrice(osc_get_product_id($product_id_string, $variants))) {
            $price = $new_price;
          }
        }

$products_variants[$product_id_string]['price'] = $price;
$products_variants[$product_id_string]['display_price'] = $osC_Currencies->displayPrice($price, $this->_data['tax_class_id']);

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.
 
#13901
Re: Better FIX temp Re:Price Variant 3 Years, 2 Months ago Karma: 3
int2k ... that way dont work to me... dont show the special price... only the variant one...

Dont show the Incl. Tax either...
infinityl
Moderator
Posts: 136
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2011/06/27 13:03 By infinityl.
The administrator has disabled public write access.
 
#13905
Re: Better FIX temp Re:Price Variant 3 Years, 2 Months ago Karma: 18
hmm strange, it should at least show you the special price
check if the json data 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.
 
#13937
Re: Better FIX temp Re:Price Variant 3 Years, 2 Months ago Karma: 3
How can i check it?

I send you the site url by pm!

Thanks in advantage for the help
infinityl
Moderator
Posts: 136
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#14064
Re: Better FIX temp Re:Price Variant 3 Years, 2 Months ago Karma: 18
i usually use firebug in firefox, or there's a developer tool also in chrome/safari/opera
the part that keep record of the variant pricing is in this part
Code:


//variants
new TocVariants({
combVariants: $$('tr.variantCombobox select'),
variants: {"35#1:1;2:11":{"variants_id":92,"is_default":1,"sku":"","price":"4343.9322","display_price":"5.125,84\u20ac","status":1,"weight":"100.00","image":null,"groups_id":{"1":"1","2":"11"},"groups_name":{"Color":"Negro","Plazo de entrega": "Consultar"},"filename":"","cache_filename":"","quantity":"1"},"35#1:3;2:11":{"variants_id":94,"is_default":0,"sku":"","price":"4343.9322","display_price":"5.125,84\u20ac","status":1,"weight":"100.00","image":null,"groups_id":{"1":"3","2":"11"} ,"groups_name":{"Color":"Haya","Plazo de entrega":"Consultar"},"filename":"","cache_filename":"","quantity":"1"},"35#1:2;2:11":{"variants_id":93,"is_default":0,"sku":"","price":"4343.9322","display_price":"5.125,84\u20ac","status":1,"weight": "100.00","image":null,"groups_id":{"1":"2","2":"11"},"groups_name":{"Color":"Plata","Plazo de entrega":"Consultar"},"filename":"","cache_filename":"","quantity":"1"}},
productsId: 35,
displayQty: false,
lang: {
txtInStock: 'En Stock',
txtOutOfStock: 'Fuera de Stock',
txtNotAvailable: 'No disponible',
txtTaxText: 'Incluye impuesto'
}
}); 



i noticed that the price and displayed price is not the same
Code:


"price":"4343.9322","display_price":"5.125,84\u20ac"

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.
 
#14126
Re:Price Variant 3 Years, 2 Months ago Karma: 3
Yes... i see ...

Can you help me to fix it??? What i have to change???


Thanksss!
infinityl
Moderator
Posts: 136
graphgraph
User Offline Click here to see the profile of this user
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