Ok, guys, just for the upgrade, I post here an update of the code. Still very Beta working on it... (attributes with both one-time prices and normal prices doesn't yet work).
For it to work, you have also to include:
Code:
foreach($quantityDiscounts as $key=>$quantityDiscount) {
//calculations for the js code
$js_quantity_discount[] = array(
'qty' =>trim( $quantityDiscount['show_qty'], "+" ),
'price' =>trim( $currencies->display_price($quantityDiscount['discounted_price'], zen_get_tax_rate($products_tax_class_id)), "$" )
);
}
//output for the js code
echo '<div id="js_qty_discount">';
foreach ($js_quantity_discount as $k=>$current_discount){
echo $current_discount['qty'] . "," . $current_discount['price'] . ";";
}
echo '</div>';
on the tpl_modules_products_quantity_discounts.php file
Right now not much time to explain, so I will check later.
Again, thanks you all and Chrome for the base mod...
will be working on this...
Bookmarks