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 & UIHow to Fix Responsive Cart Layout ProblemsHow to Fix Responsive Cart Layout Problems
Previous
 
Next
New Post
11/18/2014 9:44 PM
 

FYI

The responsive template pages (CartDetails.htm, CartDetailsItem.htm) for the cart page created a cramped layout on small devices and an unacceptable layout for extra small devices such as phones.  Even the Demo Cart on this site has this problem.  Add a few items to the cart and then view the cart using Chrome's developer tools with device mode toggled on, and select a phone from the device dropdown list such as iPhone 5 or Galaxy S4. You will see that the Price, and Line Total prices overlap to the point where they are not legible.

Also you will notice that the login box for unauthenticated users at the bottom of the cart page is too wide for xs-sm devices and this creates a horizontal scroll which we want to avoid and is one of the reasons for using responsive layouts to begin with.

To over come this, I modified breakpoints for the two pages and created two layouts, one for med to large screens, and the other for extra small to small screens. In addition, I hid the layout that is not being used.  This technique keeps the look of the CV design for the md - lg devices, but adapts the design for xs-sm layouts into multiple rows.

here it the code modifications for the pages, I have highlighted the changes that I made:

CartDetails.htm

<div class="row hidden-xs hidden-sm">

              <div class="col-xs-6"><strong>[PRODUCTHEADER]strong>div>

              <div class="col-xs-1"><strong>[QUANTITYHEADER]strong>div>

              <div class="col-xs-1"><strong>[PRICEHEADER]strong>div>

              <div class="col-xs-2"><strong>[LINETOTALHEADER]strong>div>

       div>

       [CARTITEMS]

 

CartDetailsItem.htm

!-- Styling for medium to large devices --

<div class="row text-left cvCartItemRow hidden-xs hidden-sm" data-id="[ITEMID]">

  <div class="col-md-6">

    [PRODUCTTHUMBNAIL]

    [PRODUCTHYPERLINK]

    [INSTOREPICKUP]

    [BACKORDERDETAILS]

    [VARIANTDETAILS]

  div>

  <div class="col-md-1">[QUANTITY]div>

  <div class="col-md-1">[UNITPRICE]div>

  <div class="col-md-2">[LINETOTAL]div>

  <div class="col-md-2">

    <a href="#" onclick=" return DeleteItemInCart(this, [ITEMID])" class="DeleteSingleCartItem">

        [LOCALIZATION:lblDeleteSingleItemFromCart.Text]

    a>

  div>

div>

 

!-- Styling for extra small to small devices.  Add the following Lines--

<div class="row text-left cvCartItemRow visible-xs visible-sm" data-id="[ITEMID]">

  <div class="col-xs-12">

    <span class="xsCheckoutHeader">PRODUCTspan><br />

    [PRODUCTHYPERLINK]

    [VARIANTDETAILS]

  div>

 

div>

 

<div class="row text-left cvCartItemRow visible-xs visible-sm" data-id="[ITEMID]">

  <div class="col-xs-3"><span class="xsCheckoutHeader">Quantityspan> <br />[QUANTITY]div>

  <div class="col-xs-3"><span class="xsCheckoutHeader">Unit Pricespan><br />[UNITPRICE]div>

  <div class="col-xs-3"><span class="xsCheckoutHeader">Line Totalspan><br />[LINETOTAL]div>

  <div class="col-xs-3">

    <a href="#" onclick=" return DeleteItemInCart(this, [ITEMID])" class="DeleteSingleCartItem">

        [LOCALIZATION:lblDeleteSingleItemFromCart.Text]

    a>

  div>

 

div><br />

I also modified/created the following styles (added them to the bottom of my skin.css file) to fix the problem with the login box at the bottom from being too wide on xs-sm devices, and allow for styling of row headers for the xs-sm layout:

.StoreCheckCentre, .infoAnonCheckoutCaption {

    width: 100%;

    max-width: 525px;

}

 

div.StoreCheckOutheader + div {

    padding: 0 10px;

}

 

.StoreCheckOutLogin {

    height: auto;

}

 

.xsCheckoutHeader {

    font-weight: bold;

}

Maybe Nigel and Mark can try these fixes out and if they find them acceptable they can incorporate them into the next release.

I hope this helps anyone else experiencing the same problem.

Steve

----- Edited for Additional Note -----

You may not need all of the css styles above. The padding was needed to add back padding that my skin had removed, and the auto height was to fix an additional issue with my skin, with the login box taking up too much room vertically. Most likely you would need these, but they should not adversely affect your design.

 



 

 

 
New Post
12/9/2014 6:22 PM
 

Hi Steve

This is really good, thanks for taking the time to share all that information. The layout have created looks really nice. The next release of Cart Viper 3.3 will contain this layout so a big thank you for this.

Regards

Mark

 
Previous
 
Next
HomeHomeIssues and Supp...Issues and Supp...Templates & UITemplates & UIHow to Fix Responsive Cart Layout ProblemsHow to Fix Responsive Cart Layout Problems


 

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