X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Help with adding a popup (https://forum.x-cart.com/showthread.php?t=76616)

mikeb0208@gmail.com 11-04-2018 02:17 PM

Help with adding a popup
 
Hi all ! I am not much of a web novice even but I am being asked by my spouse to add a mail chimp thing to the home page to offer people to sign up for something. #1 I can deal with html to a point but i am php and tpl illiterate and not afraid to say it. I desperately need to know how to add this below the gift certificate area on the main page on the light responsive. The website is https://www.theholebeadshoppe.com



I am using xcart 4.7.6 and this is the code i need to add.


<script type="text/javascript" src="//downloads.mailchimp.com/js/signup-forms/popup/unique-methods/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script><script type="text/javascript">window.dojoRequire(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us14.list-manage.com","uuid":"ed906e5402740758e41929914","lid":"20745c 9c20","uniqueMethods":true}) })</script>


Thanks so much for any and all help !

Mike

cherie 11-04-2018 03:56 PM

Re: Help with adding a popup
 
You should be able to plop that at the bottom of light_responsive/customer/main/welcome.tpl

Also consider upgrading to 4.7.10. Lots of MailChimp improvements have been made among other important updates.

mikeb0208@gmail.com 11-04-2018 04:09 PM

Re: Help with adding a popup
 
Thanks so much Cherie I will go try that right now. As for upgrading the cart i have never had the ability (skill wise) to do that. Thanks tho I will see if i can come up with the cash to upgrade eventually.

cherie 11-04-2018 04:31 PM

Re: Help with adding a popup
 
Maybe this article will help you with the upgrade:

https://help.x-cart.com/index.php?title=X-Cart:Upgrading

There are also some good forum threads that should also point you in the right direction.

mikeb0208@gmail.com 11-04-2018 04:53 PM

Re: Help with adding a popup
 
Unfortunately when i pasted the above before the bottom of the file right before the </div> of the main body not the last sets ... the site is non responsive. it loads but displays nothing at all on the screen. Any other place that might have a "head" or is purely html? I am php lost and its driving me nuts. Thanks again !

ITVV 11-04-2018 11:43 PM

Re: Help with adding a popup
 
Hi,

As @cherie has said: -

Quote:

You should be able to plop that at the bottom of light_responsive/customer/main/welcome.tpl
I think your code should look like this: -

Code:

{literal}
<script type="text/javascript" src="//downloads.mailchimp.com/js/signup-forms/popup/unique-methods/embed.js" data-dojo-config="usePlainJson: true, isDebug: false">
</script>
<script type="text/javascript">window.dojoRequire(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us14.list-manage.com","uuid":"ed906e5402740758e41929914","lid":"20745c 9c20","uniqueMethods":true}) })</script>
{/literal}

Please note the opening {literal} and closing {/literal} tags.

You should also Clear templates/X-Cart cache

Hope that helps?

Regards

ITVV

cherie 11-05-2018 06:52 AM

Re: Help with adding a popup
 
Yep, this code requires literal tags around it.

Anytime you get a white screen check the log messages in var/log for the cause.


All times are GMT -8. The time now is 01:36 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.