Announcement

Collapse
No announcement yet.

Straight to basket?

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

    Straight to basket?

    Is it possible to set the add to cart button to take the user directly to the basket page like we used to do in V5, etc.?
    William Gilligan - Orange Marmalade, Inc.
    www.OrangeMarmaladeinc.com

    #2
    Re: Straight to basket?

    Yes, nothing has changed in that regard. Just edit the Template code action.
    Thanks,

    Rick Wilson
    CEO
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      Re: Straight to basket?

      Unfortunately with a ready theme (Suviant) - thats actually not correct. (Thought I had included that aspect, but missed it)

      In order to set this up, I had to remove the id tag "id="js-add-to-cart".
      This tag appears to tell the click action to show the modal and not go to the basket.
      Removing it now sends the customer to the basket.

      Bill
      William Gilligan - Orange Marmalade, Inc.
      www.OrangeMarmaladeinc.com

      Comment


        #4
        Re: Straight to basket?

        Hey Bill,
        Best to consider removing the event listener function as well so it doesn't create a memory leak and possible propagation problems. Probably nothing major but I know you like the technical stuff.
        http://www.alphabetsigns.com/

        Comment


          #5
          Re: Straight to basket?

          Originally posted by alphabet View Post
          Hey Bill,
          Best to consider removing the event listener function as well so it doesn't create a memory leak and possible propagation problems. Probably nothing major but I know you like the technical stuff.
          If I could find it, I would...

          Although I do _love_ the new Merchant 9 and the Ready Themes (I find they work well across platforms and are highly customizable) - there are still hidden things I just can't find..

          Bill
          William Gilligan - Orange Marmalade, Inc.
          www.OrangeMarmaladeinc.com

          Comment


            #6
            Re: Straight to basket?

            If you use Chrome dev tools you can find it from the console log.

            First turn on dev tools > console > All , and reload the page. There should be a js error and line number.

            Or add back the id=js-add-to-cart then type in the console:

            $('#js-add-to-cart')

            getEventListeners($('#js-add-to-cart'))

            or

            MonitorEvents($('#js-add-to-cart')

            then click add to cart button and the console will monitor the event and return the file name and line number.

            Or another good place to start would be the dev tools element tab, navigate to the button element then check the events tab.

            Of course knowing where the event handler function is and modifying it may be another story :)
            http://www.alphabetsigns.com/

            Comment

            Working...
            X