|
|
Re: Better FIX temp Re:Price Variant 1 Year, 11 Months ago
|
Karma: 17
|
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']);
|
|
|
|
|
|
|
|
Re: Better FIX temp Re:Price Variant 1 Year, 11 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...
|
|
|
|
Last Edit: 2011/06/27 08:03 By infinityl.
|
|
|
Re: Better FIX temp Re:Price Variant 1 Year, 11 Months ago
|
Karma: 17
|
|
hmm strange, it should at least show you the special price
check if the json data is correct ?
|
|
|
|
|
|
|
Re: Better FIX temp Re:Price Variant 1 Year, 11 Months ago
|
Karma: 3
|
|
How can i check it?
I send you the site url by pm!
Thanks in advantage for the help
|
|
|
|
|
|
|
Re: Better FIX temp Re:Price Variant 1 Year, 10 Months ago
|
Karma: 17
|
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"
|
|
|
|
|
|
|
|
Re:Price Variant 1 Year, 10 Months ago
|
Karma: 3
|
|
Yes... i see ...
Can you help me to fix it??? What i have to change???
Thanksss!
|
|
|
|
|
|
|