Support » Plugin: WCFM - Frontend Manager for WooCommerce along with Bookings Subscription Listings Compatible » minimum order ammount per store problem with price

  • Resolved nolas154

    (@nolas154)


    Hi, i am using your awesome minimum order ammount code and it seems to work properly, but in my website, this code takes the price without the taxes, and I don’t know how to change it

    Example1:
    minimum amount vendor1: 20€
    total_amount_vendor1 with taxes 20.22€
    total_amount_vendor1 without taxes 18.90€
    The code doesn’t allow the user finish the cart

    Example2:
    minimum amount vendor1: 20€
    total_amount_vendor1 with taxes 25.22€
    total_amount_vendor1 without taxes 21.90€
    The code allow the user finish the cart. Here is OK

    I want to use the “total amount vendor with taxes”. Can anyone help to me, please?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter nolas154

    (@nolas154)

    I need your help please. I dont know how to solve it

    Plugin Author WC Lovers

    (@wclovers)

    Kindly show me a screenshot for your site’s Tax settings.

    Thread Starter nolas154

    (@nolas154)

    Yes of course, here you are https://prnt.sc/tyalnw

    Plugin Author WC Lovers

    (@wclovers)

    Thanks, as I see you are using this option – “Yes, I will enter prices inclusive of tax

    This means you are inserting product cost including tax cost.
    So, if you are entering a product cost 100, it has actual cost + tax cost.

    Now, during min order calculation it’s not considering “100”?

    Or. it’s considering (100 – tax cost) value?

    Thread Starter nolas154

    (@nolas154)

    Thanks for your help, it seems that during the min order calculation its considering (100 – tax cost) value.

    I am testing, and i have just changed the tax option, and the problem is still there

    Here you are a screenshot https://prnt.sc/tycdue

    Thread Starter nolas154

    (@nolas154)

    Hi again, I have checked the code and in the nest action

    “add_action( ‘woocommerce_check_cart_items’, function() {”

    i add ” + $cart_item[‘line_tax’]” to the line

    “$vendor_wise_cart_total[$cart_product->post_author] += $cart_item[‘line_total’]”

    Now is:

    “$vendor_wise_cart_total[$cart_product->post_author] += $cart_item[‘line_total’] + $cart_item[‘line_tax’];”

    It make sense? Its seems that works properly, but I have to do more tests

    What do you think?

    • This reply was modified 3 years, 6 months ago by nolas154.
    Plugin Author WC Lovers

    (@wclovers)

    $vendor_wise_cart_total[$cart_product->post_author] += $cart_item[‘line_total’] + $cart_item[‘line_tax’];

    – Sure, you may change this line like this to consider item Tax for total calculation.

    Thank You

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘minimum order ammount per store problem with price’ is closed to new replies.