• Resolved josi91

    (@josi91)


    Hello,
    I Use woocommerce and flexible shipping. I’ve written weight rules. It’s ok with variable products but not with simple products. In fact, the simple product’s weight is always null (contents weight: ND in FS Debug) even if the weight is correctly written in the simple product’s form. So the first weight rule is triggered when it would be the second rule.
    If I convert the simple product to variable product, then the variation weight is correct and the triggered weight rule too.
    Where is my error ?
    Thanks a lot for your help.
    Best regards
    Josi

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @josi91, thanks for the message.

    To better understand the issue, I would ask you to send the screenshot of your product details. I would also need to see the full debug mode.

    Sometimes when there is a plugin conflict, weight might not be readable by the WooCommerce. In such case, we can verify it, if you install the free plugin Cart Weight and when you put the product into the cart, verify does Cart weight show you a product’s weight in the cart’s totals. You can also deactivate all the plugins except WooCommerce and Flexible Shipping and check if your shipping rule based on weight works.

    Please let me know about the results.

    Best regards
    Karolina

    Thread Starter josi91

    (@josi91)

    Hello,
    First, thanks for your respons.

    this is the screenshot of the simple product : https://snipboard.io/ZHdBTt.jpg
    and the full debug mode of this product is :

    Method settings:
     Enabled: yes
     Method Title: Livraison par Colissimo
     Method Description: 
     Tax status: None
     Costs includes tax: no
     Free Shipping: 
     Free Shipping Label: Free
     'Left to free shipping' notice: no
     Rules Calculation: Sum
     Cart Calculation: Package value
     Visibility (Show only for logged in users): no
     Default: no
     Debug mode: yes
    Integration: none 
    
    Contents value: 65 EUR
    Contents weight: ND 
    
    Rule 1:
       Condition: Weight; min: 0; max: 0.250; input data: 0; matched: yes
       Matched items: Bo?te hexagonale ventrue à couvercle pointu (qty: 1)
       Matched items cost: 65 EUR
       Matched items weight: ND
       Rule costs:
        rule cost is: 5.95
       Calculated rule cost: 5.95 EUR 
    
    Rule 2:
       Condition: Weight; min: 0.251; max: 0.500; input data: 0; matched: no
    Rule 3:
       Condition: Weight; min: 0.501; max: 0.750; input data: 0; matched: no
    Rule 4:
       Condition: Weight; min: 0.751; max: 1; input data: 0; matched: no
    Rule 5:
       Condition: Weight; min: 1.001; max: 2; input data: 0; matched: no
    Rule 6:
       Condition: Weight; min: 2.001; max: 5; input data: 0; matched: no
    Rule 7:
       Condition: Weight; min: 5.001; max: 10; input data: 0; matched: no
    Rule 8:
       Condition: Weight; min: 10.001; max: 15; input data: 0; matched: no
    Rule 9:
       Condition: Weight; min: 15.001; max: 30; input data: 0; matched: no 
    
    Used and displayed in the cart/checkout: yes
    Calculated shipping cost: 5.95 EUR
    Free shipping: no
    Shipping method ID: flexible_shipping_single:6
    Shipping method title: Livraison par Colissimo
    Shipping cost added.

    As you have suggested :
    – I’ve installed the cart weight plugin and the result is “total weight:ND”
    – I’ve tried to desactivate all plugins and always I have the same problem.

    What do you think about this problem ?
    Thanks for your help.
    Best regards,
    Josi

    Hi @josi91, thanks for the debug mode and screenshot.

    Did you get a weight shown by the Cart Weight as here -> https://ps.w.org/woo-cart-weight/assets/screenshot-1.png?rev=2737952 ? Or did you get in total weight “ND”?

    I would kindly ask you to provide the website address, about which we are talking about.

    Do you have any customization on your website? The best option would ig you deactivate all the plugins as I mentioned before, and changed the WordPress theme for Storefront. This way nothing else should interfere with the plugin.

    Best regards,
    Karolina

    Thread Starter josi91

    (@josi91)

    Hello,

    Thanks for your help.
    As you have suggested, I’ve changed my theme and it’s ok. All is functionnal. So now I know that my theme has an bug that I have to rectify.
    So thanks a lot for your help and your plugin which is very useful.

    Best regards,
    Josi

    Hi @josi91, I am pleased to hear that we found the reason why it’s not working. I am glad that you like the plugin.

    Have a lovely day!

    Best regards,
    Karolina

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘weight rules not applied with simple product’ is closed to new replies.