PDA

View Full Version : Actinic:SHOWFORPRICESCHEDULE problem


Kermy
14-Nov-2006, 11:53 AM
I'm playing around with the <Actinic:SHOWFORPRICESCHEDULE /> tag (which I'm sure worked before) but now, the tag seems to be ignored by Actinic, meaning it shows up in the HTML source.

Basically I need to pass the Price Schedule ID to a JavaScript variable. I've tried this with:

priceBand=<Actinic:SHOWFORPRICESCHEDULE Schedules="1" HTML="1" /><Actinic:SHOWFORPRICESCHEDULE Schedules="1" HTML="2" />;

My thinking was Actinic would display the value corresponding to the current schedule and leave the rest alone, resulting in, for example:

priceBand=1;

This is within Act_ProductLine.html template, and even the example copied directly from the KB article does precisely the same whether logged in or not.

Has anyone else who uses this tag had this problem?

cdicken
15-Nov-2006, 10:12 AM
Graham

Schedules="1" will only appear if the customer has logged into an account with a customer group of 'Retail'. Is this what you are testing? - because if it is a customer group other than 'Retail' then you need to edit this number.

Kermy
16-Nov-2006, 07:59 AM
Gah, sorry, the second schedules attribute should read "2". What's really puzzling me is that Actinic is ignoring the tag completely, so it appears as is, in the page source.

cdicken
16-Nov-2006, 08:40 AM
OK - the tags should work - could you try them outside of the JavaScript and see if that makes a difference? Where abouts in the code are you including the tags?

Kermy
16-Nov-2006, 01:38 PM
Thats it working now - nevermind!