It says to add this to the head section but I don't know where it is. This is the script. DM_redirect("m.stuffwholesale.com"); I looked at the phtml which I found in the forum but I just am unsure can someone let me know what to do? I also have to do the same for my other store (m.providencesilverco.com). I apologize for putting this in the wrong spot earlier. Thanks Ron
1 Answer
You may have 2 approach to do this:
Add via XML. You may add in cms page design section, or add it your theme xml file. js/test.js
Use system configuration to add it. Please go to System -> Configuration
On the left hand sidebar go to: General -> Design -> HTML HEAD
Paste your code inside'Miscellaneous Scripts' it will appear in the head.
This section is also useful if you multi-store.
-
-
I think it is correct. Can you F12 to see it is correctly loaded without error ? e.g. https problem– leoCommented Apr 11, 2018 at 15:23
-
HI I check the script and the added script is not in the head section?– Ron GinCommented Apr 11, 2018 at 17:45
-
Did you add in correct scope? e.g. store view level has value to override it. Or you are using custom theme which will not output this config value in the template?– leoCommented Apr 13, 2018 at 3:42
-
I think I understand but here is what I did I first changed the default configuration scope to my domain: then in miscellaneous script I uncheck the default box and pasted the script into the box. Then clicked save. Was this correct?– Ron GinCommented Apr 14, 2018 at 21:55