Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Help with adding a popup

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-04-2018, 02:17 PM
 
mikeb0208@gmail.com mikeb0208@gmail.com is offline
 

Member
  
Join Date: Nov 2016
Posts: 18
 

Default 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
__________________
4.7
stock
Reply With Quote
  #2  
Old 11-04-2018, 03:56 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default 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.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote

The following user thanks cherie for this useful post:
mikeb0208@gmail.com (11-04-2018)
  #3  
Old 11-04-2018, 04:09 PM
 
mikeb0208@gmail.com mikeb0208@gmail.com is offline
 

Member
  
Join Date: Nov 2016
Posts: 18
 

Default 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.
__________________
4.7
stock
Reply With Quote
  #4  
Old 11-04-2018, 04:31 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default 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.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #5  
Old 11-04-2018, 04:53 PM
 
mikeb0208@gmail.com mikeb0208@gmail.com is offline
 

Member
  
Join Date: Nov 2016
Posts: 18
 

Default 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 !
__________________
4.7
stock
Reply With Quote
  #6  
Old 11-04-2018, 11:43 PM
 
ITVV ITVV is online now
 

X-Wizard
  
Join Date: Nov 2006
Location: UK
Posts: 1,164
 

Default 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
__________________
X-Cart Pro 4.7.12 Active and working great with reBOOT-reDUX
X-Cart Pro 4.6.6 Retired after 6 years of first class service
X-Cart Pro 4.1.7 Retired after 9 years of first class service

Apache: 2.4.25
PHP: 7.4.5
MariaDB: 10.1.44
Arch: x86_64
Reply With Quote

The following user thanks ITVV for this useful post:
elmirage001 (11-05-2018)
  #7  
Old 11-05-2018, 06:52 AM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default 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.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:17 AM.

   

 
X-Cart forums © 2001-2020