Last active
August 29, 2015 14:26
-
-
Save mghdotdev/72f4ec60a2470807aca0 to your computer and use it in GitHub Desktop.
MVT: "Continue Shopping" Cookie
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <mvt:assign name="g.CS_Category_Code" value="miva_variable_value( 'g.request_cookies:' $ g.store:code $ '_continueshopping' )" /> | |
| <mvt:if expr="len(g.CS_Category_Code)"> | |
| &mvt:global:CS_Category_Code; | |
| </mvt:if> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <mvt:comment> | |
| CUSTOM Continue Shopping Cookie | |
| | Saves the Last CTGY Page Visted | |
| </mvt:comment> | |
| <mvt:if expr="l.settings:page:code EQ 'CTGY'"> | |
| <mvt:assign name="g.expires" value="s.time_t + (60 * 60 * 24 * 1)" /> <mvt:comment>1 Day</mvt:comment> | |
| <mvt:assign name="g.cookie_name" value="g.store:code $ '_ContinueShopping'" /> | |
| <mvt:assign name="g.cookie_value" value="g.Category_Code" /> | |
| <mvt:do name="l.null" file="g.Module_Library_Utilities" value="SetCookie(g.Output_Cookies, g.cookie_name, g.cookie_value , g.cookiedomain , g.expires, g.cookiepath, 0 )" /> | |
| <mvt:do file="g.Module_Library_Utilities" name="g.null" value="OutputCookies( g.Output_Cookies )" /> | |
| </mvt:if> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment