Miva Merchant 4 Module FAQs » Category Page Templates (BROK_CTGYTEMPLATES)


{docurl}

Selective Replacement of Price For Certain Products

I have your product and category page templates (which are wonderful!) and need to include a replacement message for the price for certain products. (We sell spas and would like to include other forms of payment which are not compatible with the internet)

I only want to use this for the spas themselves, however we offer hundreds of other products that we would like to process regularly.

There are a couple different approaches you could take. If you want to replace the price you could set the product's price to 0 and use the conditional tokens:

%begin_zeroprice%...%end_zeroprice%

These tokens will display the text between them only if the product has a 0 price. Similarly, you could put the regular %prodprice% token between the tokens:

%begin_hasprice%...%end_hasprice%

These tokens will display the text between them only if the product does NOT have 0 price. So you would be replacing the Price: %prodprice% code in the token with:

%begin_hasprice%
Price: %prodpriceF%
%end_hasprice%
%begin_zeroprice%
This product has special pricing
%end_zeroprice%

You could do the same thing with other pairs of conditional tags. For example, you could set the weight of the spas to 0 and use the %begin_hasweight%...%end_hasweight%/%begin_noweight%...%end_noweight% pair.



Last update: 2003-07-29 00:55
Author: Support
Revision: 1.0

Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 0 out of 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry

Records in this category