Knowledgebase:
Specific Sales Price CTGY page Readytheme
Posted by , Last modified by on 30 June 2017 07:57 AM

Disclaimer

This will work for stores on Miva Version 9.0006 or higher. Note that this will require making template changes. Make sure you make sure you are aware of what version was active before any changes are made. These edits are low-risk but if you feel uncomfortable with making these changes then we advise you to seek help from a developer. 


 

Issue

Specific Sales Price does not display on the CTGY page.

Solution:

The following is sample code that can be added to the Category Product List Layout template. This code needs to be modified to get the Specific Sales Price to display on the CTGY page.

Replace:

<mvt:if expr="l.settings:product:price GT 0">
<p>&mvte:product:formatted_price;</p>
</mvt:if>

 

With:

<!-- Sale Pricing code -->

<mvt:if expr="NOT ISNULL l.settings:product:customfield_values:discount_saleprice:XX">
Sales Price:<div class="custom-field" id="discount_saleprice-XX">&mvte:customfield_names:discount_saleprice:XX;: <span class="bold">&mvt:product:customfield_values:discount_saleprice:XX;</span></div>
<mvt:else>
Regular Price: <b>&mvt:product:formatted_price;</b><br>
</mvt:if>

<!-- End sale Pricing code -->

 

Make sure the customfield values are changed to match the ones in use.

Don't forget to assign the Specific Sales Price custom field to the Category Product List Layout template.

 

 

(0 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako support.miva.com/supportsuite/index.php?