Hi,
I know i can't make sale for some product option, only for product, so when I sale from e.g. -200 (1 349 to 1 149) when i pick cheapest option (1 149) old and new price is correct, but when I pick more expensive option (+150) it is show new price correct, but old price is not changing.
I know the code with new price in product/product.tpl is:
<span class="total-price"></span>
and javascript fot that is
function display_total_price() {
$.ajax({
type: 'POST',
url: '<?php echo $calc_total_url;?>',
dataType: 'json',
data: $("#product").serialize(),
success: function (data) {
if (data.total) {
$('.total-price-holder').show();
$('.total-price-holder').css('visibility', 'visible');
$('.total-price').html(data.total);
}
}
});
}
But I am amateur and javascript is not my friend, does somebody know hot to edit to changing old price of product option also?
Or is it some extension where I can edit sale of product option with % or something like that?
I am still learning and testing. - AbanteCart Version 1.2.13
Sorry for bad english
here is example screen:
Thank you for answer