Support » Plugin: Advanced Dynamic Pricing for WooCommerce » Three products for $X

  • Moderator Steve Stern

    (@sterndata)


    Support Team Volunteer

    I’ve added a rule that appears properly on the product page:

    See https://i.imgur.com/P2Uh6yI.png

    But when I add three of the item to the cart, the bulk price isn’t there:

    See https://i.imgur.com/VpJis3G.png

    What am i doing wrong?

    [
         {
              "title": "3 for - perfect balance singles",
              "type": "package",
              "exclusive": "0",
              "priority": "0",
              "enabled": "on",
              "options": {
                   "repeat": "-1",
                   "apply_to": "expensive"
              },
              "additional": {
                   "replace_name": "",
                   "free_products_replace_name": "",
                   "conditions_relationship": "and"
              },
              "conditions": [],
              "filters": [
                   {
                        "qty": "1",
                        "type": "products",
                        "method": "in_list",
                        "value": [
                             "Perfect Balance Singles"
                        ]
                   }
              ],
              "limits": [],
              "product_adjustments": {
                   "total": {
                        "type": "discount__amount",
                        "value": ""
                   },
                   "split": [
                        {
                             "type": "discount__amount",
                             "value": ""
                        }
                   ],
                   "max_discount_sum": ""
              },
              "sortable_blocks_priority": [
                   "roles",
                   "bulk-adjustments"
              ],
              "bulk_adjustments": {
                   "type": "bulk",
                   "qty_based": "all",
                   "discount_type": "price__fixed",
                   "ranges": [
                        {
                             "from": "3",
                             "to": "3",
                             "value": "140.95"
                        }
                   ],
                   "table_message": "Three for 140.95"
              },
              "role_discounts": [],
              "cart_adjustments": [],
              "get_products": {
                   "repeat": "-1",
                   "repeat_subtotal": ""
              }
         }
    ]
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author algol.plus

    (@algolplus)

    Hi

    Probably, there is custom code (or plugin?) which overrides cart contents.

    Could you visit >WooCommerce>Pricing Rules>Settings>System and mark “Suppress other pricing plugins in frontend” ?

    I’m sorry for late reply, I didn’t get any emails from wordpress.org yesterday.
    thanks, Alex

    Moderator Steve Stern

    (@sterndata)

    Support Team Volunteer

    Checking that option results in

    Warning: get_class() expects parameter 1 to be object, string given in /var/www/tt/wordpress/wp-content/plugins/advanced-dynamic-pricing-for-woocommerce/classes/class-wdp-frontend.php on line 982

    See https://i.imgur.com/DBwgBK2.png

    It does not fix the issue with pricing, though. The price is still 3 times the normal price.

    Woocommerce status report follows:

    
    ### WordPress Environment ###
    
    WordPress address (URL): xx
    Site address (URL): xx
    WC Version: 3.7.1
    REST API Version: ✔ 1.0.2
    Log Directory Writable: ✔
    WP Version: 5.2.4
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: ✔
    WP Cron: ✔
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache/2.4.41 (IUS) OpenSSL/1.0.2k-fips
    PHP Version: 7.3.10
    PHP Post Max Size: 16 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1800
    cURL Version: 7.29.0
    NSS/3.36
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.3.18-MariaDB
    Max Upload Size: 16 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 3.7.1
    WC Database Prefix: wp_
    MaxMind GeoIP Database: ✔
    Total Database Size: 8.11MB
    Database Data Size: 5.69MB
    Database Index Size: 2.42MB
    wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 0.09MB + Index: 0.09MB + Engine InnoDB
    wp_followup_coupons: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_followup_coupon_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_followup_customers: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_followup_customer_carts: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_followup_customer_notes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_followup_customer_orders: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_followup_email_excludes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_followup_email_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_followup_email_orders: Data: 0.05MB + Index: 0.09MB + Engine InnoDB
    wp_followup_email_tracking: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_followup_followup_history: Data: 0.11MB + Index: 0.05MB + Engine InnoDB
    wp_followup_order_categories: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_followup_order_items: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_followup_subscribers: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_followup_subscribers_to_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_followup_subscriber_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_frm_fields: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
    wp_frm_forms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_frm_items: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_frm_item_metas: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_options: Data: 2.48MB + Index: 0.09MB + Engine InnoDB
    wp_postmeta: Data: 0.19MB + Index: 0.09MB + Engine InnoDB
    wp_posts: Data: 1.52MB + Index: 0.13MB + Engine InnoDB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_usermeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wdp_orders: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wdp_order_items: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wdp_rules: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_yoast_seo_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    
    ### Security ###
    
    Secure connection (HTTPS): ❌
    					Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates.
    Hide errors from visitors: ❌Error messages should not be shown to visitors.
    
    ### Active Plugins (25) ###
    
    Add From Server: by Dion Hulse – 3.3.3
    Advanced Custom Fields PRO: by Elliot Condon – 5.8.5
    Advanced Dynamic Pricing for WooCommerce: by AlgolPlus – 2.2.4
    Atomic Blocks - Gutenberg Blocks Collection: by atomicblocks – 2.1.0
    Black Studio TinyMCE Widget: by Black Studio – 2.6.9
    Constant Contact + WooCommerce: by Constant Contact – 1.1.0 – Not tested with the active version of WooCommerce
    Formidable Forms Pro: by Strategy11 – 4.03.01
    Formidable Forms: by Strategy11 – 4.03.01
    Gutenberg: by Gutenberg Team – 6.6.0
    Jetpack by WordPress.com: by Automattic – 7.8
    Kadence WooCommerce Email Designer: by Kadence Themes – 1.3.3
    OptinMonster API: by OptinMonster Team – 1.8.3
    Rearrange Woocommerce Products: by Aslam Doctor – 2.1.1 – Not tested with the active version of WooCommerce
    Show Current Template: by JOTAKI Taisuke – 0.3.0
    Testimonials Widget: by Axelerant – 3.5.0
    TinyMCE Advanced: by Andrew Ozz – 5.2.1
    To Top: by Catch Plugins – 1.9
    Widget Context: by Kaspars Dambis – 1.2.0
    WooCommerce Admin: by WooCommerce – 0.20.1
    Follow-Up Emails: by WooCommerce – 4.8.16
    WooCommerce PDF Invoices & Packing Slips: by Ewout Fernhout – 2.3.4
    WooCommerce Services: by Automattic – 1.21.1
    WooCommerce Subscriptions: by Automattic – 2.6.1 – Not tested with the active version of WooCommerce
    WooCommerce: by Automattic – 3.7.1
    Yoast SEO: by Team Yoast – 12.3
    
    ### Inactive Plugins (3) ###
    
    Akismet Anti-Spam: by Automattic – 4.1.2
    Storefront Visual Hook Guide: by Antonio Sanchez (ARCHTKT) – 2.0.1 – Not tested with the active version of WooCommerce
    WP Mail SMTP: by WPForms – 1.6.2
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    subscription (subscription)
    variable (variable)
    variable subscription (variable-subscription)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: –
    
    ### WC Pages ###
    
    Shop base: #142 - /shop/
    Cart: #144 - /your-shopping-cart/
    Checkout: #159 - /checkout/
    My account: #160 - /my-account/
    Terms and conditions: #95 - /terms-conditions/
    
    ### Theme ###
    
    Name: Tulip Tree Storefront Child
    Version: 1.0.0
    Author URL: 
    Child Theme: ✔
    Parent Theme Name: Storefront
    Parent Theme Version: 2.5.3
    Parent Theme Author URL: https://woocommerce.com/
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: –
    
    ### Subscriptions ###
    
    WCS_DEBUG: ✔ No
    Subscriptions Mode: ✔ Live
    Subscriptions Live URL: http://tt.sterndata.com
    Subscription Statuses: –
    WooCommerce Account Connected: ❌ No
    Report Cache Enabled: ✔ Yes
    Cache Update Failures: ✔ 0 failure
    
    ### Store Setup ###
    
    Country / State: United States (US) — Ohio
    
    ### Payment Gateway Support ###
    
    Check payments: products
    
    ### Action Scheduler ###
    
    Complete: 223
    Oldest: 2019-09-15 12:01:04 -0500
    Newest: 2019-10-16 08:25:37 -0500
    
    Pending: 3
    Oldest: 2019-10-16 09:25:37 -0500
    Newest: 2019-10-17 06:00:00 -0500
    
    Canceled: 1
    Oldest: 2019-10-03 12:40:23 -0500
    Newest: 2019-10-03 12:40:23 -0500
    
    In-progress: 0
    Oldest: –
    Newest: –
    
    Failed: 0
    Oldest: –
    Newest: –
    
    
    Plugin Author algol.plus

    (@algolplus)

    hi Steve

    my bad, you don’t need bulk at all.

    look at rule “Package having one position” in section
    https://algolplus.com/plugins/woocommerce-pricing-rules-examples/#package-rules

    Moderator Steve Stern

    (@sterndata)

    Support Team Volunteer

    Much better, but now I don’t get the pricing table on the product page.

    Moderator Steve Stern

    (@sterndata)

    Support Team Volunteer

    Done. Ticket posted.

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