PDA

View Full Version : Help : Different pricing displays for different products?


skinnybloke
24-Nov-2003, 03:20 PM
Hi -

I have a requirement for a site to have 2 sections. The first is for products that can be purchased online. This will require an image, product name, description and price which displays excluding vat at 17.5% - all setup nicely - no problem.

There is then a requirement for a second section. This is for products that cannot be purchased online.

In this section there is a requirement to show product name and price in a line. I do not want to show the price description or the text "excluding vat at 17.5%" e.g.

Product 1 £32.00
Product 2 £45.00

Can this be done?

Also can the alternate lines be in different colours?

TIA

cdicken
25-Nov-2003, 03:37 PM
You can remove NETQUOTEVAR:TAXMESSAGE from Act_ProductPrice. This means that prices will appear without the 'Excluding...' message. You then simply add the text of that message back into your Act_ProductLine template just after NETQUOTEVAR:PRODUCTPRICE.

To get products alternating in the way you describe, try product layout code like the following.....



NETQUOTEVAR:ENDSEPARATOR
NETQUOTEVAR:PRODUCTFORMBEGIN

<TR>
<TD COLSPAN=3 VALIGN="TOP" bgcolor="red">
NETQUOTEVAR:TEMPLATEBEGINXML
<A NAME="NETQUOTEVAR:PRODUCTANCHOR">
<B>NETQUOTEVAR:PRODUCTNAME</B>
</A>
NETQUOTEVAR:PRODUCTPRICE
NETQUOTEVAR:TEMPLATEENDXML
</TD>
</TR>
NETQUOTEVAR:PRODUCTFORMEND
NETQUOTEVAR:NEXT

NETQUOTEVAR:ENDSEPARATOR
NETQUOTEVAR:PRODUCTFORMBEGIN

<TR>
<TD COLSPAN=3 VALIGN="TOP" bgcolor="blue">
NETQUOTEVAR:TEMPLATEBEGINXML
<A NAME="NETQUOTEVAR:PRODUCTANCHOR">
<B>NETQUOTEVAR:PRODUCTNAME</B>
</A>
NETQUOTEVAR:PRODUCTPRICE
NETQUOTEVAR:TEMPLATEENDXML
</TD>
</TR>
NETQUOTEVAR:PRODUCTFORMEND
NETQUOTEVAR:NEXT

<!-- Unused Netquotevars -->
<!-- NETQUOTEVAR:PRODUCTIMAGE -->
<!-- NETQUOTEVAR:PRODUCTREF -->
<!-- NETQUOTEVAR:PRICEEXPLANATION-->
<!-- NETQUOTEVAR:PRODUCTDESCRIPTION-->
<!--<Actinic:ACTIONS>NETQUOTEVAR:ADDTOCARTBUTTON</Actinic:ACTIONS>-->
<!--NETQUOTEVAR:PRODUCTBEGINLINKNETQUOTEVAR:PRODUCTLINKTEXTNETQUOTEVAR:PRODUCTENDLINK -->
<!--NETQUOTEVAR:EXTINFOLINKNETQUOTEVAR:EXTINFOBUTTON-->
<!--NETQUOTEVAR:OTHERINFOPROMPT -->
<!--NETQUOTEVAR:DATEPROMPT -->
<!--NETQUOTEVAR:CARTERRORXML -->
<!--NETQUOTEVAR:PRODUCTQUANTITY<br> -->

skinnybloke
25-Nov-2003, 03:45 PM
Thanks Chris - I'll give that a go.

skinnybloke
27-Nov-2003, 09:30 AM
that worked a treat - thanks.