Announcement

Collapse
No announcement yet.

Add To Wish List link not working

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

    Add To Wish List link not working

    I am using the Suivant Ready Theme
    No matter where I place this link on the form on the PROD Page (advanced display)

    <span data-mmnodisable="true"><span onclick="document.forms.add.action = '&mvtj:urls:WISH:secure;'; document.forms.add.elements.Action.value = 'ATWL';"><mvt:item name="buttons" param="AddToWishList" /></span></span>


    when clicked on a product page on the web site, it takes the customer to the Basket page instead of the Add To Wish List page.

    So, where should this link go or should it be different for the Suivant ReadyTheme?

    Thanks.

    #2
    Re: Add To Wish List link not working

    To correct this, you will need to add the following attribute to the form:
    Code:
    name="add"
    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
      Re: Add To Wish List link not working

      Hi Matt,

      Thank you. That did the trick.

      One issue:

      If I use this link:

      <form name="add" method="post" action="&mvte:global:sessionurl;Screen=BASK" id="js-purchase-product" class="inline-labeling">

      both links work perfectly. Add To Wish or Add To Basket

      However,if I use this link:

      <form name="add" method="post" action="&mvte:urls:BASK:auto;" id="js-purchase-product" class="inline-labeling">

      Then the Add To Wish Link works but the Add To Basket does not work.

      Comment


        #4
        Re: Add To Wish List link not working

        You're welcome.

        We will be releasing an update to the ReadyThemes very soon which addresses the updates within the 9.4 upgrade. This will include JavaScript changes to address this specific issue too.
        Last edited by Matt Zimmermann; 08-20-15, 11:37 AM.
        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
          Re: Add To Wish List link not working

          Originally posted by Matt Zimmermann View Post
          You're welcome.

          We will be releasing an update to the ReadyThemes very soon which addresses the updates within the 9.4 upgrade. This will include JavaScript changes to address this specific issue too.
          So I need to use the updated javascript file that comes with the 9.4 ReadyTheme? Or do more changes need to be made? I was hoping all I was going to have copy the template changes from a dev store with a fresh install of the ReadyTheme.

          Obviously, I'm missing something here...
          Leslie Kirk
          Miva Certified Developer
          Miva Merchant Specialist since 1997
          Previously of Webs Your Way
          (aka Leslie Nord leslienord)

          Email me: [email protected]
          www.lesliekirk.com

          Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

          Comment


            #6
            Re: Add To Wish List link not working

            Hi Leslie,

            For the wish list function, the code here, or in the template changes, will suffice with no external JavaScript changes needed. There are changes in the scripts.js file however to accommodate the new URI functionality, so those changes would be needed if you update the action on the form.
            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
              Re: Add To Wish List link not working

              One other issue with Wish List:

              When on a product page and the Add To Wish List is clicked, it does Add the product and then takes you to the wish list you choose.
              However, at that point while on the Wish List page you already chose, if you click on any product in the Wish List to Add To The Basket, it takes you back to a page where you have to choose a list (which you have already done). At that point, after choosing a Wish List (again) and then going back to the page you were already on, the Add To Basket click works.

              BTW When you first get tho the Wish List page, the Add All To Basket does work.

              Comment


                #8
                Re: Add To Wish List link not working

                @Strat1979 - I am unable to duplicate this on the demo store [http://suivant-theme.mivamerchantdev.com/]. Can you run a test there and see if you get the same results as you are seeing on your store?
                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


                  #9
                  Re: Add To Wish List link not working

                  Hi Matt,

                  Here is the issue.

                  In the original Wish List Items Layout, the form to add an item to the basket is:

                  <form method="post" action="&mvte:urls:BASK:secure;">
                  <input type="hidden" name="Action" value="AFWL" />
                  <input type="hidden" name="Wish_ID" value="&mvte:wishlistitem:id;" />
                  <input type="hidden" name="Quantity" value="&mvte:wishlistitem:quantity;" />
                  <mvt:item name="buttons" param="AddToBasketL" />
                  </form>

                  I want to keep my customer on the same page after they add an item to the basket, so I changed the form to:

                  <form method="post" action="&mvte:urls:BASK:_self:secure;">
                  <input type="hidden" name="Action" value="AFWL" />
                  <input type="hidden" name="Wish_ID" value="&mvte:wishlistitem:id;" />
                  <input type="hidden" name="Quantity" value="&mvte:wishlistitem:quantity;" />
                  <mvt:item name="buttons" param="AddToBasketL" />
                  </form>



                  All is good except when my customer first tries to add a product to the wish list from the product page.


                  1) The product is added to the Wish List and is shown on the Wish List page. So far so good.
                  2) However, if the customer then tries to add an item in the Wish List to the basket, although the product is added to the basket, the customer is taken to the Wish.html page to choose a wish list. Since the customer was already on the wish list, this step is unnecessary and does not happen when the url in the form is "&mvte:urls:BASK:secure;". So, it seems a value is not added when the "&mvte:urls:BASK:_self:secure;" link used and Miva is looking for that value which it gets from the Wish.html page. Once the customer chooses a link from that page (Wish.html) and returns back to the Wish List, everything works fine.
                  Last edited by Strat1979; 09-01-15, 08:34 PM.

                  Comment


                    #10
                    Re: Add To Wish List link not working

                    @Strat1979 - I'm not sure that form action will do what you intend. Try changing your form action to "&mvte:urls:_self:secure;".
                    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


                      #11
                      Re: Add To Wish List link not working

                      Originally posted by Matt Zimmermann View Post
                      @Strat1979 - I'm not sure that form action will do what you intend. Try changing your form action to "&mvte:urls:_self:secure;".

                      Thanks Matt. Unfortunately, that link causes it happen every time. The other link only once.

                      Comment

                      Working...
                      X