The Official Website of AgoraCart and Agora.cgi
AgoraCart.com Demos Download AgoraCart User Manuals & Wiki Gold Members Forum Go Gold Now! Gold Version Memberships

AgoraCart.com

About
Features
Download
Payment Gateways
Send a Donation
Founders Club
BLOG: News & Updates

Showcases & Demos

AgoraCart Demos
Shop Live Stores

Downloads & Add-ons

Gold Version Downloads
DBwizz Database Mgr.
AgoraCart.com Store

Help & Support

User Manuals
Gold Version Users Forum
Gold Version Chat
Tech Support
Certified Agora Pros
Certified Designers
Hire a Freelancer

Gold Version Members

Member Benefits
Join Today!
Gold Members Home
Gold Version Users Forum
Gold Version Chat Rooms
Gold Version Downloads

For Store Owners

Merchant Accounts
Cool Resources
Advertise Here
"Powered by" Logos
Web Hosting Search

Misc.

Contact Us
MEET's Talking Guide
The Ancient Greek Agora






AgoraCart Free User Forums

This is the official FAQ and Cool Tips guide For the AgoraCart shopping Cart software


Official Sponsors of the AgoraCart Project:

       


RegisterSearchFAQLog in
Reply to topic Page 1 of 1
Product Pop-up windows
Author Message
Reply with quote
Post Product Pop-up windows 
Hello again,

I'm trying to create a link to a "View Details" pop up window for each product and read a post on the subject that said to do the following:

Place the popup file in the 'html/pages' directory of the store and then use this link in the description area of each product:

<a href="agora.cgi?page=mypopupimg.html" onClick="MyWindow=window.open('agora.cgi?page=mypopupimg.html','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=450,height=450'); return false;" target="new">more info</a>

I tried this and kept getting my index page coming up in the pop up.

Once in the store, click on Alp Yarns on the left hand column and look at Alp #002.

Thanks for your help (and all previous help) Wink

View user's profile Send private message Send e-mail
Reply with quote
Post  
I tried using javascript to do the pop up windows which has been working great on Macs. For some reason, I'm getting a different effect on PCs (IE & Netscape). Once the pop up window launches, the store front in back of it vanishes and leaves a window that says either [object] or [Window Object] on it. You then have to go to this blank page and hit the back button to get back into the store.

I went back and tried using the agora pages method and still get my index page coming up in the pop up. But on the bright side it does work in IE & Netscape. I restored the agora popup version on Alp 004 in the Alp Yarns category. The rest of the View Details links are in javascript.

Store Url: http://buzix1.domainnameservers.net/~custo8/shop/agora.cgi

Can anyone take a peak and see what I'm doing wrong? I to do about 200 of these and don't want to have to keep re-doing them all.

Thanks!
Rachel

View user's profile Send private message Send e-mail
Reply with quote
Post  
Rachel,
Use a full URL to call the popup...

HTH!


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
I'm learning html now so I'm not as familiar with the scripting languages. This is what I've tried so far:

1. <a href="JavaScript:window.open ( 'html/popups/alp004color.html', 'popup', 'scrollbars=auto,resizable=yes,width=470,height=530' )"><font color="#FF00FF"><b>View Details</b></font></a>

This is giving the blank browser window after launching the popup on IE & Netscapte on PCs.

2. <a href="agora.cgi?page="http://buzix1.domainnameservers.net/~custo8/shop/html/pages/popups/alp004color.html" onClick="MyWindow=window.open('agora.cgi?page=http://buzix1.domainnameservers.net/~custo8/shop/html/pages/popups/alp004color.html','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=450,height=450'); return false;" target="new">more info</a>

This is giving me a pop up that says "I am sorry, but you may only use this program to view HTML pages."

3. <a href="agora.cgi?page="http://buzix1.domainnameservers.net/~custo8/shop/html/popups/alp004color.html" onClick="MyWindow=window.open('agora.cgi?page=http://buzix1.domainnameservers.net/~custo8/shop/html/popups/alp004color.html','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=450,height=450'); return false;" target="new">more info</a>

Same result as in #2.

Is there anything else I should be filling out/replacing in this code?

View user's profile Send private message Send e-mail
Reply with quote
Post  
Don't bother with the javascript thingy...
When you do that, people who have javascript disabled
in their browser will not be able to use the pop-up.
For the Full URL, use:
http://buzix1.domainnameservers.net/~custo8/shop/agora.cgi?page=popups/alp004color.html

