• Resolved cgtv

    (@cgtv)


    Hello there,

    We use your plugin for our android mobile app and with the mobile app, everything goes well.

    Recently, after upgrade to Cocart’s last version ( 2.8.4 ) we faced some website issues , including add to cart issue(sometimes happen), cart clear accidentally,… in our website (not Application).

    But after disabling the Cocart plugin the problem solve.

    I mention our test website for future checks.

    I just submit a ticket for your advice.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 16 through 21 (of 21 total)
  • Plugin Author Sébastien Dumont

    (@sebd86)

    Thank you for sharing your system status report and another video demonstration.

    I tested your test site again and was able to add many products with no issue, both via Ajax and on the product page. I was also able to remove any product without issue the first time.

    Tested several times and was not able to replicate what I saw in either video on your test site.

    I’m not sure why that is, maybe specific products have an issue that I did not see. Possibly a browser cache on your end.

    I honestly don’t know what else could be causing it unless you have error logs recorded too that specifically target CoCart.

    I wish I could be more helpful.

    As for the REST API.

    I do see that you have a must-use plugin installed that interferes with REST API in general.

    Also have you checked that you are not using the cart key instead of the item key when removing items from the cart when using your app?

    Thread Starter cgtv

    (@cgtv)

    Thanks for your reply,

    For your last question, in our test website (I recorded with), We do not use that for our mobile app, Which means it does not happen by API-call from the app.

    It is possible by chance to do us a favor and make the previous version of Cocart(before the session handler) compatible with the new version of woocommerce?

    I just thought it might the problem caused by the session handler and syncing problem for some users depended on browsers or internet speed, OS, …

    However, thanks for taking time and consideration.

    Plugin Author Sébastien Dumont

    (@sebd86)

    While I don’t support this you can try the following.

    remove_filter( 'woocommerce_session_handler', array( 'CoCart', 'session_handler' ) );

    Hope that helps but please know that guest customers will not be supported.

    Thread Starter cgtv

    (@cgtv)

    I just comment the line 35:
    add_filter( 'woocommerce_session_handler', array( $this, 'cocart_session_handler' ) );

    on class-cocart-woocommerce.php and now it seems website and app work fine.

    Thanks much for your consideration.

    Plugin Author Sébastien Dumont

    (@sebd86)

    Why didn’t you just remove the filter in your theme functions.php file or using a code snippet plugin?

    Disabling the line will only prevent you from updating CoCart in the future when updates are available.

    If i had something more concrete to solve your issue maybe an error log I will do my best to patch it but at this time I don’t understand why it would not work for you when testing your site but works for me.

    Thread Starter cgtv

    (@cgtv)

    Yes, Your code works also. I just do that.

    I think the error log or something like debugs mode can be very useful.

    Thanks a lot.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘Website Cart issue after upgrade to leatest version’ is closed to new replies.