Announcement

Collapse
No announcement yet.

Differing add to cart button?

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

    Differing add to cart button?

    Hiya,

    I'm going to TRY and explain this. It's rather complicated.

    We are currently adding a new product to our website, and making it do something fancy. However, we want to have a differnt add to cart button, one that will utilise an onclick property. We don't want the rest of our products to take on the onclick property though, just this one product.

    Is there any possible way we can have something like NETQUOTEVAR:ADDTOCARTBUTTON2 and point that to Act_CartButtonImage2.html, rather than the usual NETQUOTEVAR:ADDTOCARTBUTTON which points to Act_CartButtonImage.html

    Sorry if I am not too clear - my head is all over the place trying to code this up!

    Thanks,

    Ruan.

    #2
    why not use the standadd Add to cart throughout and have an onClick like

    onclick="mycode(params,'NETQUOTEVAR:PRODUCTREFERENCE')"

    now your mycode routine can simply return true if the passed reference isn't the fancy product(s), and do your custom work otherwise.

    Alternatively

    onclick="mycode(params,'CUSTOMVAR:SPECIALPRODUCT')"

    will do the same sort of thing with a customvar that you set only on your special stuff.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment

    Working...
    X