Relative Content

Tag Archive for javascriptshopify

Proper way to host a landing page

With landing pages, the general formula for a URL is [domain name]/[landing page name]. If I had the HTML, CSS and JavaScript files for a landing page, how would I host it with a Shopify store domain?

How to open 1 submenu and close others

My parent dropdowns are working perfectly. Like 1 open and when i click on 2nd the first one closes. But this is not working for submenus. All Submenu can be opened at once. But 1 want 1 sub menu at a time to be opened

In Shopify, how do I refresh the cart after applying discount code?

I could use some help. We’re using Dawn theme. My goal is to auto-apply a discount code to cart to cart for only certain customers which I will eventually control with a tag or metafield. I can successfully auto-apply the discount code, but I can’t figure out how to refresh the cart contents showing the product discount without reloading the whole page. Here’s the code: