Announcement

Collapse
No announcement yet.

Shadows "Checkout: Basket Empty" page with broken link

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

    Shadows "Checkout: Basket Empty" page with broken link

    When a customer removes all products from the shopping cart a new page appears which is the "Checkout: Basket Empty" page. This has a highlighted link to "Start Shopping" which on my site goes nowhere. Can someone help with fixing the code? Here is what is used now:
    <div class="x-messages x-messages--info">
    <strong>Your shopping cart is currently empty.</strong><br>
    <a class="c-button c-button--hollow" href="&mvte:urls:SFNT:auto;" onclick="continueShopping(this);">Start Shopping</a>
    </div>
    Attached Files
    http://www.invinciblemusic.com

    #2
    You can edit the page template called BSKE and put whatever link you want there in place of href="&mvte:urls:SFNT:auto;".
    Todd Gibson
    Oliver + S | Sewing Patterns for Kids and the Whole Family

    Comment


      #3
      Oliverands thanks for your suggestion. For some reason with this Code:
      <div class="x-messages x-messages--info">
      <strong>Your shopping cart is currently empty.</strong><br>
      <a class="c-button c-button--hollow" href="https://www.invinciblemusic.com" onclick="continueShopping(this);">Start Shopping</a>
      </div>
      I get this error message when I click on the "Start Shopping" link:
      Forbidden

      You don't have permission to access /mm5/ on this server.
      Apache Server at www.invinciblemusic.com Port 443


      http://www.invinciblemusic.com

      Comment


        #4
        Try deleting onclick="continueShopping(this);".
        Todd Gibson
        Oliver + S | Sewing Patterns for Kids and the Whole Family

        Comment


          #5
          Do you have the script tag at the top of the basket contents section that contains this code?
          Code:
          function continueShopping(link) {
          if (sessionStorage.getItem('continue_url')) {
          link.href = sessionStorage.getItem('continue_url');
          }
          }
          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


            #6
            For some reason I can't paste MIVA code into the forums. I am getting this error message. Until this problem is fixed I cannot post code.


            Screen Shot 2021-12-27 at 1.16.19 PM.png





            http://www.invinciblemusic.com

            Comment


              #7
              Try posting it without including the opening and closing script tags.
              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


                #8
                Here is the code as an image (cutting and pasting the text is just not working). This is still giving the Apache Server error.
                Screen Shot 2021-12-27 at 1.25.40 PM.png

                http://www.invinciblemusic.com

                Comment


                  #9
                  I would recommend contacting support so they can take a look at the code on the site. When I add a product to the cart, proceed to basket, and then remove it, I can see that the wrong URL is being output for the continue shopping link. However, if I check the console using "sessionStorage.getItem('continue_url')", the correct URL is stored there. Also, without the "onclick" event, the link will not be updated with the correct URL.
                  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


                    #10
                    for prosperity:

                    the issue is / was the confusion that "Your basket is empty" is on the BASK page IF you removed a product from the BASK page...BSKE is relevent when you get try to get to the bask page while its empty.
                    Bruce Golub
                    Phosphor Media - "Your Success is our Business"

                    Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
                    phosphormedia.com

                    Comment

                    Working...
                    X