skip to Main Content

Shopify – Return 301 status code while redirecting URLs Via JavaScript code

I want to redirect product recommendation string query URLs to non-string query URLs in Shopify and also want that they should return 301 status code while redirecting. For example from this URL: https://ese.net/products/some-product?pr_prod_strat=collection_fallback&pr_rec_id=503f88472&pr_rec_pid=8474186613075&pr_ref_pid=8461060833619&pr_seq=uniform To this: https://ese.net/products/some-product I've tried to add…

VIEW QUESTION

Unexpected identifier assert Shopify Remix app

I have installed Node.js Shopify CLI and using Homebrew. When run shopify app dev it provides a local url http://localhost:56467/ . This url giving error below. Unexpected identifier 'assert' at compileSourceTextModule (node:internal/modules/esm/utils:337:16) at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:166:18) at callTranslator (node:internal/modules/esm/loader:416:14) at ModuleLoader.moduleProvider…

VIEW QUESTION

Conditional logic in shopify

I am outputing a value based on collection title in shopify {% for collection in product.collections %} {% if collection.title contains "China" %} This is china {% endif %} {% endfor %} {% for collection in product.collections %} {% if…

VIEW QUESTION
Back To Top
Search