Announcement

Collapse
No announcement yet.

Popup Add To Cart Widget in Swift Mobile View

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Popup Add To Cart Widget in Swift Mobile View

    In a default Swift site with the ATC installed out of the box, in mobile view the cart quantity does not increment when an item is added and the popup fires.

    Looking at the layout this:
    Code:
    <a class="header-icon-link" href="<actinic:variable name="cartlinktext" />" onclick="AppendParentSection(this)">
    <i class="fa fa-shopping-basket"></i>
    
    <!--sd.widget.Popup add to cart.1.19:BEGIN-->
    <!--sd.widget.Popup add to cart.1.19.REPLACED:2c2611f06d60b75bc4f3c73a2acf8ead:<span class="mobile\-cart">-->
    <span class="mobile-cart insituCartCount">
    <!--sd.widget.Popup add to cart.1.19:END-->
    
    <script language="javascript" type="text/javascript">
    <!--
    document.write(getCartItem(3));
    // -->
    </script>
    </span>
    </a>
    Should be this:
    Code:
    <a class="header-icon-link" href="<actinic:variable name="cartlinktext" />" onclick="AppendParentSection(this)">
    <i class="fa fa-shopping-basket"></i>
    
    <!--sd.widget.Popup add to cart.1.19:BEGIN-->
    <!--sd.widget.Popup add to cart.1.19.REPLACED:2c2611f06d60b75bc4f3c73a2acf8ead:<span class="mobile\-cart">-->
    
    <span class="mobile-cart insituCartCount">
    <!--sd.widget.Popup add to cart.1.19:END-->
    
    <span class="insituCartOutput">
    </span>
    <script language="javascript" type="text/javascript">
    $('.mobile-cart .insituCartOutput').html(getCartItem(3));
    </script>
    <script type="text/html" class="insituCartTemplate">
    <%=obj.CartCount%>
    </script>
    </span>
    </a>
    I think!
    Jonathan Chappell
    Website Designer
    SellerDeck Website Designer
    Actinic to SellerDeck upgrades
    Graphicz Limited - www.graphicz.co.uk
Working...
X