Dar-us-Salam.com
05-22-06, 02:52 PM
I have been trying fruitlessly for many hours to add Sale Price code to my store but am having several problems. I would appreciate it if someone could help me.
First I tried to use the Cost field by showing the Regular price and then the sale price. This worked fine on the Product Display but for some reason it doesn't work on category field. I think that the Cost field is not available to the Category page (I have not tried the search page yet). I couldn't find a way to make this available either.
Here is the code that worked on Product page but not category:
<!-- Sale Price Calculation via Cost Field -->
<mvt:if expr="l.settings:product:formatted_cost GT l.settings:product:formatted_price">
Reg. Price: <b><s>&mvt:product:formatted_cost;</s></b><br>
<font color="#FF0000">Sale Price: <b>&mvt:product:formatted_price;</b></font><br>
<mvt:else>
Price: <b>&mvt:product:formatted_price;</b><br>
</mvt:if>
Full Price Custom Field
After failing to do that I tried to go according to the Miva tutorial "Tips & Tricks: Displaying Price Markdowns." This has just an opposite effect: It works on Category page but not on the Product Display Page. I have tried many things but can't get it to display.
<!-- Calculates Sale Price -->
<mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields :Full_Price">
Price:<s>&mvt:product:customfield_values:customfields:Full_P rice;</s><br>
<font color="#FF0000">On Sale: <b>&mvt:product:formatted_price;</b></font><br>
<mvt:else>
Price: <b>&mvt:product:formatted_price;</b><br>
</mvt:if>
Full Price: <b>&mvt:product:customfield_values:customfields:Full_P rice;</b><br>
The sample products I am using to test the Sale field are 007 & 008 found in this category:
http://store.dar-us-salam.com/store/main.mvc?Screen=CTGY&Store_Code=DP&Category_Code=Eng_Aqidah
I would appreciate it how I can get this to work. Is it possible that there is a bug in miva that I making this so difficult?
Thanks
First I tried to use the Cost field by showing the Regular price and then the sale price. This worked fine on the Product Display but for some reason it doesn't work on category field. I think that the Cost field is not available to the Category page (I have not tried the search page yet). I couldn't find a way to make this available either.
Here is the code that worked on Product page but not category:
<!-- Sale Price Calculation via Cost Field -->
<mvt:if expr="l.settings:product:formatted_cost GT l.settings:product:formatted_price">
Reg. Price: <b><s>&mvt:product:formatted_cost;</s></b><br>
<font color="#FF0000">Sale Price: <b>&mvt:product:formatted_price;</b></font><br>
<mvt:else>
Price: <b>&mvt:product:formatted_price;</b><br>
</mvt:if>
Full Price Custom Field
After failing to do that I tried to go according to the Miva tutorial "Tips & Tricks: Displaying Price Markdowns." This has just an opposite effect: It works on Category page but not on the Product Display Page. I have tried many things but can't get it to display.
<!-- Calculates Sale Price -->
<mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields :Full_Price">
Price:<s>&mvt:product:customfield_values:customfields:Full_P rice;</s><br>
<font color="#FF0000">On Sale: <b>&mvt:product:formatted_price;</b></font><br>
<mvt:else>
Price: <b>&mvt:product:formatted_price;</b><br>
</mvt:if>
Full Price: <b>&mvt:product:customfield_values:customfields:Full_P rice;</b><br>
The sample products I am using to test the Sale field are 007 & 008 found in this category:
http://store.dar-us-salam.com/store/main.mvc?Screen=CTGY&Store_Code=DP&Category_Code=Eng_Aqidah
I would appreciate it how I can get this to work. Is it possible that there is a bug in miva that I making this so difficult?
Thanks