Okay
  Public Ticket #3071443
Free shipping
Closed

Comments

  •  16
    Ivy started the conversation

    Hi,

    I would like to use your dynamic rule for shipping but want to know if we can categorize it with shipping class rather than product or variation id because we have too many products to add to this.  We only want this rule to apply to carton qty and not loose qty.

    I did the dynamic rule with the variation code but it seems like it is not working.

  •  1,906
    WebWizards replied

    Hi Ivy,

    Sorry but there's no way to do this by shipping class at the moment. Usually we'd suggest you apply this to a product category. If you need to apply it to specific variations only, you can copy a list of variation IDs there.

    To do that:  First, in B2BKing -> Settings -> Other -> activate "Dynamic rules: replace product selector with text box".

    Then, you can enter a comma-separate list of variation IDs:

    2083384202.png



    Kind regards,

    Thomas

  •  16
    Ivy replied

    Hi Thomas,

    Thank you for the reply.

    I did try it as you describe below, but it is not working.


    Attached files:  Screenshot 2022-06-27 140428.jpg
      Screenshot 2022-06-27 140706.jpg

  •  1,906
    WebWizards replied

    Free shipping rules in B2BKing require a special configuration of the 'Free Shipping' method as described here: https://woocommerce-b2b-plugin.com/docs/how-to-set-up-free-shipping-for-bulk-orders-dynamic-rules

    So the first, must-do step is to enable Free Shipping in WooCommerce. You can set a very high minimum order such as 999999999999. This will ensure the method is enabled but is not normally shown to users. Configuration:

    image-15-1024x406.png

    Or have you already set this up?

  •  16
    Ivy replied

    Yes, my free shipping is enabled.


    Attached files:  Screenshot 2022-06-27 182220.jpg

  •  1,906
    WebWizards replied

    I tested this locally but it seems to be working in my tests. I set the rule like this based on Product Quantity > 2:

    6440743732.png

    Whenever I add to cart one of those variations in a qty of 3 or more, free shipping becomes available.


    If you want to share a backend login to the site or staging site, we can check this directly.

  •   Ivy replied privately
  •   WebWizards replied privately
  •   Ivy replied privately
  •  16
    Ivy replied

    Hello,

    I also find that the sales prices are wrong for login customers for this specific product.

    Kraft Corrugated Clams - Prestige Products (prestigewa.com.au)




  •  1,906
    WebWizards replied

    Thank you, that login worked,

    1) I looked at the prices for that product you mentioned:

    9575239274.png
    1598218868.png


    I see that your prices are entered including tax, and displayed excluding tax, and that you have a tax rate of 10% set for the shop's address. Therefore $74.45 becomes $67.68 excluding tax.


    Further, for the sale price, there is also a 15% discount rule ( https://prestigewa.com.au/wp-admin/post.php?post=42620&action=edit ) that applies to that product. This rule recalculates the sale price starting with the regular price and applying 15% discount. So the sale price becomes 85% * $67.68 = $57.53


    2) Regarding free shipping:

    For the free shipping rule to work, ALL your zones here must have a 'Free Shipping' method (otherwise if a customer is in that zone, it won't work for them)

    7782934509.png


    I've modified your configuration and added a free shipping method to each zone and set a very high minimum (9999999999), so that the method will only work when enabled by the dynamic rule.


    Seems to be working now and I am seeing the method when 3 items are in cart:

    8006169170.png



  •   Ivy replied privately
  •   Ivy replied privately
  •  1,906
    WebWizards replied

    1) That free shipping rule is only enabled for Logged in Users, so please make sure that when you test you are logged in.

    When you are testing the free shipping, what is the username you are logged in as? I'd like to check specifically as that user, as it's working for my user 'developer'.


    2) Regarding this product

    https://prestigewa.com.au/product/biocane-clams/

    As you can see here, the 'Snack Pack' variation does not exist for 'Carton', it only exists for 'Pack' (id 2365):

    5649756157.png

    That's why it shows as unavailable when selecting 'Carton':

    7038476027.png


    3) 

    "Our older products are working with the discount and sales price, then you don't get a further discount, but on the new products, we add it is not working the same way, not sure if there was an update that I have missed."

    The dynamic rule does not give a further discount, it simply recalculates the sale price. It starts with the regular price and recalculates it based on the discount value.

    If you believe some other products are being treated differently, I can check and compare, to see why that's happening. Please give me an example of a product where this is behaving differently so I can look into it.

  •   Ivy replied privately
  •  1,906
    WebWizards replied

    1) I think I found the issue, the rule was set to the 'cart total quantity' rather than the product quantity condition.

    I changed it and now it behaves as follows:

    With 2 of the selected products in cart it is not activated:

    4357902694.png


    With 3 it is activated:

    5728958738.png



    2) Regarding price:

    The discount rules work like this:

    -> The sale price is calculated from the regular price by applying the discount. If there is already another sale price set directly on the product, that will be ignored / overwritten.

    So it's not a 'further discount', the sale price on the product is ignored, and it's recalculated by applying the discount to the regular price.


    I don't think this has changed. If you have a certain example where you think it doesn't make sense, or if you have 2 products that you find are behaving differently, I can check and let you know why it's behaving the way it is - just let me know which product(s) to look at.