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

Adding Login Popup to Descriptions

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 08-02-2011, 12:21 PM
  mizNRG's Avatar 
mizNRG mizNRG is offline
 

Senior Member
  
Join Date: Jun 2010
Posts: 157
 

Default Re: Adding Login Popup to Descriptions

I applied a patch to correct the Bill To/Ship To issue - https://bugtracker.qtmsoft.com/view.php?id=38558.

Other than that, no.
__________________
X-Cart 4.4.4 Gold
Reply With Quote
  #12  
Old 08-21-2011, 04:36 AM
 
JoeS JoeS is offline
 

Senior Member
  
Join Date: Dec 2008
Posts: 124
 

Default Re: Adding Login Popup to Descriptions

Quote:
Originally Posted by vasilis
You could insert a Javascript function that opens a popup window, something like:
Code:
var newwindow; function popupwin(url) { newwindow=window.open(url,'name','height=400,width=200'); if (window.focus) {newwindow.focus()} }
where 'url' is your image file url and then insert the anchor code anywhere in your page:

Code:
<a href="javascript: popupwin('your_domain/path_to_image/image_name');">Pop it</a>

Can you please advise where to insert the code, do I insert it into home.tpl? I need a popup box on the home page to make visitors aware of a new product, so they can either click on it to go to the product page, or simply close it and stay on home page, thanks for your help.
__________________
xcart gold plus 4.6.5
responsive customized skin
responsive menus
cdseo + on sale + smart predictive search
Reply With Quote
  #13  
Old 08-21-2011, 05:36 AM
  vasilis's Avatar 
vasilis vasilis is offline
 

X-Adept
  
Join Date: Feb 2009
Posts: 761
 

Default Re: Adding Login Popup to Descriptions

where in the home page do you need the new product link inserted? Different nested template files are engaged in the home page, regarding the specific place you want it.
__________________
Vasilis Vrontisis
X-Cart Development, Maintenance & Customization
https://[URL="http://www.craftforweb.com"]craftforweb.com[/url]
vasilis@craftforweb.com
Reply With Quote
  #14  
Old 08-21-2011, 06:00 AM
 
JoeS JoeS is offline
 

Senior Member
  
Join Date: Dec 2008
Posts: 124
 

Default Re: Adding Login Popup to Descriptions

Well, I am not after a link on the home page, I am looking to integrate a popup box that apears on site visit, it is to advertise a new product. Can you help? Thanks
__________________
xcart gold plus 4.6.5
responsive customized skin
responsive menus
cdseo + on sale + smart predictive search
Reply With Quote
  #15  
Old 08-21-2011, 10:21 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Adding Login Popup to Descriptions

Quote:
Originally Posted by mizNRG
Up until recently, the login pop-up window worked fine. Now, when you try to log in using the pop-up it just sits there the the "Please Wait" message after you click on Submit. The regular login on the right hand side works, though. Does anyone know what could be causing this?

I don't know why it would have worked fine previously, it probably shouldn't have. Let me explain... Some time ago I was working on moving the login box from the left menu to the header in an older version of x-cart. I started by copying the menu login box to the header and when I tried to use it I got the same "wait" state as you did. Once I removed the login box from the menu however everything worked fine.

It seems you can not have two instances of the login box on the same page. Just the fact that all checkout options x-cart has use a separate header and remove the menus form checkout pages reinforces this.

Its possible that the login popup and the "normal" login are "technically" on the same page.... just some thoughts.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #16  
Old 08-22-2011, 12:59 AM
  vasilis's Avatar 
vasilis vasilis is offline
 

X-Adept
  
Join Date: Feb 2009
Posts: 761
 

Default Re: Adding Login Popup to Descriptions

Maybe, it is a case of using two instances of a specific id named control in the same web page, something that is irregular for html coding....

Regarding the popup window displaying when the home page loads, you just place the popup window code without using any function and link, e.g. something like:

Code:
<script language="JavaScript"> <!-- window.open('new_product_url','windowname',' height='320,width=320,scrollbars,resizable'); // --> </script>

You could place this code for example, inside the welcome.tpl template file, so it will execute only when your home page first loads.
__________________
Vasilis Vrontisis
X-Cart Development, Maintenance & Customization
https://[URL="http://www.craftforweb.com"]craftforweb.com[/url]
vasilis@craftforweb.com
Reply With Quote
  #17  
Old 08-22-2011, 05:41 AM
  mizNRG's Avatar 
mizNRG mizNRG is offline
 

Senior Member
  
Join Date: Jun 2010
Posts: 157
 

Default Re: Adding Login Popup to Descriptions

Quote:
Originally Posted by JWait
I don't know why it would have worked fine previously, it probably shouldn't have.

Its possible that the login popup and the "normal" login are "technically" on the same page.... just some thoughts.

I figured out what was causing the issue w/ my popup. At some point after adding the coding I changed the login settings from HTTP to HTTPS. It didn't even occur to me that I needed to change the code to match. Such a silly oversight caused way too much frustration. Glad to have it fixed finally.
__________________
X-Cart 4.4.4 Gold
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 07:40 AM.

   

 
X-Cart forums © 2001-2020