Announcement

Collapse
No announcement yet.

Quick view for Shadows Cat Page

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

    Quick view for Shadows Cat Page

    I'm close but need a bit of help please. I've got it workin here but the modal does not close when I add to basket. I've tried several technics but no luck. Link is at https://www.fastees.com/shirts/westv...tetshirts.html .

    I'm using a copy of prod without global stuff. PRODPOP page.



    #2
    Is your goal to take the customer to the basket page after adding to the cart through the quick view?
    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment


      #3
      I think the cart will work fine but being able to land back on the cat page might be better for some of my clients. I'd sure like to have both. Thank you so much. I will share my notes on the how to on this as well.

      Comment


        #4
        To send the customer to the basket page, remove the data-hook from the add to cart button. For a return to the category page, you would probably need to modify the AJAX function to close the modal on success instead of showing the mini-basket; alternately you could refresh the page on success as well.
        Matt Zimmermann

        Miva Web Developer
        Alchemy Web Development
        https://www.alchemywebdev.com
        Site Development - Maintenance - Consultation

        Miva Certified Developer
        Miva Professional Developer

        https://www.dev4web.net | Twitter

        Comment


          #5
          The add to cart does not have a data-hook. I tried removing data-action="&mvte:urls:BASK:auto;" data-value="Add To Cart" and that did not work.

          <input class="c-button c-button--full c-button--huge u-bg-gray-40 u-color-white u-text-bold u-font-small u-text-uppercase" data-action="&mvte:urls:BASK:auto;" data-value="Add To Cart" type="submit" value="Add To Cart">

          Comment


            #6
            You might try passing a global variable with the form which you can test for on the basket page. If present, set a JavaScript variable which would trigger the referring window to close the modal.
            Matt Zimmermann

            Miva Web Developer
            Alchemy Web Development
            https://www.alchemywebdev.com
            Site Development - Maintenance - Consultation

            Miva Certified Developer
            Miva Professional Developer

            https://www.dev4web.net | Twitter

            Comment


              #7
              Mostly german to me. Real life code or examples would help. Thanks for trying. I'll figure this out.

              K

              Comment

              Working...
              X