Announcement

Collapse
No announcement yet.

Cart button in other pages

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

    Cart button in other pages

    Most of the thumbnails on my site go to an "extended info" page but NOT via the Extended Info built into Actinic. I would like to place an Add to Cart button on these pages. Does anyone know how to do this, like the code I need to drop in or where I might find help with this?
    Mark

    #2
    If you have really simple products (no attributes, choices, etc) then there are plenty of posts on this and the Knowledge base regarding adding to cart from outside catalog. A bit of searching should find you some.

    Also, I've done an extension to Actinic that lets the usual Actinic popup pages have full add to cart capability with all attributes / choices, etc.
    This may be worth switching to if you use Attributes, Components, etc. See http://www.rouxel.cwc.net/actinicstuff.html

    Norman
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Add to Cart Button

      I have already carried out 2 searches and unfortunately didn't come up with anything specific to my query. I have also looked in the knowledge base and found nothing. Perhaps I'm not using the correct search terms but I would have thought that "Add to Cart Button" would show anything relevant if it existed. I will keep searching. My question is still active.
      Mark

      Comment


        #4
        Add to Cart Button

        I have found something. which hopefully will will work.
        Cheers
        Mark

        Comment


          #5
          I had a search too as I'm pretty sure I'd posted on this myself. However I've got over 1,000 postings so it was going to be a huge slog so I gave up after lots of misses.

          Anyway:-

          Each of your home brewed thumbnails will have to contain a lot of Actinic parameters for this to work.

          You may find it easier to convert them to Extended Info pages and use my extension above for getting the Cart button working on them.

          That way all the product info is automatically created for you.

          Norman
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            Extended Info

            Your script seems to work fine Norman. Whilst I'd like to use the Extended Info function I don't really want to introduce pop-ups on the site. Is there a way to have the Extended Info open in the parent browser window instead?
            Mark

            Comment


              #7
              Try this. It's a heavily cut down Act_primary, merged with my Cart Button popup product line, most of the JavaScript stripped out ans simplified, and a form wrapped round the product.

              Code:
              Add to cart capable popup in main page instead of popup.
              
              Go to Design / Text / Phase -1 ID 2175 and replace:
              
              javascript:ShowPopUp('%s',%s,%s);
              
              with:
              
              javascript:location.href=unescape('%s');
              
              
              Save the following in Site1 as SamePageInsteadOfPopUp.html and use for the Extended Info Template
              in the products where you want the popup to appear in the same page:
              
              
              <!-- Same Page Instead of Popup Primary HTML begin -->
              <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
              <HTML>
              <HEAD>
                 <TITLE>
                 NETQUOTEVAR:PAGETITLE NETQUOTEVAR:PAGEHEADER
                 </TITLE>
                 <Actinic:BASEHREF VALUE="NETQUOTEVAR:BASEHREF"/>
                 <META NAME="ACTINICTITLE" CONTENT="NETQUOTEVAR:PAGEHEADER">
                 <META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
              <LINK REL=STYLESHEET HREF="actinic.css">
              
              
              <SCRIPT LANGUAGE="JavaScript" SRC="actiniccore.js" TYPE="text/javascript"></SCRIPT>
              <SCRIPT LANGUAGE="JavaScript" SRC="actinicextras.js" TYPE="text/javascript"></SCRIPT>
              
              <!-- Placeholder of cookie checking javascript code. Do not remove it! -->
              <Actinic:COOKIECHECK/>
              
              </HEAD>
              
              <BODY NETQUOTEVAR:BGIMAGE NETQUOTEVAR:BGCOLOR TEXT="NETQUOTEVAR:FGCOLOR" NETQUOTEVAR:LINKCOLOR NETQUOTEVAR:VLINKCOLOR NETQUOTEVAR:ALINKCOLOR marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">
              
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr background="bg_top.gif">
                  <td background="bg_top.gif" height="60" width="50%" valign="bottom" align="left"><a name="top"></a></td>
              	  <td background="bg_top.gif" height="60" width="50%" valign="middle" align="center">
                  </td>
              </tr>
              <tr valign="middle" align="center" background="pxl_black.gif">
              <td height="30" colspan="2" background="pxl_black.gif">
              <!-- NETQUOTEVAR:TOPLEVELSECTIONSTOP  -->
              </td>
              </tr>
              <tr background="pxl_blue.gif">
              <td height="1" colspan="2" valign="bottom" align="left" background="pxl_blue.gif"><img src="pxl_blue.gif" width="1" height="1"></td>
              </tr>
              <tr background="pxl_green.gif">
              <td height="20" colspan="2" valign="bottom" align="left" background="pxl_green.gif"><img src="spacer.gif" width="1" height="20"></td>
              </tr>
              </table>
              <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td width="175" align="left" valign="top" background="pxl_black.gif">
              
              </td>
                  <td height="300" align="center" valign="top" background="pxl_black.gif"><br>
                    <table border="0" cellspacing="0" cellpadding="0" width="CUSTOMVAR:ACTSTDWIDTH" align="CENTER">
              <tr>
              
              <td valign="MIDDLE" align="LEFT" >
              NETQUOTEVAR:PRODUCTFORMBEGIN
              
              <TABLE BORDER=0 cellpadding="5" cellspacing="0">
                <TR> 
                  <TD rowspan="3" align="center" valign="top">
              
              	  <IMG SRC="NETQUOTEVAR:INFOIMAGE" WIDTH=NETQUOTEVAR:INFOIMAGEWIDTH HEIGHT=NETQUOTEVAR:INFOIMAGEHEIGHT> 
                  </TD>
                  <TD valign="top"> <b><span class="actregular">NETQUOTEVAR:PRODUCTNAME</span></b>&nbsp;NETQUOTEVAR:PRODUCTREF</TD>
                </TR>
                <TR> 
                  <TD valign="top">NETQUOTEVAR:INFOTEXT
                    <br>
                    <span class="actxsmall">NETQUOTEVAR:PRODUCTBEGINLINKNETQUOTEVAR:PRODUCTLINKTEXTNETQUOTEVAR:PRODUCTENDLINK
                    NETQUOTEVAR:PRICEEXPLANATION </span>
                    <br>
                    <b>NETQUOTEVAR:PRODUCTPRICE</b>
                    <span class="actxsmall">NETQUOTEVAR:OTHERINFOPROMPT </span>
                    <span class="actxsmall">NETQUOTEVAR:DATEPROMPT </span>
                    <span class="actxsmall">
              			NETQUOTEVAR:CARTERRORXMLNETQUOTEVAR:PRODUCTQUANTITY<br>
              			<Actinic:ACTIONS>NETQUOTEVAR:ADDTOCARTBUTTON</Actinic:ACTIONS>
              		    </span>
                    NETQUOTEVAR:TEMPLATEENDXML
              
                 </TD>
                </TR>
                <TR> 
                  <TD valign="top"> 
                 <input type=button value="Go Back" onclick="location.href=document.getElementById('PAGEFILENAME').value;">
                  </TD>
                </TR>
              </TABLE>
              
              NETQUOTEVAR:PRODUCTFORMEND
              </td>
              </tr>
              </table>
                  </td>
              </tr>
                <tr>
                  <td colspan="2" valign="top" align="left" background="pxl_blue.gif"><img src="pxl_blue.gif" width="1" height="1"></td>
              </tr>
                <tr align="right" valign="middle">
                  <td colspan="2" height="50" background="pxl_green.gif"><table width="100%" border="0" cellspacing="0" cellpadding="5">
                      <tr>
                        <td align="right"><img src="back_to_top.gif" width="108" height="27" border="0" alt="Back to Top" OnClick="GotoAnchor('top')"></td>
                      </tr>
                    </table>
              
                  </td>
              </tr>
              </table>
              
              </BODY>
              </HTML>
              <!-- Primary HTML end -->
              This was my first attempt at this and, as I have no need for it myself, debugging and extending it will be up to you.

              Norman
              Norman - www.drillpine.biz
              Edinburgh, U K / Bitez, Turkey

              Comment


                #8
                No pop-ups

                Norman, you're a star. Thank you. I shall try it later tonite when the site is quiet.
                Mark

                Comment


                  #9
                  This was only briefly tested by me and will change the way all Extended Info pages work. If you have existing extended info pages it will break them. If you have none then you should be able to test OK as it's only the Extended Info pages that are altered.

                  Personally, I'd save my network settings and then use a different set to try it out on a test server (don't forget to set a different cgi ID number).

                  Or set up and test on a standlone server as per the Advanced Guide. That's how I test things here.

                  Norman
                  Norman - www.drillpine.biz
                  Edinburgh, U K / Bitez, Turkey

                  Comment


                    #10
                    Extended Info

                    You'll be pleased to hear that the script works fine bringing up the extended info into the parent window. The only thing that doesn't work is the Add to Cart button. Had a fiddle around, but can't figure out why not, but I'm not too bothered about this. It would have been cool to have it work but our customers are quite used to returning to the thumbnail page to Add to Cart. I will pursue it. Thanks again Norman.
                    Mark

                    Comment


                      #11
                      Wierd. The Cart Button works on these popup in same window pages for me here.

                      What happens when you press it?

                      Also, make sure you have "Quantity on Product Page" type sections for the ones your testing this on, as this is how I tested it.

                      Norman
                      Norman - www.drillpine.biz
                      Edinburgh, U K / Bitez, Turkey

                      Comment


                        #12
                        Extended Info

                        It works now. Didn't have Quantity in Products Pages switched on. Working too late, silly me.
                        Terrific help Norman. Thanks.
                        Mark

                        Comment

                        Working...
                        X