• Hello,

    since I have updated to major woocommerce update my cart page and checkout page doesnt work. Do you know how can I solve this issue?

    Thank you for any advice.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter icos22

    (@icos22)

    Fatal error: Uncaught exception ‘Exception’ with message ‘Invalid product.’ in /home/www/stafwear.cz/www/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php:133 Stack trace: #0 /home/www/stafwear.cz/www/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(143): WC_Product_Data_Store_CPT->read(Object(WC_Product)) #1 /home/www/stafwear.cz/www/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(126): WC_Data_Store->read(Object(WC_Product)) #2 /home/www/stafwear.cz/www/wp-content/plugins/woo-doprava/classes/class-wc-gateway-dobirka.php(359): WC_Product->__construct(72) #3 /home/www/stafwear.cz/www/wp-content/plugins/woo-doprava/classes/class-wc-gateway-dobirka.php(180): WC_Gateway_Dobirka_Plus->is_virtual_product_in_cart() #4 /home/www/stafwear.cz/www/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(154): WC_Gateway_Dobirka_Plus->is_available() #5 /home/www/stafwear.cz/www/wp-content/plugins/woo-doprava/woo-doprava.php(291): WC_Payment_G in /home/www/stafwear.cz/www/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php on line 133

    Hi,

    When I put an article in the shopping cart it is not added indeed and I get the error: Invalid value posted for velikosti

    In the error message you copied above, it mentions this plugin: https://toret.cz/woocommerce-pluginy/woo-doprava/

    It probably is a conflict with this plugin ( because this plugin maybe not yet be compatible with this most recent Woocommerce update ). Try deactivating this plugin to see if the cart works after that.

    If not revert back to the previous Woocommerce version where it still worked and contact the developer of the conflicting plugin and ask to make it compatible with Woocommerce most recent version.

    Hope this helps,
    Annie

    By the way this part of the message looks a bit off the me too because you do not sell “virtual products” but a physical product:

    plugins/woo-doprava/classes/class-wc-gateway-dobirka.php(180): WC_Gateway_Dobirka_Plus->is_virtual_product_in_cart() #4

    You might want to look into that too. Could it be you have set a phycical product as a virtual one? Maybe that is why the plugin to add different shipping cost is complaining?

    Hmm, just tried another product and that one works like a charme:
    https://www.stafwear.cz/produkt/damska-zimni-cepice-s-bambuli-melange-cap-kopirovat/

    See screenshot of your cart and checkout please:
    https://www.awesomescreenshot.com/image/2382651/dbbbc2ae7f5367fd1078ad3237de2fd4

    This points more and more to the wrongfully set to virtual product in some cases!
    Please check if the ones that go wrong in cart and checkout, are checked as “physical products” and not virtual ones!

    This product does not work in cart:
    ( see screenshot: https://www.awesomescreenshot.com/image/2382672/20dd01b5dcc026d756baf1ebec07449f )

    https://www.stafwear.cz/produkt/damske-tricko-nezerhovna-tee/

    • This reply was modified 7 years, 7 months ago by LogoLogics.
    Thread Starter icos22

    (@icos22)

    Hi Annie,

    you are the BEST!

    I figured out how to solve “invalid value posted for velikosti”. But the cart and checkout was still a issues. So I turned off “woo doprava” plugin and the cart and checkout works again!

    Thank very much!

    Glad you figured things out!
    Always a good thing to deactivate plugins, change to default theme to see if issue is gone. If so start deactivating them one by one to find the cullprit.

    Have fun using Storefront and Woocommerce!
    Annie

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cart page and Checkout page doesnt work’ is closed to new replies.