• Resolved jotner

    (@jotner)


    Hi!
    I am trying to test this plugin with a test user. I’m assigning 20% discount to a specific product only to this test user and it works well on frontend (I can see the discounted price while logged in as the test user and the regular price while logged in as anybody else).
    However if my cart is empty I can’t seem to add the product to the cart, I get the error
    Undefined array key "line_total" on line 1234 in class-b2bking-dynamic-rules.php

    If I have 1 or more items in the cart the “Add to cart” button works well

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WebWizards

    (@webwizardsdev)

    Hi there,

    Thanks for using our plugin,

    I am having difficulty replicating the issue in local tests. Can you please help share a screenshot of your dynamic rule so we can see its exact configuration?

    Also:

    • What theme are you using?
    • Are you also using our Premium plugin version?
    • This reply was modified 1 year, 8 months ago by WebWizards.
    Thread Starter jotner

    (@jotner)

    Hi!
    I am using the free plugin on a custom theme. However I tried to use it on a default WP theme (Twentytwentytwo) and the same error came up.

    Plugin Author WebWizards

    (@webwizardsdev)

    Thank you for clarifying,

    I was able to see the issue now when using Twentytwentytwo.

    I have published a plugin update now, version 4.6.36 – I believe it can fix it – please try to update to that and let me know if it solves it for you.

    (if you do not yet see version 4.6.36, please wait an hour or two, sometimes it takes a bit for the update to go through on www.remarpro.com)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can’t add product to cart with discount’ is closed to new replies.