We understand that your ecommerce site is crucial to the success of your business, from time to time issues and questions can arise and you need to have the assurance there will be someone on hand to help resolve these in a timely fashion so you can spend your time driving your own business forward.

So if you are looking for faster responses to your questions or would like the assurance there is someone on hand for you to contact, fear not we have a number of paid support options that are available to you that can give your organisation the peace of mind knowing a member from the Cart Viper team will always be available to assist!

Purchase a Support Plan

Community Support

HomeHomeIssues and Supp...Issues and Supp...Templates & UITemplates & UIedit modal captionedit modal caption
Previous
 
Next
New Post
8/26/2016 9:26 PM
 
I'm trying to find where I can edit either a template or token or language editor resource the caption that comes up in the modal dialog box .gmnCaption class for when a user adds a product to the cart?

Right now it says: "This item was added successfully to your cart!"
But I want to customize the content there and include a link to the My Account (their cart) to be able to checkout immediately from there instead of yet another click or two.

Ideas?
 
New Post
8/29/2016 10:03 AM
Accepted Answer 
Hi Jen

This is all possible with Cart Viper.

First please ensure you are using portal templates otherwise you will lose the change when you upgrade. The settings to enable portal templates is located in Store Admin - Store Info. Once this enabled it will also tell you the location of the templates.

When you know the location please go to the folder, find the file /scripts/CatalogNotificationJs.cshtml

Download Example
CatalogNotificationJs.zip

This file we are going edit to have a new razor section and also to modify the modal popup.

1. First we need some new using statements at the top of the file.
@using CartViper.Modules.Store.Cart;
@using DotNetNuke.Common;

2. Next we add a section of razor code to work out the cart url. (I've added this at line 78 in my example file)

@{
var cart = CurrentCart.GetCurrentCart(@Dnn.Portal.PortalId);
var cartUrl = Globals.NavigateURL(cart.CartPageID);
}

3. Finally we just change the modal to have some buttons and use the link we have just worked out. The changes applied are marked in bold below.

<div style="display:none">
<div id="genericModalNotification" style='padding:10px; background:#fff; text-align:center'>
<div class="gmnImage"></div>
<div class="gmnCaption"></div>
<ul>
<li style="margin-right:25px;"><a style="width:120px;" class="btn btn-success" href="#" onclick=" jQuery.colorbox.close();return false;">Continue shopping</a></li>
<li style="margin-left:25px;"><a style="width:120px;" class="btn btn-danger" href="@(cartUrl)">View your basket</a></li>
</ul>

</div>
</div>

I'd like to point out that my example both uses some Bootstrap CSS classes for rendering the buttons. So you should just style these as required , likewise you should style UL element to remove the list-style-type and make the display inline and not block so you don't get stacking of the buttons. These CSS changes are will leave to you since they are simple to implement.

Regards

Mark

 
New Post
8/29/2016 1:29 PM
 
Fantastic Mark!
I'm going to try this today.... thanks for your help!
:J
 
New Post
8/31/2016 9:15 PM
 
THAT WAS IT!  Thank you!
 
New Post
9/1/2016 9:54 AM
 
Hi Jen

Glad we could be of help.

Cart Viper is very rich in features and areas that allow the store owners to customize how to looks and works. Hopefully this thread will be of use to other Cart Viper users.

Regards

Mark
 
Previous
 
Next
HomeHomeIssues and Supp...Issues and Supp...Templates & UITemplates & UIedit modal captionedit modal caption


 

We use cookies on our website to improve our service to you, by continuing you agree to our use of cookies. However you are able to update your settings at any time.

Cookie Policy

A cookie, also known as an HTTP cookie, web cookie, or browser cookie, is a piece of data stored by a website within a browser, and then subsequently sent back to the same website by the browser. Cookies were designed to be a reliable mechanism for websites to remember things that a browser had done there in the past, which can include having clicked particular buttons, logging in, or having read pages on that site months or years ago.

Strictly Necessary Cookies

These cookies cannot be disabled

These cookies are necessary for the website to function and cannot be switched off. They are normally set in response to your interactions on the website e.g. logging in etc.

Cookies:
  • .ASPXANONYMOUS
  • .DOTNETNUKE
  • __RequestVerificationToken
  • authentication
  • CV_Portal
  • CV_Store_Portal_Cart_0
  • CV_USER
  • dnn_IsMobile
  • language
  • LastPageId
  • NADevGDPRCookieConsent_portal_0
  • userBrowsingCookie

Performance Cookies

These cookies allow us to monitor traffic to our website so we can improve the performance and content of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited or how you navigated around our website.

Cookies:
  • _ga
  • _gat
  • _gid

Functional Cookies

These cookies enable the website to provide enhanced functionality and content. They may be set by the website or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.

Cookies:

Currently we are not utilizing these types of cookies on our site.

Targeting Cookies

These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.

Cookies:

Currently we are not utilizing these types of cookies on our site.

Feedback