Announcement

Collapse
No announcement yet.

2 different add to cart buttons

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

    2 different add to cart buttons

    Hi,

    Is it possible to have 2 Different add to cart buttons. For example a Buy Now button and an Order Sample button on a different product?

    Cheers

    J
    --------------------
    www.ProSite.co.uk

    #2
    The easiest way to do this is to use an image for the Cart buttons (Design / Options / Shop Defaults / Add to cart Button) and create a new one for your samples. Save it in your Site folder. Keep it the same dimensions as your existing one.

    Then edit Act_CartButtonImage.html and replace
    Code:
    <P><INPUT TYPE="IMAGE" SRC="NETQUOTEVAR:BUTTONIMG" NAME="NETQUOTEVAR:BUTTONNAME"
    WIDTH="NETQUOTEVAR:IMAGEWIDTH" HEIGHT="NETQUOTEVAR:IMAGEHEIGHT" BORDER="0" ALT="NETQUOTEVAR:BUTTONLABEL"></P>
    with
    Code:
    <P><INPUT TYPE="IMAGE" SRC="CUSTOMVAR:CARTBUTTON" NAME="NETQUOTEVAR:BUTTONNAME"
    WIDTH="NETQUOTEVAR:IMAGEWIDTH" HEIGHT="NETQUOTEVAR:IMAGEHEIGHT" BORDER="0" ALT="NETQUOTEVAR:BUTTONLABEL"></P><!-- NETQUOTEVAR:BUTTONIMG -->
    And create a Custom Property (Advanced / Custom Properties) called CARTBUTTON.

    In Design / Options / Site Defaults / Properties select CARTBUTTON and set its value to the filename you used for your original cart button image (usually "addtocart.gif" but see Design / Options / Shop Defaults / Add to cart Button / Image) to be sure. If using Business Uncheck Searchable and check Use as CUSTOMVAR

    Now on your Sample products set the Custom Property CARTBUTTON to the name if your alternate image. Also check Is File Name and Actinic will upload it for you. (If using Business Uncheck Searchable and check Use as CUSTOMVAR)
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Hi Norman,

      Works perfectly, thanks

      J
      --------------------
      www.ProSite.co.uk

      Comment


        #4
        and I was going to suggest using 2 different act_primaries

        Comment


          #5
          Pinbrook - yeah an embarassingly simple solution but works perfectly

          I was looking into the perl scripts,
          --------------------
          www.ProSite.co.uk

          Comment


            #6
            the blindingly obvious is always the last solution we find

            Comment

            Working...
            X