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


{docurl}

What I would like to see is a vertical bar only displayed betweenproducts, so if X is a product, a row would look like this:for 4 products: X | X | X | X for 3 products: X | X | X for 2 products: X | X for 1 product: X

(2003/08/14)This one is tricky! Try this: Add the vertical line to the "product template" area so that it displays "before" the product and put this code around the vertical line. It should make the line conditional and display only if the product isn't in the first position in the row.

%begin_if|fmod((g.prod_count - g.offset),4)|%
>vertical line here<
%end_if%

Note that this assumes that the products are being displayed 4 to a row. If you have a template with a different number of cells you need to change that 4 to however many cells there are.



Last update: 2004-12-08 14:01
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