Problems, need help? Have a tip or advice? Post it here.
4 posts Page 1 of 1
Hello Admin,
In order to be able to ship products to buyers, I used set_session is keep track of the location entered by the buyers using google autocomplete. Now my issue is that when the buyer removes all the items from the cart making the cart to be empty the sessions are still there. I tried using
Code: Select all
<cms:if "<cms:pp_count_items />"> ... <cms:else/> delete the sessions here</cms:if>
but it's still not working till I manually refresh the page again. What is the best approach to this issue. Thank you
I think using <cms:delete_session 'whatever_your_variable_name' /> immediately followed by a <cms:redirect k_page_link /> to refresh the page should help. Please let me know.
I used the code I mentioned earlier in the bag.php file.

Since the deletion wasn't done in a couch form, wouldn't
Code: Select all
<cms:redirect k_page_link />
right after deleting the sessions cause an infinite redirection in the bag.php file?
Try to not delete the session, simply set its value empty. I researched it long time ago and it helped me.
4 posts Page 1 of 1
cron