Okay
  Public Ticket #3379453
Buttons have no links
Closed

Comments

  • fudo jahic started the conversation

    when I click on my cart in the navigation and my sidebars pulls out. How come the buttons on the bottom "view cart" and "checkout" don't have any links to it. Can we please add it somewhere and how? 

    Attached files:  Screenshot 2023-05-26 at 8.40.15 AM.jpg
      Screenshot 2023-05-26 at 8.45.41 AM.jpg

  •  933
    Neuron replied

    Hi,

    Can you please provide me with your wp-admin, I will have a quick look to see what's going on.

    Feel free to ask for anything you need.

    Kind Regards


  • fudo jahic replied

    url: https://prints.fudostudio.com/wp-admin

    username: fudophotoprints

    password: Bratunac1992!

  •  933
    Neuron replied

    Hi,

    I am very sorry for the late reply, we were not working on the weekend.

    I've just installed a plugin called "Insert Headers and Footers" and added the following script to it to fix the issue.

    <script>
      // Get the cart and checkout buttons
      const cartButton = document.querySelector('.elementor-button--view-cart');
      const checkoutButton = document.querySelector('.elementor-button--view-checkout');
      // Assign links to the buttons
      const cartLink = 'https://prints.fudostudio.com/cart/';
      const checkoutLink = 'https://prints.fudostudio.com/checkout/';
      // Add event listeners to the buttons
      cartButton.addEventListener('click', () => {
        window.location.href = cartLink;
      });
      checkoutButton.addEventListener('click', () => {
        window.location.href = checkoutLink;
      });
    </script>
    

    Feel free to ask for anything you need.

    Kind Regards