Forums

Woocommerce Cart Error (5 posts)

  1. tanjan
    Member
    Posted 1 year ago #

    Hi everyone,

    right now I'm testing Woocommerce on my local server. Everything is fine except the fact that I'm facing this cart problem.

    Let's say I have a product of which I have 2 in stock. When adding the product to the cart the first time I get an success message. Second time I will get following error message

    "'You cannot add that amount to the cart since there is not enough stock. We have 2 in stock and you already have 2 in your cart."

    This error message is definitely a bug. Although the product is successfully added to the cart a second time the users gets this confusing error message.

    How can I fix this?

    I hope someone can help, since Woocommerce only provides support for paying customers :(

    Thanks in advance!

  2. mikejolley
    Member
    Posted 1 year ago #

    Hi,

    Actually theres a community forum on WT site, you just won't have access to premium support.

    Anyhow, just tested. Added a product with 2 stock - went to the product page. Added 1. Success. Added 2. Success. 3rd time, 2 in cart message. So its working my end.

    Could you try again?

  3. tanjan
    Member
    Posted 1 year ago #

    Hello,

    after finally reinstalling Woocommerce the problem disappeared. I have no idea what caused this issue.

    Regarding the community forum on WT site: Whenever I try to register, WT shows me different types of memberships. I can't seem to figure out how to access WT forum without paying...

    I hope it's ok to post another question here:

    I need my product thumbnails to be hard cropped. My problem is the centered cropping position. I some cases I need the top part of the image as thumbnail.

    After searching I found this wonderful code Image Crop Position in WordPress.

    Is there a way to implement this code into Woocommerce?

    I tried the following in my functions.php:

    bt_add_image_size( 'shop_thumbnail', 350, 395, array( 'center', 'top' ) );
    bt_add_image_size( 'shop_catalog', 460, 395, array( 'center', 'top' ) );

    No effect (I used Regenerate Thumbnails and cleaned my browsers cache).

    I would be really thankful for any suggestions!

  4. tanjan
    Member
    Posted 1 year ago #

    Hi mikejolly,

    I'm getting this error again. At least this time I know the cause. Whenever I add a simple product and activate the option to manage the stock (under inventory tab), the product is being added twice to cart when clicking Add to Cart. When I set quantity to 1 everything is fine. Everything above 1 will cause this error. A variable product is not causing this error.

    Btw, to make sure that it's not my fault I removed my custom hooks in functions.php. Still the same.

    Please help. I'm really freaking out here!

    Thanks in advance!

  5. tanjan
    Member
    Posted 1 year ago #

    Ok, now I even removed the themes original code in functions.php. This line of code was causing the error:

    add_theme_support( 'genesis-custom-header', array( 'width' => 150, 'height' => 110, 'textcolor' => '444', 'admin_header_callback' => 'minimum_admin_style' ) );

    I have no idea why is that, but it has nothing to do with Woocommerce.

    Just to let you know...

Topic Closed

This topic has been closed to new replies.

About this Topic