Search Descriptions Version
 
 
This article applies to:

ML8 Mini-Cart Installation Instructions & User Guide


Introduction

Thank you for your purchase of the Vortx Mini-Cart for AspDotNetStorefront. This guide will take you through the process of installing the Mini-Cart on AspDotNetStorefront. The process will include:

1. Run SQL
2. Merge source
3. Test Mini-Cart
4. Merge animation
5. Configuration

Before You Begin

In order to safely complete this installation on a live website you need to be able to backup your site files and database, and have a plan and permission to restore them should you encounter a problem during the installation process. Different hosting providers and environments will have different methods of backing up and restoring databases. Please work with your hosting company to discuss the backup and restore tools that are available to you. This installation process requires a level of technical expertise. Please read through the entire installation guide and make sure you understand the installation process before you begin an installation on your live site. If there are any steps of this installation process that are unclear, please contact the Marketplace Help Desk to request assistance. Before you begin please ensure that:

• You have file access to the root of your website (FTP or RDC are the most common).
• You have Super Admin Access to your AspDotNetStorefront site.
• You have the ability to use a text editor to modify an existing Xml Package.
• You have basic knowledge of HTML and CSS.

Installation

Throughout this installation guide, the Mini-Cart deployment package will be referred to as source folders and files. The website files and folders will be referred to as the target files and folders.

Run SQL

This procedure will install the new MiniCart settings (AppConfigs) and String Resources.

1. Log in to the admin console of your website.
2. Navigate to Configuration > Advanced > Run SQL.
3. In source files, navigate to the Schema/VortxMiniCart.sql file and open it in your text editor. Copy the text from VortxMiniCart.sql and paste it into the textbox on the Run SQL admin screen. Click Submit.
4. Close the text editor and click the Reset Cache button in the admin screen.

Merge Source

Using your FTP program, open the Source/skins/Skin_1 folder that is found in the source files on your desktop. Connect to your site files over FTP, and navigate to the skins/Skin_{your skinID} folder of the target site.

1. From the source files, move the following files to the target site:

a. Move the Source/Skins/Skin_1/CustomImages folder to the skins/Skin_{your skinID} folder on your website.
b. Move the js folder to the skins/Skin_{your skinID} folder on the target site.
c. Move the contents of the Source/Skins/Skin_1/XmlPackages folder to the skins/Skin_{your skinID} /XmlPackages folder on the target site.
d. Move the Mini-Cart-style.css file to the skins/Skin_{your skinID} folder on the target site.
e. Move deletefromcart.aspx and deletefromcart.aspx.cs to the skins/Skin_{your skinID} folder on the target site.

2. Download a copy of the template.ascx file from the target skins/Skin_{your skinID} folder to your local computer. Keep one file as a backup, and modify the other, this will be uploaded to the target site when the steps below are complete.
3. Open both the MiniCart-template.ascx and the template.ascx just downloaded in your text editor for merging.
4. Copy the Mini-Cart CSS reference code from MiniCart-template.ascx and add it to the <head> section of the template.ascx file:

<link href="skins/skin_1/minicart-style.css" rel="stylesheet" type="text/css" media="all"/>

5. Copy the Mini-Cart JavaScript reference code from Mini-Cart-template.ascx and add it to the <head> section of the template.ascx file.

<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript" language="javascript" src="skins/Skin_1/js/newminicart.js"></script>

6. Copy the Mini-Cart Xml Package reference from the source MiniCart-template.ascx file and add it to the template.ascx file where you want the Mini-Cart to display on the page. Position the Mini-Cart using HTML and CSS.
7. Upload the modified template.ascx file to the target site.

Test Mini-Cart

Depending on your placement of the Mini-Cart in your template, you should now be able to see the Mini-Cart on each page that displays. Go to a product and add the product to your cart and you should see the Mini-Cart Update with the new product. That will mean the Mini-Cart is set up correctly.

To test the JavaScript installation, open 2 browser windows, the first with a product page on your site, and the second with the same product’s editing screen in the admin console:

In the admin console, make note of what the Display Format XmlPackage is set to because you will want to set it back after this test. We will also use that information in the next steps of the installation.

Change the selected XmlPackage to product.minicartplain.Xml.config and click Update.

Now refresh the product page on your site, and click the add to cart button. You will see the animation working to put the product into your Mini-Cart. If you see the animation, the Mini-Cart JavaScript is set up correctly.

Set the product back to the original Xml Package and update your product.

Merge Animation

1. Find the Xml package used to display your products by going into the product editing screen in the admin console of your site.

2. Find the Xml package listed on the product editing screen on your website by going to the XmlPackages folder on the target site and matching the file name. Download it to your computer and open it using your text editor.
3. Verify that ‘<xsl:value-of select="aspdnsf:AddtoCartForm(ProductID, VariantID, 1)" disable-output-escaping="yes"/>’ is included on the page.
4. Find “<xsl:template match="Product">” (and "<xsl:template name="Variant">" if the package is multi variant) and the corresponding </xsl:template> tag(s). Add the following just before the closing </xsl:template> tag:

<script type="text/javascript">
<xsl:value-of select="concat('ajaxifyAddToCartForm(document.getElementById(&quot;AddToCartForm_',ProductID, '_',VariantID, '&quot;), &quot;ProductPic',ProductID,'&quot;);' )" />
</script>

a. Note that the second parameter in the ajaxifyAddToCartForm is the ID of the image to move to the cart. Change this value appropriately for custom image viewers.

For customers using the Advanced Product Image Viewer sold here, change &quot;ProductPic',ProductID,'&quot; to &quot;&quot;

5. Save the XmlPackage and upload it back to your site.

Configuration

1. From the admin console of your site, navigate to Configuration > Advanced > AppConfig Parameters
2. Set AppConfig: Vortx.MiniCart.UseDropDown to false if you want the Mini-Cart to always show (not be a dropdown).
3. We also recommend setting the appconfig titled 'AddToCartAction' to 'STAY'. This will help prevent javascript errors for cross domain scripting when you have ssl enabled.

Clean up

1. product.minicartplain.Xml.config is for testing and reference only. Remove it after everything is working properly.

Options

The latest versions of the Mini-Cart plugin (1.2.0 and beyond) contain several configurable options:

MiniCartMaxIconHeight - Sets the maximum height of the icon image that displays for each product in the cart (if minicart pics are enabled).

MiniCartMaxIconWidth - Sets the maximum width of the icon image that displays for each product in the cart (if minicart pics are enabled).

ShowPicsInMiniCart - Determines whether or not an icon image will be displayed next to each item in the minicart.

Vortx.MiniCart.HideContentsOnCheckout - If this is set to true, the minicart will not be interactive during the checkout process. This simplifies the page, as all of the cart contents will be visible during checkout anyway.

Vortx.MiniCart.UseDropDown - If this is set to true, customers can expand/collapse the minicart by clicking an arrow icon at the top of the minicart. If this is false, the minicart will always be fully expanded.

Support

If you have further questions or comments, please feel free to contact our help desk.