PDA

View Full Version : Can I have 2 different ACT_PRODUCTPRICE templates?


jxm28788
24-Mar-2008, 01:23 PM
Can I have 2 different ACT_PRODUCTPRICE templates?

On most pages, with qty discounts my product prices are laid out like this (image the columns line up) -
1 £145.00 (£170.38 inc VAT)
2 to 5 £140.00 (£164.50 inc VAT)
6 to 9 £135.00 (£158.63 inc VAT)
10 or more £130.00 (£152.75 inc VAT)

But for some new products I want to build the prices into a table, with the price like this -

145.00 140.00 135.00 130.00

So is this possible, either by having 2 templates or some other method?

pinbrook
24-Mar-2008, 02:13 PM
i would imagine so, but i'd guess that you might need different product templates to call them

jxm28788
24-Mar-2008, 02:31 PM
But the product template calls the price using "NETQUOTEVAR:PRODUCTPRICE", so I'm not sure how that would work?

pinbrook
24-Mar-2008, 04:51 PM
could you create a customvar?

fergusw
24-Mar-2008, 08:37 PM
I would say that it might be worthwhile upgrading to V9 as this would be simple in the newer version rather than tackling this in V7 with CUSTOMVARS.

jxm28788
25-Mar-2008, 10:11 AM
I think a customvar solution would be a lot quicker and simpler than upgrading to v9, but I'm not sure how it would work - what would the customvar contents be...?

fergusw
25-Mar-2008, 10:19 AM
what would the customvar contents be...?

If you wanted the following:

1 £145.00 (£170.38 inc VAT)
2 to 5 £140.00 (£164.50 inc VAT)
6 to 9 £135.00 (£158.63 inc VAT)
10 or more £130.00 (£152.75 inc VAT)

then this is what the customvar contents would need to be. i.e. setting it for every product individually, and updating each one anytime there was a change in price - hence why, in the long term, it may be more time efficient using V9.

jxm28788
25-Mar-2008, 10:28 AM
oh I missunderstood the earlier post. I though it meant to use the customvar to call the separate template...

jont
25-Mar-2008, 10:30 AM
You could run an export > excel to change > import to update the prices but as Fergus says this is a real pain and the cost of upgrading to v9 would soon look like peanuts in comparison of maintaining the prices manually.

jxm28788
25-Mar-2008, 10:33 AM
For now I have used the old method with my new products, when I get time I think I will just update all products to the 'new look'... seems like the only way. guess it will at least be consistant for the user...

NormanRouxel
25-Mar-2008, 11:13 AM
There's a possible kludgy way. Copy your product template to a new file. Amend that to replace

NETQUOTEVAR:PRODUCTPRICE

with

<script type="text/javascript">
$pricehtml = 'NETQUOTEVAR:PRODUCTPRICE';
// Javascript here to alter and format $pricehtml as required
document.write($pricehtml);
</script>

And use this new product template only for such items.

You may need to have CompactHTML/CGI checked so that NETQUOTEVAR:PRODUCTPRICE doesn't contain any troublesome newlines.