Announcement

Collapse
No announcement yet.

account dependent code not working

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    account dependent code not working

    Hi,

    I wonder if anyone out there has got any ideas about this problem I'm having. Please bear with me as it takes a bit of explaining.

    I have the following code in my product section template.


    <Actinic:NOTINB2B><span class="myProductTitle"><a HREF="CUSTOMVAR:MYPRODUCTLINKNETQUOTEVAR:PRODUCTREFERENCE&NOLOGIN=1">NETQUOTEVAR:PRODUCTNAME</a></span></Actinic:NOTINB2B>

    <Actinic:SHOWFORPRICESCHEDULE Schedules="1,2,3"
    HTML="&#60;span class=&#34;myProductTitle&#34;&#62;&#60;A HREF=&#34;CUSTOMVAR:MYPRODUCTLINKNETQUOTEVAR:PRODUCTREFERENCE&#34;&#62;
    NETQUOTEVAR:PRODUCTNAME&#60;&#47;A&#62;&#60;&#47;span&#62;"/>

    The CUSTOMVAR is defined as
    http://www.brightkidz.co.uk/cgi/ss100001.pl?PRODREF=
    in my site options.

    It has been working ok & still is on my test server. However it has stopped working in production. In fact it seems to screw up after updating customer account details. I tried doing a purge through help|troubleshooting and it fixed the problem until I did another customer account update.

    This code works fine for not logged-in customers. However, the problem is that when a customer is logged in the showforpriceschedule code isn't displayed. There is a space where the code should be.

    After purging the site the code was working fine but as soon as I made a minor change to an account (changed the password) and refreshed it stopped working for all accounts. I've tried purging again but this hasn't fixed it.

    PS. I've previously tried doing the <Actinic:NOTINB2B><!--</Actinic:NOTINB2B> etc trick but that just doesn't seem to work ever which is why I've ended up with the showforpriceschedule. (What I'm trying to do is take customers to a product details page using the NOLOGIN=1 if they are unregistered and dropping it off the link if they have already logged in)

    Thanks for getting this far, any help would be appreciated.

    Regards, Lance
    Lance

    www.brightkidz.co.uk

    "High visibility clothing and accessories for children and adults"

    #2
    It looks like I've partially solved the problem - somehow the price schedules are now 1, 4, and 5 instead of 1,2 and 3! Not sure how that happened.

    Now my problem is that when the customer is logged in they are still asked to login when clicking on the product link. I want it to take them straight to the product.

    I think I'll try another purge!
    Lance

    www.brightkidz.co.uk

    "High visibility clothing and accessories for children and adults"

    Comment

    Working...
    X