AbanteCart Development > Customization help

Options - sale

(1/1)

Reggy:
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:

--- Quote ---<span class="total-price"></span>
--- End quote ---

and javascript fot that is


--- Quote ---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);
            }
         }
      });

   }
--- End quote ---

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

Basara:
Hello.
What is "old" price? On the product page with options we have a "base price" - price entered in product and "total price" - calculated price with selected options and quantity.
When you select another option changed only "total price".

Reggy:
Thank you for answer i need something like total Price + sale price, but it Is in JS. And the solution can be total price + sale price. It must be easy for somebody who understand of this code. Or $calc_total_url + 200 can some work?

Navigation

[0] Message Index

Go to full version
Powered by SMFPacks Social Login Mod