Continue Shopping Button Logic
Understanding the UltraCart "Continue Shopping" Button Logic
The "Continue Shopping" button at checkout in UltraCart has a sophisticated logic flow that determines the customer's redirection destination. This document outlines the four configurable scenarios that dictate this behavior.
Overview
The "Continue Shopping" button is a crucial element in the checkout process, allowing customers to easily return to your store to browse more items. UltraCart employs a layered approach to determine the destination URL when this button is clicked, prioritizing more specific configurations over general ones.
Configurable Scenarios
Here are the four scenarios that influence where a customer is directed after clicking "Continue Shopping":
Referrer URL: The default and most common behavior.
Store URL: A fallback option when the referrer URL is unavailable.
Override Continue Shopping URL (StoreFront): Configured at the theme level.
Item Buy Link : The most specific override, set per item.
Referrer URL
By default, UltraCart attempts to return the customer to the exact page they were on before adding an item to their shopping cart. This is achieved by extracting the referrer URL from the customer's browser.
In instances where the customer's browser settings prevent UltraCart from obtaining the referrer URL (e.g., due to privacy settings or specific browser configurations), UltraCart defaults to the Store URL configured in your merchant profile.
Store URL
To set or verify your Store URL:
Navigate to Main Menu → Configuration.
In the "General" section, select Merchant Profile.
Locate and configure the Store URL field.
Override Continue Shopping URL - StoreFronts
You can configure a specific "Continue Shopping" URL at the StoreFront theme level. This setting provides a general override for all items within that specific StoreFront.
To configure this setting:
Navigate to Main Menu → StoreFronts.
Select the desired Host.
Go to Conversion Tracking.
Under the Advanced section, configure the Override Continue Shopping URL.
Item "Buy Link"
The most granular level of control for the "Continue Shopping" URL is directly within an item's buy link or buy form. This allows you to specify a unique return URL for a particular item.
You can access the link builder tool in the "advanced buy link" section of the item's links screen:
Navigate to Home → Item Management → Items.
Locate the item for which you want to configure the "Continue Shopping" URL.
Click the Links hyperlink to the right of the configured cost of the item in the items list.
The link builder tool will appear, assisting with proper URL encoding.Continue Shopping Button's Logic
Example of a buy link with an overrideContinueShoppingUrl parameter:
http://secure.ultracart.com/cgi-bin/UCEditor?merchantId=DEMO&ADD=BONE&overrideContinueShoppingUrl=http%3A%2F%2Fsecure.ultracart.com%2Fcatalog%2Fdemo%2Fdogtreats%2F
Tip: URL Encoding Because some characters in the URL are converted to "escape characters" (e.g., %2F for /), it can be easier to construct these links using UltraCart's built-in tool.