• Good attempt but not currently useable. However I think it is fixable when I get time to go into the code.

    When you share a product then 10% is deducted from the entire cart which is fine. When you share a second product another 10% is deducted from the cart and so on.

    Example. You purchase and share a product for £10.00 and get 10% off.

    £10 – £1 gives cart total of £9

    you then purchase another item for £5
    cart total is £15 minus 10% for first share = £13.50 minus 10% for second share = £12.15 and so on

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

    (@yithemes)

    Hi @ypraise,
    this version of the plugin works in this way:
    if you share a product, you get a discount of 10% valid only for that product;
    if you share a second product, a 10% discount will be applied only to that product, and so on…
    If you need a different discount method, please contact us on https://yithemes.com

    Thread Starter kevin heath

    (@ypraise)

    Hi YITHEMES

    thanks for the reply but you plugin sets the coupon as %cart and each time a product is shared the cart is discounted.

    cart showing cart disocunt

    coupon admin showing coupon set as % basket discount

    I can see in the code you’ve set the coupon type as percent_product but it is being ignored somewhere and the default % cart is being used instead.

    Plugin Author YITHEMES

    (@yithemes)

    Hi @ypraise,
    we found the issue. Please open the file /wp-content/plugins/yith-woocommerce-share-for-discounts/class.yith-wc-share-for-discounts.php and change the row 812 with the following:

    if ( $discount_type == 'percent_product' && version_compare( WC()->version, '2.7.0', '>=' ) ) {

    Please let us know. Meanwhile we send an update with this fix.

    Regards

    Thread Starter kevin heath

    (@ypraise)

    Hi

    Thanks that has do the trick and everything is working perfectly.

    Thanks again.

    Plugin Author YITHEMES

    (@yithemes)

    Hi @ypraise,
    thanks to you for reporting this problem. And thank you also for having changed your opinion on the plugin ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Excellent product and fast support’ is closed to new replies.