This is a Developer level doc. We are unable to provide support for customizations under our Support Policy. See guide on adding PHP code without editing files.
As the only feature in CoCart that does not use the REST API, some developers requested that they have the option to disable it.
add_filter( 'cocart_disable_load_cart', function() { return true; });
Once you have this filter set to true. “Load Cart from Session” will no longer be available.
Was this helpful to you?
Did you like the article/guide or would you like to give some feedback? Click on one of the buttons and let us know your opinion!