Scenario
Add strike-through on the prices shown on the web store when users want to showcase discounted prices
Solution
- Navigate to Commerce > Site Builder > Items/Categories templates
- Edit the product template currently being used
- Add the tag to get the original price and the discounted price
- Add strike tag to the original price
Note: This would mean original prices have been removed (but user still want to display them) and show the current or discounted price.
<p><a class="price" href="<%=getCurrentAttribute('item','storeurl')%>"><%=getCurrentAttribute('item','pricelevel5')%> </a></p>
<p><strike><a class="price" href="<%=getCurrentAttribute('item','storeurl')%>"><%=getCurrentAttribute('item','pricelevel1')%> </a> </strike></p>