Announcement

Collapse
No announcement yet.

Typo in Swift layout ‘Also Bought Items in Shopping Cart’ causes 'nesting' of divs

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

    Typo in Swift layout ‘Also Bought Items in Shopping Cart’ causes 'nesting' of divs

    Swift 203 out of the box layout ‘Also Bought Items in Shopping Cart’ has a typo. At Line 14 there is </p> which should be </div> and this is causing infinitely nested divs of marketing-list-entry.

    Code:
    <!-- Also bought list begin-->
    <Actinic:REMOVE TAG="AlsoBoughtLine">
    <div class="footer-product-sec people-who-bought">
    <h3 class="theme-title"><span class="">Customers who bought these items also bought the following:</span></h3>
    
    <div class="d-block d-flex-md flex-wrap footer-product-list">
    <!-- Also bought list row begin-->
    <Actinic:XMLTEMPLATE NAME="AlsoBoughtLine">
    
    <div class="marketing-list-entry">
    <div class="thumbnail no-price-thumbnail">
    <div class="image">
    <a href="<actinic:variable name="SearchCGIURL" />?PRODREF=<Actinic:Variable name="ProdRefEncoded" />&amp;NOLOGIN=1<actinic:block if="%3cactinic%3avariable%20name%3d%22HiddenFields%22%20%2f%3e%20%21%3d%20%22%22">&amp;SHOP=<Actinic:Variable Name="HiddenFields"/></actinic:block>"><Actinic:Variable Name="ProductNameOnline"/></a>
    </p>
    </div>
    </div>
    </Actinic:XMLTEMPLATE>
    <!-- Also bought list row end-->
    </div>
    </div>
    </Actinic:REMOVE>
    <!-- Also bought list end-->
    Even fixing this (change line 14 </p> to </div>) it renders as a white box just containing a text link.

    Thanks to Gary in Support who provided this rather nice solution that works really well:

    Code:
    <!-- start -->
    <!-- Also bought list begin-->
    <Actinic:REMOVE TAG="AlsoBoughtLine">
    <div class="footer-product-sec people-who-bought">
    <h3 class="theme-title"><span class="">Customers who bought these items also bought the following:</span></h3>
    
    <div class="d-block d-flex-md flex-wrap footer-product-list">
    <!-- Also bought list row begin-->
    <Actinic:XMLTEMPLATE NAME="AlsoBoughtLine">
    <div class="marketing-list-entry">
    <div class="thumbnail no-price-thumbnail">
    <div class="image">
    <a href="<actinic:variable name="SearchCGIURL" />?PRODREF=<Actinic:Variable name="ProdRefEncoded" />&amp;NOLOGIN=1<actinic:block if="%3cactinic%3avariable%20name%3d%22HiddenFields%22%20%2f%3e%20%21%3d%20%22%22">&amp;SHOP=<Actinic:Variable Name="HiddenFields"/></actinic:block>">
    <Actinic:REMOVE TAG="ImageLine"><img class="img-responsive" src="<actinic:variable name="Thumbnail" />" /></Actinic:REMOVE>
    </a>
    </div>
    <div class="caption">
    <a href="<actinic:variable name="SearchCGIURL" />?PRODREF=<Actinic:Variable name="ProdRefEncoded" />&amp;NOLOGIN=1<actinic:block if="%3cactinic%3avariable%20name%3d%22HiddenFields%22%20%2f%3e%20%21%3d%20%22%22">&amp;SHOP=<Actinic:Variable Name="HiddenFields"/></actinic:block>" class="product-name"><span><Actinic:Variable Name="ProductNameOnline"/></span></a>
    </div>
    <p class="product-info">
    <a class="add-to-cart-btn" href="<actinic:variable name="SearchCGIURL" />?PRODREF=<Actinic:Variable name="ProdRefEncoded" />&amp;NOLOGIN=1<actinic:block if="%3cactinic%3avariable%20name%3d%22HiddenFields%22%20%2f%3e%20%21%3d%20%22%22">&amp;SHOP=<Actinic:Variable Name="HiddenFields"/></actinic:block>">
    <img src="cart-icon-w.png" class="cartIcon" alt="">
    </a>
    </p>
    </div>
    </div>
    </Actinic:XMLTEMPLATE>
    <!-- Also bought list row end-->
    </div>
    </Actinic:REMOVE>
    <!-- Also bought list end-->
    <!-- end -->
    Jonathan Chappell
    Website Designer
    SellerDeck Website Designer
    Actinic to SellerDeck upgrades
    Graphicz Limited - www.graphicz.co.uk

    #2
    Act_DesignExport - Copy .txt

    Tiny export file with the revised ‘Also Bought Items in Shopping Cart’ layouts
    Jonathan Chappell
    Website Designer
    SellerDeck Website Designer
    Actinic to SellerDeck upgrades
    Graphicz Limited - www.graphicz.co.uk

    Comment

    Working...
    X