Generate pop out link in cart

JuliannaMarie
New Member
11 0 0

The shipping link in my cart page currently links to the shipping policy as a brand new page.

Screen Shot 2021-05-14 at 1.48.05 PM.png

 

 

 

I'd like that link to populate as a pop out as the policy links do in the checkout page >>>>>Screen Shot 2021-05-14 at 1.48.24 PM.png

The link in the cart is currently populated in the admin languages:

"Taxes and <a href="{{ link }}">shipping</a> calculated at checkout. <p> <br> We offer Free Standard Shipping on all orders over $50 within the United States.* <p> If you'd like to expedite shipping you can do so at checkout."

 

Is there a code to command a pop out, as is does in the check out policy links?

 

0 Likes
LitExtension
Shopify Partner
926 109 161

Hi @JuliannaMarie

You can use this markup to create new modal when click "shipping" link on the cart page for your site.

<body class="template-cart">

  <div class="cart__shipping">

    <a href="#">shipping</a>

  </div>

  <div class="modal">

    <div class="modal__button">X</div>

    <div class="modal__content">

      <h2>Shipping info</h1>

      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Laboriosam officia perspiciatis esse. Ut assumenda, aspernatur sunt repellendus blanditiis soluta recusandae, cum, quod saepe voluptas doloribus est, sint cumque. Molestias, quis!</p>

    </div>

  </div>

</body>

I wrote an example for you refer to this link: https://jsfiddle.net/EvanPham/298q7wnc/2/

Screenshot to refer: https://prnt.sc/12yifno

Hope this helps.

LitExtension - Shopping Cart Migration Expert
If our answer is helpful then please accept as solution!
Are you looking for a solution to migrate to Shopify? Contact us for further assistance.
Try our FREE DEMO now!
0 Likes