PDA

View Full Version : Default Attribute Price Display on Category Pages


adam2003w
11-01-06, 07:09 PM
Default Attribute Price Display on Category Pages

I have several products in a miva 5 store that have a $0 product price and various prices for attributes. Attribute pricing works great except on all the category pages the price for the product comes up as $0.

How do I make one of the attribute prices or the default attribute price to show up on the category pages instead of the actual product price of $0?

Do I need a plugin for this or is there a snippet of code I can use?

Dan - Kemper Strategic
11-01-06, 08:32 PM
I have used custom product fields with an if/else statement in this situation. If the price equals "0", then display the custom product field, else, display the normal price. You can even spruce things up a little with "Price: Starting at $14.95" or something along those lines.

You will still need to enter the alternate price into the custom product field for each zero priced product, but it is a quick and easy solution.

lfreeman
11-01-06, 11:55 PM
Put a default price in your cost for each product then you can use this:
<mvt:if expr="l.settings:product:price EQ 0">
Price: <b>&mvt:product:formatted_cost;</b><br>
<mvt:else>
Price: <b>&mvt:product:formatted_price;</b>
</mvt:if>

adam2003w
11-08-06, 05:28 PM
That is the solution that will work for me. Thanks.