CoCart Headless
Forum Replies Created
-
Forum: Plugins
In reply to: [CoCart - Decoupling Made Easy for WooCommerce] Update Address for Guest@jpearll Default country and state (or province) is determined by your WooCommerce settings under General.
You can update the shipping address by calculating the shipping with our premium version of CoCart.
Hope that helps.
Forum: Plugins
In reply to: [CoCart - Decoupling Made Easy for WooCommerce] Cocart Cors Isuue@hassanoladipupo98 This is not an error. The CORS plugin only enables CORS support.
If you want to specify the origin that is only allowed access, you need to apply filter like so. Change the returned value to what you need.
add_filter( 'cocart_allow_origin', function() { return home_url(); } );
In future, please post issues you have to the appropriate plugin support forum.
Thank you.
Have a great holiday.
Forum: Plugins
In reply to: [CoCart - Decoupling Made Easy for WooCommerce] Cannot add product to cart.I take it you are using a JWT Authentication plugin with CoCart and is possibly the reason it is failing if the
ID
parameter is now working.I just launched my own JWT Authentication plugin designed to work with CoCart. I’d appreciate it if you can ask your developer to try it out and let me know if that solves the issue.
Forum: Plugins
In reply to: [CoCart - Decoupling Made Easy for WooCommerce] Cannot add product to cart.@asvigelj
You said “It does not work when we send request using our SDK that is made in js / node.js.” so I assumed you were talking about your SDK but you don’t show any more code or JSLint errors, yet, you expect me to have an idea on what might be wrong.
If you don’t provide me with actual detailed information, I am very limited to what I can do to help.
We know that CoCart is working fine in Postman, you have confirmed that and I have confirmed the CoCart JS SDK is working with no issues so I can only assume it’s related to your authentication.Hi @martapaw
Thank you for the update. I have compared the code between the last two versions of Flexible Shipping and it doesn’t look like you removed strong typing, in fact it looks like you added a little more which is fine.
From what I have evaluated it looks like it was related to the notices that you adjusted which before triggered the strong typing checks to be strong for CoCart to handle.
Now that the notices have changed the strong typing is ignored and doesn’t crash the site with CoCart.
I have also made improvements to CoCart to be more compatible with other WooCommerce plugins in general which will release soon so thank you for your support for the current release of CoCart.
Much appreciated.
regards,
Sébastien.