Announcement

Collapse
No announcement yet.

Adding Extended Info Popup to Cart Product Description

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

    Adding Extended Info Popup to Cart Product Description

    How can I modify the product reference link on the shopping cart page (Act_ShoppingCartXML) to open the Extended Info Popup window? I was hoping it would be as easy as copying the code I have in my product layout page

    (I modified NETQUOTEVAR:PRODUCTNAME

    to:

    NETQUOTEVAR:EXTINFOBUTTONNETQUOTEVAR:PRODUCTNAME</a>
    )

    but that does not seem to be working. As always, thanks in advance for all you Actinic brainiacs out there who have awesome solutions.

    k

    #2
    NETQUOTEVAR:EXTINFOBUTTON won't work in Act_ShoppingCartXML. There are two possible solutions.

    1) If you always use the default Extended Info page name info_<prodref>.html then you could try something like

    <a href="javascript:ShowPopUp('info_NETQUOTEVAR:PRODREF',400,400);">More...</a>

    I can see problems with this if you use duplicates as these incorporate the duplicate sequence number into the page name. The above won't know this and you'll always get the popup for the parent product.

    2) Use a modified product template and Perl patches to pass and store the popup page name in the Cart. You can then extract it at Cart display and generate the popup code if it exists. This will probably require 2 Templates and 3 Perl scripts to be patched - not a trivial exercise.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Oy...not the answer I hoped for, but thanks. I think that there are duplicate product references - and the latter solution sounds interesting - maybe a little too much work for a this client request.

      This came about because right now, if the customer clicks the product name in the cart, they are taken back to the TOP of the catalog. This is horribly confusing esp. if the customer has selected a product towards the bottom. Would I have the same issue with linking to the product anchor in the catalog?

      -----------
      Correction to above comment...there are no duplicate product reference numbers. The problem is that the product reference number is not contained within the popup page name. Most of the product reference numbers contain special characters.

      An example:
      the product reference number: 1/4 FF-S 1.45 IN points to info_1_4_FF_S_1_45_IN.html for the Extended Info popup.
      Last edited by Kid Amaro; 06-Sep-2006, 02:17 AM. Reason: Incorrect information

      Comment


        #4
        Clicking the product name in the cart should take them to the product. The link is to the page plus the unique product anchor.

        Make sure you've not deleted NETQUOTEVAR:PRODUCTANCHOR from your Product Templates.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Still having a problem with linking to the product from the cart

          Not sure if this needs to be a new post - but it comes on the heels of this issue (see #3 above).

          When in the cart, I click the product reference and instead of taking me to the product, it just loads to the top of the page.

          Here is an example:

          In the shopping cart, the target link is this:
          Code:
          http://www.raprec.com/cgi-bin/ss000001.pl?PRODREF=2203P-8&NOLOGIN=1
          When I click on it, the link ends up being:
          Code:
          http://www.raprec.com/cgi-bin/bb000001.pl?PRODUCTPAGE=Pipe_Fittings%2ehtml%23a2203P_2d8&PRODUCTREF=2203P-8#a2203P_2d8&ACTINIC_REFERRER=http%3a%2f%2fwww%2eraprec%2ecom%2fcgi%2dbin%2fbb000001%2epl%3fPRODUCTPAGE%3dPipe_Fittings%252ehtml%2523a2203P_2d8%26PRODUCTREF%3d2203P%2d8
          The anchor within the page it directs me to (the one I'm trying to jump to) is:
          <a name="a2203P_2d8">


          I've attached my Act_ShoppingCartXML & Act_ProductLine html files.

          Any ideas?? Thanks in advance...

          Kristin Amaro.
          Attached Files
          Last edited by Kid Amaro; 06-Sep-2006, 02:34 PM. Reason: enclosing the URL's in [code][/code].

          Comment


            #6
            You have two NETQUOTEVAR:PRODUCTANCHOR within that product template, and their closing </a> tags are in different table cells from the opener.

            Try
            Code:
            <!-- ProductLine HTML begin -->
            <!-- Insert HTML for the top of the individual product -->
            NETQUOTEVAR:INCLUDE Act_ProductSeparator.html
            NETQUOTEVAR:ENDSEPARATOR
            NETQUOTEVAR:PRODUCTFORMBEGIN
              <tr>
            
            	<td rowspan="1" valign="TOP" align="CENTER">NETQUOTEVAR:TEMPLATEBEGINXML <a name="NETQUOTEVAR:PRODUCTANCHOR">NETQUOTEVAR:EXTINFOBUTTONNETQUOTEVAR:PRODUCTIMAGE</a></td> 
                <td valign="MIDDLE" align="LEFT">
            	
            
            	<span class="actregular"><b>NETQUOTEVAR:EXTINFOBUTTONNETQUOTEVAR:PRODUCTNAME</b></span></td>
            
            
                <td valign="MIDDLE" align="LEFT">  
                  <span class="actxsmall"><b>NETQUOTEVAR:EXTINFOBUTTONNETQUOTEVAR:PRODUCTREF</b></span> </td>
                <td valign-"MIDDLE" align="LEFT">
                  <span class="actxsmall"><b>NETQUOTEVAR:EXTINFOBUTTONNETQUOTEVAR:PRODUCTPRICE</a></b> </td>
            
                <td align="LEFT" valign="MIDDLE"><span class="actxsmall">
            			NETQUOTEVAR:CARTERRORXMLNETQUOTEVAR:PRODUCTQUANTITY </span><!-- <br> -->
                <td align="LEFT" valign="MIDDLE"><span class="actxsmall">
            		<Actinic:ACTIONS>NETQUOTEVAR:ADDTOCARTBUTTON</Actinic:ACTIONS>
            		    </span>
            	</td>
            	NETQUOTEVAR:TEMPLATEENDXML
                   </td>
            
            NETQUOTEVAR:PRODUCTFORMEND
            NETQUOTEVAR:NEXT
            	</tr>
            <!-- Insert HTML for the bottom of the individual product -->
            <!-- ProductLine HTML end -->
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #7
              That does not seem to help...it's still staying at the top of the page.

              Here is the URL that it ends up jumping to:

              Code:
              http://www.raprec.com/cgi-bin/bb000001.pl?PRODUCTPAGE=Pipe_Fittings%2ehtml%23a2203P_2d8&PRODUCTREF=2203P-8#a2203P_2d8&ACTINIC_REFERRER=http%3a%2f%2fwww%2eraprec%2ecom%2fcgi%2dbin%2fcm000001%2epl
              I notice that if I remove the ACTINIC_REFERRER part (
              Code:
              &ACTINIC_REFERRER=http%3a%2f%2fwww%2eraprec%2ecom%2fcgi%2dbin%2fcm000001%2epl
              )

              and just leave:
              Code:
              http://www.raprec.com/cgi-bin/bb000001.pl?PRODUCTPAGE=Pipe_Fittings%2ehtml%23a2203P_2d8&PRODUCTREF=2203P-8#a2203P_2d8
              it finds the anchor and brings up the product.

              I don't know if this gives any clues or not - up till now, I haven't paid much attention to the Actinic_referrer portion of the URLs.

              Thank you,
              Kristin Amaro.

              ps. I just noticed on my previous post that the URL's are not showing up the way I pasted. I realize that I did not enclose them properly. I will edit the post and redo those URLS in case that helps. thanks.

              Comment


                #8
                I think you'll need to post an URL and login details so we can see what's happening first hand.
                Norman - www.drillpine.biz
                Edinburgh, U K / Bitez, Turkey

                Comment


                  #9
                  Here's the URL for the login:

                  http://www.raprec.com/support.html

                  userid: testuser
                  pass: testuser

                  thanks for looking!
                  k

                  Comment


                    #10
                    I think I see the problem. All the items on each product listing are clickable to open the popup page. They all use <a href="javascrupt:ShowPopUp(...)">CONTENT</a>. This means that there's no plain text for you to put the named anchor that Actinic uses around. You're ending up with nested anchor tags which is probably confusing the browser.

                    Try replacing

                    <a name="NETQUOTEVAR:PRODUCTANCHOR">NETQUOTEVAR:EXTINFOBUTTONNETQUOTEVAR:PRODUCTIMAGE</a>

                    with

                    <a name="NETQUOTEVAR:PRODUCTANCHOR">&nbsp;</a>NETQUOTEVAR:EXTINFOBUTTONNETQUOTEVAR:PRODUCTIMAGE
                    Norman - www.drillpine.biz
                    Edinburgh, U K / Bitez, Turkey

                    Comment


                      #11
                      Norman - I gave this a try and it's still not working. I'm thinking that the anchor is not the problem because when I remove the Actinic Referrer portion of the URL (once I've clicked it from the cart) and click enter - it jumps right to my product. So, it's finding the anchor - could it be a problem with the Actinic Referrer part? Here's how it's appearing in the URL:

                      Code:
                      &ACTINIC_REFERRER=http%3a%2f%2fwww%2eraprec%2ecom%2fcgi%2dbin%2fca000001%2epl%3fACTION%3dSHOWCART
                      Maybe I need to read up on what exactly the referrer is and how it is generated because up till now I have not bothered with understanding it.

                      ??

                      Really appreciate your help!!
                      Thanks,
                      Kristin Amaro.

                      Comment


                        #12
                        I'm afraid I don't know where else to look. Since this doesn't seem to be affecting other Business users, perhaps it's related to changes that you've made elsewhere. Do you know if you've customised anything?
                        Norman - www.drillpine.biz
                        Edinburgh, U K / Bitez, Turkey

                        Comment


                          #13
                          Well, yeah - definately customizing....no Perl hacks though - just in the templates.

                          I will keep looking around - if you think of anything would you let me know?? Thanks so much for all the time.

                          Also - any chance you could give me a readers digest version of what the Actinic_Referrer is all about? I did read something in the knowledge base (or it could have been the user guide) that was a tad confusing.

                          Thanks again,
                          k

                          Comment

                          Working...
                          X