I created a custom theme for my CS-Cart store but now when adding a product to cart the cart total price and number of product that appears in the header does not update unless the page is refreshed. I would like to have the cart information refreshed automatically when a user adds a new product to their cart.
I would be interested to know the significance of the missing comment line you added?
You are welcome! If the div which should be updated does not contain this comment, it will be ignored by the system. Comment and closed div tag should be placed on one line
It's because cs-cart renders the whole page on the server side and then JS in the browser breaks this into the desired "result_id's". It then replaces the HTML for those result_id's with the newly updated code. It's a strange way to do ajax requests and is unique (as far as I've seen) to cs-cart. For some reason, they don't feel they can trust their html parsing to find a closing tag for a result_id.
You are welcome! If the div which should be updated does not contain this comment, it will be ignored by the system. Comment and closed div tag should be placed on one line
It's because cs-cart renders the whole page on the server side and then JS in the browser breaks this into the desired "result_id's". It then replaces the HTML for those result_id's with the newly updated code. It's a strange way to do ajax requests and is unique (as far as I've seen) to cs-cart. For some reason, they don't feel they can trust their html parsing to find a closing tag for a result_id.
Recalculate button doesnt work, in the past we use a free addon which automatic recalculate, but now it doesnt work either. So we delete the addon and now recalculate manual not work.
Suggest you contact the developer of the addon you deleted and have them ensure that the addon and any core file changes they may have made are completely removed.