Page 1 of 1

Up-sale and cross-sale not working on demo (2.0.2-GA)

Posted: Thu Dec 20, 2012 11:43 am
by despot
Hi,

is the up-sale and cross-sale functionality available?
In the admin panel I am going through:
Catalog and Merchandising -> Product -> Filter (Funnel Icon) -> [Select Product] (lets say X)-> Featured -> [Add Cross-Sale products (Y) and Up-Sale products (Z)]
Once I am on the site, I click / open the detailed product page and I cannot see Y and Z in the featured products section (or another section).

I am using 2.0.2-GA version.
Could you please verify this?

Kind Regards,
despot

Re: Up-sale and cross-sale not working on demo (2.0.2-GA)

Posted: Fri Dec 21, 2012 4:34 pm
by phillipuniverse
You'll need a slight change in the template for this. Find the following snippet on product.html:

Code: Select all

<section id="right_column">
   <header>Featured Products</header>
   <div id="options">
      <div class="section">
         <blc:related_products productId="${product.id}"/>   
         <ul id="featured_products" class="group">
         <li th:each="relatedProduct : ${relatedProducts}" th:object="${relatedProduct.product}" th:include="catalog/partials/productListItem" class="product_container"></li>
         </ul>
      </div>                           
   </div>
</section>   


Say that you want to use the Cross Sale Products list. Change the blc:related_products invocation to this:

Code: Select all

<section id="right_column">
   <header>Featured Products</header>
   <div id="options">
      <div class="section">
         <blc:related_products type="CROSS_SALE" productId="${product.id}"/>   
         <ul id="featured_products" class="group">
         <li th:each="relatedProduct : ${relatedProducts}" th:object="${relatedProduct.product}" th:include="catalog/partials/productListItem" class="product_container"></li>
         </ul>
      </div>                           
   </div>
</section>   


There is also one bug here in the code. You'll need to modify the <li th:object parameter to use 'relatedProduct.relatedProduct' in order for it to work as you expect. So the final code snippet would be:

Code: Select all

<section id="right_column">
   <header>Featured Products</header>
   <div id="options">
      <div class="section">
         <blc:related_products type="CROSS_SALE" productId="${product.id}"/>   
         <ul id="featured_products" class="group">
         <li th:each="relatedProduct : ${relatedProducts}" th:object="${relatedProduct.relatedProduct}" th:include="catalog/partials/productListItem" class="product_container"></li>
         </ul>
      </div>                           
   </div>
</section>   

Re: Up-sale and cross-sale not working on demo (2.0.2-GA)

Posted: Thu Jan 10, 2013 1:12 pm
by skystar3
How to display the promotion message to the user?

Thanks

Re: Up-sale and cross-sale not working on demo (2.0.2-GA)

Posted: Fri Jan 11, 2013 11:04 am
by phillipuniverse
There is a property on CrossSaleProductImpl for 'promotionMessage'. In the case given above, it would be ${relatedProduct.relatedProduct.promotionMessage}

Re: Up-sale and cross-sale not working on demo (2.0.2-GA)

Posted: Sat Mar 09, 2013 7:20 pm
by mota_nginya
Is there a list of attributes that one can take a look at. In other where did you get this "type="CROSS_SALE"", is it written somewhere? I would more so that I customize the section of the page the way I want. I need to also mess with filters and need some information about that too.

Thanks

Re: Up-sale and cross-sale not working on demo (2.0.2-GA)

Posted: Sun Jun 30, 2013 11:07 am
by jonjon
Does this working with 2.0.2-GA...

I could not display the up_sale and cross_sale items....using the changes above.
--------
<section id="right_column">
<header>UPSALE Products </header>
<div id="options">
<div class="section">
<blc:related_products type="UP_SALE" productId="${product.id}"/>
<ul id="featured_products" class="group">
<li th:each="relatedProduct : ${relatedProducts}" th:object="${relatedProduct.relatedProduct}" th:include="catalog/partials/productListItem" class="product_container"></li>
</ul>
</div>
</div>
</section>
---------