Make sure your file is placed in the 'html/pages/popups' directory of the store.
If you don't need to really use or create a directory called popups,
then just put the file in the 'html/pages' directory of the store and adjust the URL accordingly.

There are usually more than 1 way to do things, if one way doesn't work try another...

HTH!


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
I typed this into the description box for Alp 004 and am still coming up with the pop up that says "I am sorry, but you may only use this program to view HTML pages"

<a href="agora.cgi?page="http://buzix1.domainnameservers.net/~custo8/shop/agora.cgi?page=popups/alp004color.html" onClick="MyWindow=window.open('agora.cgi?page=http://buzix1.domainnameservers.net/~custo8/shop/agora.cgi?page=popups/alp004color.html','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=450,height=450'); return false;" target="new">View Colors & Details</a>

I will try it by just having the popup files in the category now. Let's see if that works.

View user's profile Send private message Send e-mail
Reply with quote
Post  
Nope, that doesn't work either. Don't know what else to try. Any more thoughts? I've tried just a simple target="blank" but then the pop up is so big it obscures the shop behind it.

View user's profile Send private message Send e-mail
Reply with quote
Post  
Here's the problem:
<a href="agora.cgi?page="http://buzix1.domainnameservers.net/~custo8/shop/agora.cgi?page=popups/alp004color.html" onClick="MyWindow=window.open('agora.cgi?page=http://buzix1.domainnameservers.net/~custo8/shop/agora.cgi?page=popups/alp004color.html','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=450,height=450'); return false;" target="new">View Colors & Details</a>

Should be more like:
<a href="agora.cgi?page=popups/alp004color.html" onClick="MyWindow=window.open('agora.cgi?page=popups/alp004color.html','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=450,height=450'); return false;" target="new">View Colors & Details</a>

HTH!


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
hm try to get make it dynamic -
with java script

function openAnyWindow(url, name) {
var l = openAnyWindow.arguments.length;
var w = "";
var h = "";
var features = "";

for (i=2; i<l; i++) {
var param = openAnyWindow.arguments[i];
if ( (parseInt(param) == 0) ||
(isNaN(parseInt(param))) ) {
features += param + ',';
} else {
(w == "") ? w = "width=" + param + "," :
h = "height=" + param;
}
}

features += w + h;
var code = "popupWin = window.open(url, name";
if (l > 2) code += ", '" + features;
code += "')";
eval(code);
}


so now you have to make the part dynamic in the productPage.inc

a piece i have here -

<a href="javascript:openAnyWindow('here the dynamic stuff', 'remote',600,620,'toolbar=no,location=no,status=no,menubar=no,scrollbars=1,resizable=yes);"><more info</a>

'here the dynamic stuff' with that one may someone could help out?? It can not be too hard to write that piece. Wink
I just have to get a bit deeper into it and when I have more time I will get the solution for that.

greetings
Hans
Hans

View user's profile Send private message
Reply with quote
Post  
forgot - of course you have to ask first - are there any more details - if yes show the link - more details..

btw - why cant I edit my postings?

View user's profile Send private message
Reply with quote
Post  
I tried your last suggestion:

Code:
<a href="agora.cgi?page=popups/alp004color.html" onClick="MyWindow=window.open('agora.cgi?page=popups/alp004color.html','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=450,height=450'); return false;" target="new">View Colors & Details</a>


Now I'm back at having my index page appear in the popup. Your suggestion makes sense, so I don't know where it's pulling my index page from.

Is it Ok to be putting these scripts in the description boxes for each product or should I be placing them elsewhere?

View user's profile Send private message Send e-mail
Reply with quote
Post  
Use the full URL... I ddn't know you were putting it in the description field...

You can also do this dynamically by naming your more info pages the same as your productID.
Then in your ProductPage create the link with the %%ProductID%% token.
It would look a bit more like:
Code:

<a href="http://buzix1.domainnameservers.net/~custo8/shop/agora.cgi?page=popups/%%ProductID%%.html" onClick="MyWindow=window.open('http://buzix1.domainnameservers.net/~custo8/shop/agora.cgi?page=popups/%%ProductID%%.html','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no'); return false;" target="new">View Colors & Details</a>




HTH!


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum