• Resolved Juan Pablo

    (@jupa8)


    Hi, Is possible have discounts in cart and cart totals? I need specify the discounts en car total but also I need discount in single and list products.

    Here and example I made with photo shop.

    https://ibb.co/0Y00VLp

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi

    Thanks for reaching out.

    We understand your concern.
    However, using our plugin it is possible to show only either the strikeout or the discount value.
    Showing both values together might confuse the customer.

    If you wish to show the discount value along with price strikeout, you can give a try using the “you saved” option.

    Here are the available display options in our plugin:
    https://docs.flycart.org/en/articles/4164050-display-settings-from-version-2-0

    Hope this helps!

    Thanks
    Team Flycart

    Thread Starter Juan Pablo

    (@jupa8)

    Thanks for your answer.

    I’m trying to do it manually.
    So theres is a way to check if product has a specific discount?
    I cretaed two discounts, some products can have both, others only one.
    I need separate totals for each discounts, so i need to check if product has both discoutns or only has one discount.

    This is my actual code, but I need to check if has specific discount

    if ( $product->is_on_sale() ) {
    echo $regularPrice * $quantity * 0.19;
    }

    Thanks for help, I bought the pro version plugin.

    • This reply was modified 3 years, 4 months ago by Juan Pablo.
    • This reply was modified 3 years, 4 months ago by Juan Pablo.

    Hi

    Thanks for the reply.

    For getting the applied discount in the cart, the following snippet might help: https://gist.github.com/AshlinRejo/67d9392d78fcde8322e7b9cb2d5af8a0

    You can use this snippet as a reference and customize according to your requirement.

    Hope this helps!

    Thanks
    Team Flycart

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Discount in cart and cart total’ is closed to new replies.