• Resolved navyspitfire

    (@navyspitfire)


    I am looking to see if this is possible: configure the plugin to give me a 50% off code off a product in the cart only if another product is in the cart (must enter code). Meaning I somehow set a product to accept a coupon code only if a certain product is in the cart as well.

    So this almost works perfectly. I have two lists, one with products that give 50% off if they are in the cart, another that take the discount if aforementioned products are in the cart.

    I have two issues though, does the free or pro plugin fix this?

    1) For products that I put in list to receive a discount, on their product page, the price shown is already the price reduced by 50% (the original price has a strikethru); the price on the product page should show the full amount, then only in the cart page should it show the discounted price

    2) Is there a way to make it a coupon so the user has to enter it instead of it automatically applying?

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Hermann LAHAMI

    (@mano88)

    Hello,
    If you want to apply the discount only on the cart and checkout pages, you should use the discount off the order subtotal. Will that work for you?

    Thread Starter navyspitfire

    (@navyspitfire)

    What about my #1 issue? Can the discount not be displayed on the product page? Right now items in my list that can be discounted already show a discounted price when you visit their product pages, while it should only display their full price until they are in the cart.

    Plugin Author Hermann LAHAMI

    (@mano88)

    That is what i was trying to explain. Discount on products prices are displayed everywhere the price is displayed. So we currently don’t limit where they are displayed. But discounts on the cart subtotal are only displayed in the cart, so if you don’t mind displaying the discount as a single amount below the cart subtotal, you should use that feature instead of the products discount.

    Thread Starter navyspitfire

    (@navyspitfire)

    Hmm my issue is I don’t want the discounted price shown on the single product page

    Plugin Author Hermann LAHAMI

    (@mano88)

    Hello,
    Please apply these modifications in /plugins/woo-all-discounts/includes/class-wad-discount.php

    function get_sale_price
    replace the line
    if ((is_admin() && !is_ajax()
    by
    if ((is_admin() && !is_ajax())||is_singular("product")|| is_shop()|| is_product_category())

    function get_regular_price
    replace the line
    if ((is_admin() && !is_ajax())
    by
    if ((is_admin() && !is_ajax())||is_singular("product")|| is_shop()|| is_product_category())

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Coupon that gives % off of specific item if another specific item is in the cart’ is closed to new replies.