4 Replies Latest reply on Jun 7, 2012 9:07 AM by markf12

    Link from static html page to iframe in different page

    markf12 Level 1

      I'm not sure if this is possible, but if it is I hope someone can advise me how to do it or point me to some instruction.

       

      I'm working on a site that sells wine. there are several pages that describe the various wines.

      http://www.gauchezco.com/wines.html

       

      There is also an online store page that is iframed into a page and the iframed stuff is managed by a third party.

      http://www.gauchezco.com/shop.html

       

      You will see that each wine can be purchased as 3, 6 or 12 pack. If you click on for instance 2008 Gauchezco 'Oro' Malbec 3-Pack another page opens up and it allows you to buy the 3-pack, I want to put a "buy now" button on the http://www.gauchezco.com/wines.html page that takes the user directly to the page that let's them buy the 3-pack. I'd have a button for the 6 and 12 packs that directed the user to those respective purchase pages.

       

      I can't figure out how to get that set up. I either just end up at the overall shopping page:

      http://www.gauchezco.com/shop.html

       

      Or I end up with a version of the purchase page that doesn't have the website header, nav bar etc. (The link takes the user off of the site, which is not good.)

      https://gauchezco.invino.com/product/GOMMA083PK.html

       

      Is there any way to have a buy now button on the wine page that takes a user to the purchase page as I described above? Hope this makes sense.

       

      Thanks in advance for any help.

        • 1. Re: Link from static html page to iframe in different page
          Ben M Adobe Community Professional

          Possible, just not with HTML.  You would need server-side scripting like PHP to pass variables from page to page to do this.  Do you have that capability as an option?

          • 2. Re: Link from static html page to iframe in different page
            markf12 Level 1

            Thanks for your reply. Unfortunately, I am not versed in PHP. I know what it is and have dealt with it in wordpress and some online contact forms but that's about it. So it sounds like  what you are describing is likely beyond my capabilities. Might try to investigate having a third part php person do this for us.

             

            Thanks again!

            • 3. Re: Link from static html page to iframe in different page
              Ben M Adobe Community Professional

              Even with the knowledge I wouldn't recommend it.  Easiest way is to use GET variables meaning

               

              address.com?url=xyz

               

              Where xyz is the address and on the following page the frame loads $_GET['xyz'].  But you would have to parse the data to prevent malicious content and just not worth it.  Unfortunately that's an issue with selling through a 3rd party site.  Have you asked them if you can style the site on their end so you can add in your own header/footer/etc?

              • 4. Re: Link from static html page to iframe in different page
                markf12 Level 1

                Thanks again. This is definitely above my pay grade and level of expertise. we'll probably just live without the buttons I was wanting to add. thanks again.

                 

                Actually I can link the button to the overall shopping page and it has our header and footer and etc. I just can't link to the next step in the shopping system where the individual 3, 6 or 12 packs are for each wine.

                 

                With some further testing I realized that even if I use:

                https://gauchezco.invino.com/product/GOMMA083PK.html

                 

                (the url for the Oro 3-pack purchase) I still end up on the overall shopping page, which does have our header and footer. Just the same as if a user clicks the "shop online" link in the main menu bar. So it seems I could get that functionality but it doesn't seem to add much. I was hoping to enable the customer to go directly from the wine description page to the buy 3, 6 or 12 pages.

                 

                Gauchezo apparently has to deal with this third party iframe sales operation due to all of the regulations and etc surrounding selling wine. There are limited options for this and it sounds impossible for them to do it on their own.

                 

                Thanks for your very helpful advice!