Announcement

Collapse
No announcement yet.

Can I display choices and "Add to Cart"button in a pop-up screen?

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

    Can I display choices and "Add to Cart"button in a pop-up screen?

    hi - does anyone know if it is possbile within Actinic business v5 to popup a new browser screen that contains the choices for a product and the "Add to cart" button? Then on clicking the "Add to cart" button, it closes the popup screen and returns to the confirm/checkout screen in the original browser.

    TIA
    Regards
    David

    #2
    Hi David

    I'm afraid this isn't possible and I don't know of any work around that would make it work as you describe. The path I would go down would be to create a sub-section with a single product and create the sub-section link to open a new window (ie.
    <A HREF="NETQUOTEVAR:SECTIONLINK" TARGET="BLANK"><FONT FACE=ARIAL SIZE=+0><B>NETQUOTEVAR:SECTIONNAME</B></FONT></A>
    in the Act_SectionLine.html template). This would then present the main product page in a new window. However, it wouldn't automatically close the window once added to cart.

    Ben
    Ben Popplestone
    Ecommerce website software

    Comment


      #3
      Isn't possible. Now there's a challenge.

      Attached are patches that get you 95% of the way. The window pops up and contains all the necessary form info (i've added the product name and price as I presume customers would like to be sure what they're buying.

      When you add to cart that works but the returned page containing the cart is loaded into the popup page.

      My knowledge of JavaScript regarding opening and closing windows isn't up to getting the results of the form submission from a popup window sent back to the creator window. Lets hope someone else can help there.

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

      Comment


        #4
        OK. It's 99% there now.

        Attached is a readme that does it all. If you're using Internet Explorer that is.

        The code looks right but I can't get it to work properly with Netscape. Lets hope there's someone out there who is good at Netscape imcompatibilities and fancies a challenge.

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

        Comment


          #5
          Hi Norman - always the man to come up with a solution!!

          What is the problem running this under Netscape?
          Regards
          David

          Comment


            #6
            Under Netscape I saw 2 problems. I couldn't get it to close the window AND submit the order. Also If I leave the window open think the order is made but navigation fails when leaving the cart display page.

            Attached is a version that gets around this by displaying the info in-line ( as usual ) on the product page if netscape and using a popup for Microsoft browsers.

            I'd consider this work-in-progress as the way it requires an alphanumeric product reference is a slight pain.

            If you know any JavaScript gurus (or any are listening) I think they'll be needed as I've done my best here.

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

            Comment

            Working...
            X