Developer forum

Forum » Ecommerce - Standard features » Discount description on product

Discount description on product

Kim Søjborg Pedersen
Reply

Hi, is it possible to output the discount description on the product, like "SPEND $30 SAVE 25% CODE: SWEETDEAL" (see attachment) without making a customsolution?

Discount-description-2015-02-10_1637.png

Replies

 
Vladimir
Reply
This post has been marked as an answer

Hi Kim,

There are tags in discount loops:

ProductDiscounts: Ecom:Product.Discount.Description           

AllDiscounts: Ecom:AllDiscounts.Discount.Description           - this loop is available  in 8.6.1

 

Best regards,

Vladimir

Votes for this answer: 1
 
Kim Søjborg Pedersen
Reply

Hi Vladimir,

Thanks I got it working when inside <!--@LoopStart(Products)--> I need it to work outside the loop also to output the message in the global siteheader, I guess in the context of the Page. Is it possible or do I have do be in the context of Product?

 

 

 
Vladimir
Reply

Hi KIm,

yes, these loops are exist only in context of a product.
On a global level this is possible with a custom TemplateExtender... or may be with such hack:

create a hidden page with "dummy" product with discounts and insert it with <!--@Global:Page.Content(dummyPageID)--> in any place you want

 

Best regards,

Vladimir

 

You must be logged in to post in the forum