View Full Version : Miva Tip: Checkout and Continue Links
lfreeman
03-29-06, 03:37 PM
MIVA CHECKOUT LINK
<a href="&mvt:global:secure_sessionurl;Screen=OINF&Order=0&Store_Code=&mvt:global:Store_Code;">Check Out</a>
MIVA CHECKOUT/CONTINUE LINKS FOR BASKET SCREEN
<mvt:item name="basket" />
<mvt:if expr="g.Category_Code">
<a href="&mvt:global:sessionurl;Screen=CTGY&Category_Code=&mvt:global:Category_Code;">
<mvt:else>
<a href="&mvt:global:sessionurl;">
</mvt:if>
Continue Shopping</a> <a href="&mvt:global:secure_sessionurl;Screen=OINF">Checkout</a>
STATIC CHECKOUT/CONTINUE LINKS
<a href="http://www.yourdomain.com/mm5/merchant.mvc?Screen=SFNT&Store_Code=storecode">Continue Shopping</a>
<a href="https://www.yourdomain.com/mm5/merchant.mvc?Screen=OINF&Store_Code=storecode">Checkout</a>
pruthvikb
04-03-06, 12:38 PM
Hi,
From MIVA CHECKOUT/CONTINUE LINKS FOR BASKET SCREEN code
<mvt:if expr="g.Category_Code">
<a href="&mvt:global:sessionurl;Screen=CTGY&Category_ Code=&mvt:global:Category_Code;">
not working.
I have placed this code in Basket Screen page.
Can u help me on this issue?
Thank You,
Kumar
lfreeman
04-04-06, 05:15 PM
Should work. If you come to the basket from a category, then it will take you back there ... if not, then it takes you to the storefront. What part of the script is not working?
and Got an URL?
massbay
04-18-06, 07:09 PM
I may be having the same problem as Kumar above.
The <mvt:if expr="g.Category_Code"> is never evaluating as true, no matter what page you come to the basket page from.
-Bob
lfreeman
04-18-06, 08:16 PM
My code wasn't wrapped in tags properly and may have had spaces, try recopying the code first. If that still doesn't work, maybe provide an URL to look at?
I may be having the same problem as Kumar above.
The <mvt:if expr="g.Category_Code"> is never evaluating as true, no matter what page you come to the basket page from.
-Bob
pruthvikb
04-21-06, 02:07 PM
Hi,
I got solution for this.
We have to send Ctaegory Code to Basket Screen.
Example:(In Ctaegory Page link to Basket Page)
http://xxx.com/merchant2/merchant.mvc?Screen=BASK&Store_Code=xxx&Category_Code=CAT1
In Basket Page we have to place follwing code at Remove and Update code placed
Code:
<input type="hidden" name="Category_Code" value="&mvt:global:category_code;" ID="Hidden9">
It is working
leslienord
10-31-06, 08:29 PM
I made some tweaks to the code:
<mvt:if expr="g.Category_Code">
<a href="&mvt:global:sessionurl;Screen=CTGY&Category_Code=&mvt:global:Category_Code;">Continue Shopping</a>
<mvt:else>
<a href="&mvt:global:sessionurl;">Continue Shopping</a></mvt:if>
<a href="&mvt:global:secure_sessionurl;Screen=OINF">Checkout</a>
Notice I moved the </mvt:if>
Works very nicely now!
PicturesqueWeb
11-06-06, 09:02 PM
If you have multiple stores replace &mvt:global:sessionurl; with &mvt:global:sessionurl;Screen=SFNT&Store_Code=&mvta:global:Store_Code;
PicturesqueWeb
11-06-06, 09:07 PM
You have to change the checkout too...so here's the edited code for multi-stores.
<mvt:if expr="g.Category_Code">
<a href="&mvt:global:sessionurl;Screen=CTGY&Category_Code=&mvt:global:Category_Code;&Store_Code=&mvta:global:Store_Code;">Continue Shopping</a>
<mvt:else>
<a href="&mvt:global:sessionurl;Screen=SFNT&Store_Code=&mvta:global:Store_Code;">Continue Shopping</a></mvt:if>
<a href="&mvt:global:secure_sessionurl;Screen=OINF&Store_Code=&mvt:global:Store_Code;">Checkout</a>
vBulletin® v3.7.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.