Page 1 of 1

Cross Sell in Shopping Cart Question

PostPosted: Fri Mar 21, 2014 12:09 pm
by dresdena1
I currently have product cross sell assigned to several products but not all products. They are not global cross sell items.

An example can be found at: http://www.fallwreaths.com/appleorchard.html
At the bottom of the page are 3 assigned items (wreath hangers) for cross sell.

If the More Info Item is added the cart, the cross sell items do not appear as cross sell items in the cart also.

The cross sell items are various wreath hangers which can be sold with smaller wreaths but we do not want to offer them with larger wreaths as they cannot support their weight. We cannot offer them globally. We only want them to appear as cross sell items in the cart with specific wreaths.

The cart template contains cross sell information (I will paste it below), but the cross sell items do not appear when an associated item is added to the cart.
Is it possible to have them available in the cart ONLY when associated items are added to the cart?
Thank you.


THE FOLLOWING IS AT THE BOTTOM OF THE SHOPPING CART TEMPLATE:
[-- DEFINE GLOBAL_CROSS_SELL --]
[-- IF PRODUCT.Graphic --]
[-- IF CROSS_SELL_LINK --]
<a href="[-- CROSS_SELL_LINK --]"><img class="gcs_img" [-- PRODUCT.Graphic REMOVE_HTML --] alt="[-- PRODUCT.Name REMOVE_HTML --]"></a>
[-- ELSE --]
<img class="gcs_img" [-- PRODUCT.Graphic REMOVE_HTML --] alt="[-- PRODUCT.Name REMOVE_HTML --]">
[-- END_IF --]
[-- END_IF --]
# Name
[-- IF PRODUCT.DisplayName --]
[-- IF CROSS_SELL_LINK --]
<a class="gcs_name" href="[-- CROSS_SELL_LINK --]">[-- PRODUCT.Name --]</a>
[-- ELSE --]
<span class="gcs_name">[-- PRODUCT.Name --]</span>
[-- END_IF --]
[-- END_IF --]
# Price
[-- IF PRODUCT.DisplayPrice --]
[-- IF PRODUCT.SaleOn --]
<span class="gcs_price"><strike>[-- IF PRODUCT.AltPrice --][-- PRODUCT.AltPrice --] [-- END_IF --][-- PRODUCT.Price --]</strike> [-- IF PRODUCT.AltSaleAmount --][-- PRODUCT.AltSaleAmount --] [-- END_IF --][-- PRODUCT.SaleAmount --]</span>
[-- ELSE --]
<span class="gcs_price">[-- IF PRODUCT.AltPrice --][-- PRODUCT.AltPrice --][-- END_IF --] [-- PRODUCT.Price --]</span>
[-- END_IF --]
[-- END_IF --]
# Add To Cart
[-- IF AddImage? --]
<a class="gcs_add" href="[-- PRODUCT.AddToCartURL --]"><img alt="Add to Cart" [-- AddImage --] border="0"></a>
[-- ELSE --]
<a class="gcs_add" href="[-- PRODUCT.AddToCartURL --]">[-- AddText --]</a>
[-- END_IF --]
[-- END_DEFINE GLOBAL_CROSS_SELL --]
####################################
[-- DEFINE CART_CROSS_SELL --]
[-- IF PRODUCT.Graphic --]
[-- IF CROSS_SELL_LINK --]
<a href="[-- CROSS_SELL_LINK --]"><img class="pcs_img" [-- PRODUCT.Graphic REMOVE_HTML --] alt="[-- PRODUCT.Name REMOVE_HTML --]"></a>
[-- ELSE --]
<img class="pcs_img" [-- PRODUCT.Graphic REMOVE_HTML --] alt="[-- PRODUCT.Name REMOVE_HTML --]">
[-- END_IF --]
[-- END_IF --]
# Name
[-- IF PRODUCT.DisplayName --]
[-- IF CROSS_SELL_LINK --]
<a class="pcs_name" href="[-- CROSS_SELL_LINK --]">[-- PRODUCT.Name --]</a>
[-- ELSE --]
<span class="pcs_name">[-- PRODUCT.Name --]</span>
[-- END_IF --]
[-- END_IF --]
# Price
[-- IF PRODUCT.DisplayPrice --]
[-- IF PRODUCT.SaleOn --]
<span class="pcs_price"><strike>[-- IF PRODUCT.AltPrice --][-- PRODUCT.AltPrice --] [-- END_IF --][-- PRODUCT.Price --]</strike> [-- IF PRODUCT.AltSaleAmount --][-- PRODUCT.AltSaleAmount --] [-- END_IF --][-- PRODUCT.SaleAmount --]</span>
[-- ELSE --]
<span class="pcs_price">[-- IF PRODUCT.AltPrice --][-- PRODUCT.AltPrice --][-- END_IF --] [-- PRODUCT.Price --]</span>
[-- END_IF --]
[-- END_IF --]
# Add To Cart
[-- IF AddImage? --]
<a class="pcs_add" href="[-- PRODUCT.AddToCartURL --]"><img alt="Add to Cart" [-- AddImage --] border="0"></a>
[-- ELSE --]
<a class="pcs_add" href="[-- PRODUCT.AddToCartURL --]">[-- AddText --]</a>
[-- END_IF --]
[-- END_DEFINE CART_CROSS_SELL --]

Re: Cross Sell in Shopping Cart Question

PostPosted: Fri Mar 21, 2014 1:33 pm
by ShopSite Lauren
My guess is that the LOOP tags to say where you want the cross sell items to appear are not in your custom shopping cart template. To add them, go to Merchandising > Custom Templates > Shopping Cart > FWCart > Edit Template. Within the first section (the [-- DEFINE SHOPPING_CART --] section), paste the code below where you would like the cross sell products to appear.
Code: Select all
[-- IF Cart_Cross_Sell --]
  <table class="pcs_table">
      <caption>[-- STORE.CartCrossSellHeader --]</caption>
      <tr>
        [-- LOOP Cart_Cross_Sell --]
        <td class="pcs_table_content">[-- CART_CROSS_SELL --]</td>
        [-- END_LOOP Cart_Cross_Sell --]
      </tr>
    </table>
  [-- END_IF --]
 
[-- IF Global_Cross_Sell --]
  <table class="gcs_table">
      <caption>[-- STORE.GlobalCrossSellHeader --]</caption>
      <tr>
        [-- LOOP GLOBAL_Cross_Sell --]
        <td class="gcs_table_content">[-- GLOBAL_CROSS_SELL --]</td>
        [-- END_LOOP Global_Cross_Sell --]
      </tr>
    </table>
  [-- END_IF --]

Re: Cross Sell in Shopping Cart Question

PostPosted: Fri Mar 21, 2014 2:24 pm
by dresdena1
Thank you Lauren!