• Resolved KARAM SIDHU

    (@iamkaramsidhu)


    Feature Path [Reference]: WooCommerce > Add to Cart Behavior [Redirect to Custom Page] >> Page Link.

    Based on the above reference provided, the current set function of your plugin allows the customers to add to cart even if the product is already sold out.

    As an Example: I had 1 stock available and i’ve set it at the manage stock level as 1 and to change its status to out of stock upon clear of quantity. If the customer is redirected from the domain search page with the product automatically added to cart and the customer checked out and placed an order, that particular order is not being calculated at the manage stock level. Which means, with the current status of only 1 stock available, it supposed to be as an out of stock as per set, but then i realize the order could still be placed by right in actual the particular product is no longer in stock.

    The same goes to the purchase limit. If i’ve set the limit of only one purchase per order, the customers are still able to add another directly without redirection via the search page.

    Basically, The settings that i’ve set specifically for that particular product is being override by the Plugin. In other words, those certain actions conducted via the plugin is not being detected at the woocommerce level.

    I highly recommended to push an update with functions to be abide to whatever set at the product level via woocommerce.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author WP24

    (@wp24dotorg)

    I have tried to reproduce that, but the stock management seems to work properly. On the product i have set “Track stock quantity for this product” and the quantity to 1. If I try to add the product to the cart a second time I get the message: “You cannot add … to the cart because the product is out of stock.” and after placing the order the quantity is decreased to 0.

    I have tested it with the latest version of WooCommerce (8.6.1).

    The problem with “Limit purchases to 1 item per order” is traceable. It is not possible to add the same product with the same domain into the cart, but the same product with a differing domain.

    Thread Starter KARAM SIDHU

    (@iamkaramsidhu)

    I’ve tried by enabling Track stock quantity for this product and tested with the quantity as 1. However, still the same in which i was able to place an order that is redirected from the domain lookup page where the product with the selected domain name was automatically added to cart and then by manually adding the product to the cart which sums up the quantity as 2 even when my stock availability is only set as 1 and i was able to place an order sucessfully which shouldn’t be due to the stock availability is only 1.

    To check the matter further if it is originating from my woocommerce itself, i re-set the stock to 1 and attempted to manually add to cart the product twice [equivalent to 2] which is more than the quantity i’ve set which is 1 and it was not possible which is how it should be within when redirected from the plugin domain lookup page.

    Kindly assist further

    Plugin Author WP24

    (@wp24dotorg)

    This is how I have configured the product: https://ibb.co/FwMzfGd
    With this setting i could only add the product to the cart once. Do your setting defer from that?

    Thread Starter KARAM SIDHU

    (@iamkaramsidhu)

    It’s the same product setting.

    Except, for the product data in which i am on variable option rather than simple due to i have variations for the specific product, therefore, the stock quantity is managed through the variation AND i’ve checked [ticked] the Virtual box as it is a virtual product.

    I had tried by enabling the stock management option as well together with at the variation level but yet the same.

    Kindly check with the setting above.

    • This reply was modified 8 months, 2 weeks ago by KARAM SIDHU.
    Plugin Author WP24

    (@wp24dotorg)

    With variations and clicking the buy link I get the message “Please choose product options by visiting …” and I need to choose the variation on the product page. But also on this way the stock management works.
    When you add the product directly from the products page, without using domain check, the stock management works properly?

    Thread Starter KARAM SIDHU

    (@iamkaramsidhu)

    Yes, you’re right. It only occurs with WP 24.

    The issue does not occur at the woocommerce level, I’ve checked on this previously and just checked it again now, The total quantity of a product that could be checked out [purchased] is the exact same as per the number set at the quantity. If a customer attempt to add the product to the cart more than the limit that is set, It doesn’t allow that actions to be conducted. Whereas, upon recieving the number of orders as per the quantity set, the product automatically gets out of stock which is as per how it should as well.

    But then, when a user is redirected from your plugin domain lookup page, that doesn’t seem to be the case as even with the out of stock status, the product could still be added to the cart and checked out as well.

    It is less-likely a bug in the plugin but most probably it is due to lack of [code] function to listen to whatever is set at the woo level.

    I also utilise a licensing plugin which delivers license keys to the customers upon certain events which consists of type of product, delivery difference by variation, number of quantity, delivery on specific status etc. As of now, No similar issue encountered, which confirms that my site configuration does not seem to have any issues by default.

    I had also checked my logs if there is any block or overide factors/elements that might causes this issue, so far nothing found to be assumed as a site level issue.

    Plugin Author WP24

    (@wp24dotorg)

    I’am sorry, but I’am not able to reproduce that issue. I have tried different configurations with variations, but the stock management always works.
    Mybe you have configured your products otherwise or your general WooCommerce settings differ from mine.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Ammendment Suggestion – ‘add to cart behavior’ should abide with Stock Level.’ is closed to new replies.