Cross Sell in Shopping Cart Question

Questions and answers about ShopSite Custom Templates

Cross Sell in Shopping Cart Question

Postby dresdena1 » Fri Mar 21, 2014 12:09 pm

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 --]
dresdena1
 
Posts: 24
Joined: Fri Jan 03, 2014 12:35 pm

Re: Cross Sell in Shopping Cart Question

Postby ShopSite Lauren » Fri Mar 21, 2014 1:33 pm

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 --]
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.
ShopSite Lauren
 
Posts: 889
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT

Re: Cross Sell in Shopping Cart Question

Postby dresdena1 » Fri Mar 21, 2014 2:24 pm

Thank you Lauren!
dresdena1
 
Posts: 24
Joined: Fri Jan 03, 2014 12:35 pm


Return to Custom Template Questions

Who is online

Users browsing this forum: No registered users and 10 guests

cron