• Resolved luboslives

    (@luboslives)


    Hi, we’re trying to give away a branded face mask as a Free Gift when the cart subtotal reaches $50, but it’s being added to the cart even when the subtotal is $40, for example.

    No other discounts are active. We have an automatic free shipping coupon this month but that shouldn’t affect the subtotal calculation.

    I also tried another rule where the product is discounted to $5 instead of being a free gift, but again the plugin was not picking up the subtotal and was granting the discount before the threshold is reached.

    Here’s the ruleset for the Free Gift version. Please let me know if you can recreate the problem and if you need more details. Try going above and below the threshold by adjusting your cart totals to see if it bugs out.

         {
              "type": "package",
              "filters": [
                   {
                        "qty": 1,
                        "type": "any",
                        "method": "in_list",
                        "value": [],
                        "product_exclude": {
                             "on_wc_sale": "",
                             "already_affected": "",
                             "backorder": "",
                             "values": []
                        }
                   }
              ],
              "title": "Free Face Mask",
              "priority": 6,
              "enabled": "off",
              "sortable_blocks_priority": [
                   "roles",
                   "bulk-adjustments"
              ],
              "additional": {
                   "conditions_relationship": "and",
                   "replace_name": "",
                   "is_replace_free_products_with_discount": false,
                   "free_products_replace_name": "",
                   "sortable_apply_mode": "consistently"
              },
              "conditions": [
                   {
                        "type": "cart_subtotal",
                        "options": [
                             "<=",
                             50
                        ]
                   }
              ],
              "cart_adjustments": [],
              "limits": [],
              "role_discounts": [],
              "get_products": {
                   "repeat": "-1",
                   "repeat_subtotal": "",
                   "value": [
                        {
                             "qty": 1,
                             "gift_mode": "giftable_products",
                             "type": "product",
                             "value": [
                                  42458,
                                  42460
                             ]
                        }
                   ]
              },
              "options": {
                   "apply_to": "expensive",
                   "repeat": 1
              }
         }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin is not picking up the cart subtotal’ is closed to new replies.