Support » Plugin: Advanced Dynamic Pricing for WooCommerce » Product with discount should have other price with a condition

  • So basically what I have at the time is that I created a rule to apply a discount to several products from one category but I want for those products to have another discount when another item (a blender) is purchased.

    So, basically, having the blender in your cart should give you a 50% discount for the other product and when you don’t choose the blender the product should have just a 30% discount.
    What’s happening at the time is that I’m getting the 50% discount and then it’s being added a 30% discount to the new price.

    What can I do?
    Here are my rules and options:

    [
         {
              "title": "Complementos if Batedeira",
              "type": "package",
              "exclusive": "0",
              "priority": "0",
              "enabled": "on",
              "options": {
                   "repeat": "-1",
                   "apply_to": "cheap"
              },
              "additional": {
                   "replace_name": "",
                   "free_products_replace_name": "",
                   "conditions_relationship": "and"
              },
              "conditions": [
                   {
                        "type": "product_categories",
                        "options": {
                             "0": "1",
                             "1": "in_list",
                             "2": [
                                  "Batedeiras"
                             ],
                             "3": ""
                        }
                   }
              ],
              "filters": [
                   {
                        "qty": "1",
                        "type": "product_categories",
                        "method": "in_list",
                        "value": [
                             "Complementos"
                        ]
                   }
              ],
              "limits": [],
              "product_adjustments": {
                   "type": "split",
                   "total": {
                        "type": "discount__percentage",
                        "value": "50"
                   },
                   "split": [
                        {
                             "type": "discount__percentage",
                             "value": "50"
                        }
                   ],
                   "max_discount_sum": ""
              },
              "sortable_blocks_priority": [
                   "roles",
                   "bulk-adjustments"
              ],
              "bulk_adjustments": {
                   "table_message": ""
              },
              "role_discounts": [],
              "cart_adjustments": [],
              "get_products": {
                   "repeat": "-1",
                   "repeat_subtotal": ""
              }
         },
         {
              "title": "Complementos",
              "type": "package",
              "exclusive": "0",
              "priority": "1",
              "enabled": "on",
              "options": {
                   "repeat": "-1",
                   "apply_to": "cheap"
              },
              "additional": {
                   "replace_name": "",
                   "free_products_replace_name": "",
                   "conditions_relationship": "and"
              },
              "conditions": [
                   {
                        "type": "product_categories",
                        "options": {
                             "0": "1",
                             "1": "in_list",
                             "2": [
                                  "Batedeiras"
                             ],
                             "3": ""
                        }
                   }
              ],
              "filters": [
                   {
                        "qty": "1",
                        "type": "product_categories",
                        "method": "in_list",
                        "value": [
                             "Complementos"
                        ]
                   }
              ],
              "limits": [],
              "product_adjustments": {
                   "type": "split",
                   "total": {
                        "type": "discount__percentage",
                        "value": "30"
                   },
                   "split": [
                        {
                             "type": "discount__percentage",
                             "value": "30"
                        }
                   ],
                   "max_discount_sum": ""
              },
              "sortable_blocks_priority": [
                   "roles",
                   "bulk-adjustments"
              ],
              "bulk_adjustments": {
                   "type": "bulk",
                   "table_message": ""
              },
              "role_discounts": [],
              "cart_adjustments": [],
              "get_products": {
                   "repeat": "-1",
                   "repeat_subtotal": ""
              }
         }
    ]
Viewing 1 replies (of 1 total)
  • Plugin Author algol.plus

    (@algolplus)

    Hello

    1st rule
    – product filter : category = Complementos
    – product discount : 50%
    – condition: category, in list, Batedeiras

    2nd rule
    – product filter : category = Complementos
    – product discount : 30%
    – condition: category, NOT in list, Batedeiras

    So you have to edit only condition in your 2nd rule, select “NOT in list”
    thanks, Alex

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.