Miva Merchant Development by Scot's Scripts

BASK: Add a Message and Continue Shopping Link After Add to Cart

Miva Random Code Trivia

Want to start an online store? We work with you from start to finish, from commerce platform to design to SEO.
Experience counts, and we have a lot.

WARNING:

This information is offered "AS IS" for internal reference only. Use at your own risk.
Does AI actually understand your Miva Merchant store? Our smart JSON-LD schema generator makes sure it does. Contact us to get started. (more info)
SEO Audit & Inquiries • News & Updates • SEO for Miva Merchant

BASK: Add a Message and Continue Shopping Link After Add to Cart

THIS CODE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED;
THE AUTHOR DISCLAIMS ALL LIABILITY FOR ANY DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR STORE DISRUPTIONS ARISING FROM ITS USE.

Scot Ranney • October 28, 2026


If you don't want to use the flyout mini basket in Shadows and instead set up the add to cart form on the product page to go directly to the basket contents BASK page, put this code in above the <mvt:item name="readytheme" param="contentsection( 'messages' )" /> in the Details template.

<mvt:if expr="l.settings:messages:error_message_count LT 1 AND g.quantity GT 0">
	<mvt:do name="l.ok" file="g.module_library_db" value="product_load_code(g.product_code,l.product)" />
	
	<mvt:if expr="g.quantity GT 1">
	<mvt:assign name="l.msg" value="int(g.quantity) $ ' \"' $ l.product:name $ '\" items have been added to your shopping cart.'" />
	<mvt:else>
	<mvt:assign name="l.msg" value="l.product:name $ ' has been added to your shopping cart.' " />
	</mvt:if>
				
	<mvt:if expr="NOT ISNULL s.http_referer AND 'applesofgold.com' CIN s.http:referer">
	<mvt:assign name="l.msg" value="l.msg $ ' <a href=\"' $ s.HTTP_REFERER $ '\"><b>Click Here to Continue Shopping</b></a>'" />				
	</mvt:if>

	<mvt:assign name="l.ok" value="miva_array_insert(l.settings:messages:information_messages,l.msg,-1)" />
	<mvt:assign name="l.settings:messages:information_message_count" value="l.settings:messages:information_message_count + 1" />
</mvt:if>

https://www.scotsscripts.com/mvblog/bask-add-a-message-and-continue-shopping-link-after-add-to-cart.html

basket shadows