• Resolved jensno

    (@jensno)


    Hi. I am using version 2 beta and want to change the calculation. The reason for this is that I use another plugin through which an article can be individually designed. This creates a surcharge for every product.

    Now there is the possibility to calculate the discount by the normal article price (regular price) or the offer price. My individual surcharge is already included in the offer price. I don’t want that. If I use the normal item price, my individual surcharge will be completely ignored.

    I would like to? The discount calculation based on the normal item price and then + my individual surcharge.

    Can someone tell me which file / position is responsible for the calculation of the discount?

    Does anyone have any idea how I could solve my problem?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author flycart

    (@flycart)

    Hi

    Thank you for reaching out. Let us have this checked with our developers to see if this is possible. If possible, we will also get back to you with instructions on the hooks / filters where you can override or customize.

    Since we are located in different timezones and this being a weekend, it might take us sometime to get back to you.

    Really appreciate it.

    Plugin Author flycart

    (@flycart)

    Just wanted to update you on this thread.

    If you would like to adjust (or add something to the price (after the discount)), you can use this hook:
    apply_filters('advanced_woo_discount_rules_discounted_price_of_cart_item', $price, $cart_item, $cart_object);

    Example:

    add_filter('advanced_woo_discount_rules_discounted_price_of_cart_item', function($price, $cart_item, $cart_object){
      $price = $price+10;//Change the price as required.
      return $price;
    }, 10, 3);

    Hope this helps.
    if you have any further questions, please open a ticket at our website.

    Thanks

    Usable. thanks

    Plugin Author flycart

    (@flycart)

    Happy to help

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘regular Price and Sale Price’ is closed to new replies.