• Resolved vampireprincess

    (@vampireprincess)


    Hi,

    I have 20 different downloadable products in my shop, and I want to limit purchases to 1 item per order for each downloadable product. This is to prevent customers from accidentally purchasing two of the same downloadable product, which would result in a hassle with refunds.

    However, I am also using the Advanced Dynamic Pricing for WooCommerce plugin, because I want customers to receive a 35% discount if they buy 3 different downloadable products. When I set this up, I always encounter an issue where the cart appears empty. When I uncheck the “Limit purchases to 1 item per order” option, the cart works correctly.

    I would like to ask if it would be possible to include the ability to limit purchases for downloadable products as well, not just physical ones, in a future update. Or do you have a workaround for this problem of mine?

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    I understand your concern. I tried to replicate the issue on my site by limiting the downloadable product to 1, but on my test site, the cart did not appear empty, as shown in this screenshot: https://prnt.sc/XfCYGCqwrcn4.

    It seems like there might be a plugin conflict. For testing purposes, could you please deactivate all plugins and then try setting the purchase limit to 1 again to see if you still face the same issue?

    For more details on how to run a conflict test, you can refer to this article:
    https://woocommerce.com/document/how-to-test-for-conflicts/

    If you still facing the same issue, I’d like to understand your site properly. Please share with us the necessary information below for us to investigate the issue further:

    • System Status Report?which you can find via WooCommerce > Status > Get system report > Copy for support.
    • Fatal error logs?(if any) under WooCommerce > Status > Logs.

    Once we have more information, we’ll be able to assist you further.

    Thread Starter vampireprincess

    (@vampireprincess)

    When I disable the Advanced Dynamic Pricing for WooCommerce, the empty cart still persists. I need to uncheck the option to “Limit purchases to 1 item per order” for all items that were previously in my cart. After doing this, the cart starts working again. I can then re-enable the “Limit purchases to 1 item per order” option, and it will work fine until I re-enable the Advanced Dynamic Pricing for WooCommerce.

    Take a look at the image; this is my current setup for Advanced Dynamic Pricing for WooCommerce.

    https://i.postimg.cc/FsD4Zjp4/Screen-Shot-20241230224640.png

    2024-12-30T15:01:47+00:00Warning Error in hydrating REST API request: The quantity of "Motivational Money" cannot be changed Additional context{ "data": { "path": "/wc/store/v1/cart", "controller": "Automattic\WooCommerce\StoreApi\Routes\V1\Cart" }, "backtrace": [ { "file": "/home/tzi/public_html/wp-content/plugins/woocommerce/src/Blocks/Domain/Services/Hydration.php", "line": 77, "function": "warning", "class": "WC_Logger", "type": "->" }, { "file": "/home/tzi/public_html/wp-content/plugins/woocommerce/src/Blocks/Assets/AssetDataRegistry.php", "line": 322, "function": "get_rest_api_response_data", "class": "Automattic\WooCommerce\Blocks\Domain\Services\Hydration", "type": "->" }, { "file": "/home/tzi/public_html/wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Cart.php", "line": 257, "function": "hydrate_api_request", "class": "Automattic\WooCommerce\Blocks\Assets\AssetDataRegistry", "type": "->" }, { "file": "/home/tzi/public_html/wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AbstractBlock.php", "line": 416, "function": "enqueue_data", "class": "Automattic\WooCommerce\Blocks\BlockTypes\Cart", "type": "->" }, { "file": "/home/tzi/public_html/wp-content/plugins/woocommerce/src/Blocks/BlockTypes/Cart.php", "line": 147, "function": "enqueue_assets", "class": "Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock", "type": "->" }, { "file": "/home/tzi/public_html/wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AbstractBlock.php", "line": 96, "function": "enqueue_assets", "class": "Automattic\WooCommerce\Blocks\BlockTypes\Cart", "type": "->" }, { "file": "/home/tzi/public_html/wp-includes/class-wp-block.php", "line": 537, "function": "render_callback", "class": "Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock", "type": "->" }, { "file": "/home/tzi/public_html/wp-includes/blocks.php", "line": 2190, "function": "render", "class": "WP_Block", "type": "->" }, { "file": "/home/tzi/public_html/wp-includes/blocks.php", "line": 2242, "function": "render_block" }, { "file": "/home/tzi/public_html/wp-includes/class-wp-hook.php", "line": 324, "function": "do_blocks" }, { "file": "/home/tzi/public_html/wp-includes/plugin.php", "line": 205, "function": "apply_filters", "class": "WP_Hook", "type": "->" }, { "file": "/home/tzi/public_html/wp-includes/post-template.php", "line": 256, "function": "apply_filters" }, { "file": "/home/tzi/public_html/wp-content/themes/hello-elementor/template-parts/single.php", "line": 25, "function": "the_content" }, { "file": "/home/tzi/public_html/wp-includes/template.php", "line": 812, "args": [ "/home/tzi/public_html/wp-content/themes/hello-elementor/template-parts/single.php" ], "function": "require" }, { "file": "/home/tzi/public_html/wp-includes/template.php", "line": 745, "function": "load_template" }, { "file": "/home/tzi/public_html/wp-includes/general-template.php", "line": 206, "function": "locate_template" }, { "file": "/home/tzi/public_html/wp-content/themes/hello-elementor/index.php", "line": 21, "function": "get_template_part" }, { "file": "/home/tzi/public_html/wp-includes/template-loader.php", "line": 106, "args": [ "/home/tzi/public_html/wp-content/themes/hello-elementor/index.php" ], "function": "include" }, { "file": "/home/tzi/public_html/wp-blog-header.php", "line": 19, "args": [ "/home/tzi/public_html/wp-includes/template-loader.php" ], "function": "require_once" }, { "file": "/home/tzi/public_html/index.php", "line": 17, "args": [ "/home/tzi/public_html/wp-blog-header.php" ], "function": "require" } ] }

    Plugin Support Jonayed (woo-hc)

    (@jonayedhosen)

    Hi there,

    Since we couldn’t reproduce this issue on a default setup, it seems the plugin may be interfering with the default WooCommerce functionality and causing the empty cart issue. It appears you’re using the plugin Advanced Dynamic Pricing for WooCommerce.

    I recommend raising this topic in their support forum, as the plugin seems to conflict with WooCommerce’s functionality. You can find their support forum here: Advanced Dynamic Pricing Support Forum.

    In the meantime, I recommend switching your theme to Storefront to check if the issue is related to your current theme. This could help identify whether the theme is contributing to the problem.

    I hope this helps point you in the right direction!

    Thread Starter vampireprincess

    (@vampireprincess)

    When I disable all my plugins except WooCommerce and the Advanced Dynamic Pricing plugin, and switch the theme to Twenty Twenty-Five, the issue still persists.

    Thread Starter vampireprincess

    (@vampireprincess)

    I wasn’t aware that a Storefront theme existed. I’ve just installed it, but the issue still persists.

    Thread Starter vampireprincess

    (@vampireprincess)

    I tried to use Discount Rules and Dynamic Pricing for WooCommerce and it is working perfect with that plugin.

    Plugin Support Jonayed (woo-hc)

    (@jonayedhosen)

    Hi @vampireprincess ,

    Thank you for the update! It seems the plugin has a compatibility issue with WooCommerce, which is causing the empty cart problem. I’m glad to hear that you’ve found an alternative plugin that works for your needs.

    If you’d like to continue using the original plugin, I’d recommend informing the plugin author about the issue so they can investigate and potentially provide a fix.

    Since this issue has been resolved with another plugin, I’ll go ahead and mark this as resolved. However, feel free to create a new topic if you need any further assistance with WooCommerce core.

    Cheers!

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