Jump to content
Sign in to follow this  
synthea

STS - Popup images not working

Recommended Posts

Working on a store for a client, www.hawk-stock.com

 

I am using STS but no other mods. Popup images won't work. php isn't my strong suit, I need help figuring this one out.

 

I did not edit the popup_image.php file at all. Help please!


Amy

Share this post


Link to post
Share on other sites

Anyone? I've managed to resolve most of the other issues but I can't get this one to work. Thanks!!


Amy

Share this post


Link to post
Share on other sites

Popup help (like when you click [more info] on the login page) is also not working. I am stumped!


Amy

Share this post


Link to post
Share on other sites

I asked about this same topic and never got a response. I don't know if that means nobody has an answer, someone did suggest a javascript change, but the javascript they suggested is already in the page and it didn't work.

 

I'm hoping you can get a response since I didn't, and it's the only thing I can't figure out with this programming.

Share this post


Link to post
Share on other sites

You need this code:

 

<script language="javascript"><!--
function popupWindow(url) {
 window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res
izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le
ft=150')
}
//--></script>

 

In the <HEAD> section of product_info.php

 

That's one problem...

;)

Edited by germ

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Share this post


Link to post
Share on other sites

I already have it, but I even tried it with your extra end script tag just to be sure and it still doesn't work.

 

I don't understand this at all because I have another store I designed for another client using STS and the popups for that store work fine.


Amy

Share this post


Link to post
Share on other sites

That javascript already exists in the product_info.php file.

 

Is there another answer?

 

 

 

 

 

You need this code:

 

<script language="javascript"><!--
function popupWindow(url) {
 window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res
izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le
ft=150')
}
//--></script>

 

In the <HEAD> section of product_info.php

 

That's one problem...

;)

Share this post


Link to post
Share on other sites

Amy, this is all that's in your <HEAD>

 

<head>

<meta http-equiv="Content-Language" content="en-us">

<link rel="shortcut icon" href="favicon.ico">

<link rel="stylesheet" type="text/css" href="stylesheet.css">

<title>:: Hawk Stock :: Always on the lookout for the Best Buys!</title></head>

 

Figuratively speaking... of course..

:lol:


If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Share this post


Link to post
Share on other sites

Can you give me a link to your site, Jackson?

:unsure:


If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Share this post


Link to post
Share on other sites

That partially solves it (I added the script to the index.php_0.html and the template page)...I don't get why I didn't have to do that with the other store, but oh well. Now on to figure out how to automatically resize the popup to fit the image.

 

Thanks!!


Amy

Share this post


Link to post
Share on other sites

Works now, Amy!!!

;)


If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Share this post


Link to post
Share on other sites

I'm not seeing any [MORE INFO] link there?

:unsure:


If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Share this post


Link to post
Share on other sites

Note: Your "Visitors Cart" contents will be merged with your "Members Cart" contents once you have logged on. [More Info]

 

It's right under Welcome, Please Sign In.


Amy

Share this post


Link to post
Share on other sites

Not in my browser?

:blush:


If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Share this post


Link to post
Share on other sites

This is all the text i see:

 

Welcome, Please Sign In

 

 

New Customer Returning Customer

 

I am a new customer.

 

By creating an account at Hawk Stock you will be able to shop faster, be up to date on an orders status, and keep track of the orders you have previously made.

 

 

 

 

 

I am a returning customer.

 

E-Mail Address:

Password:

 

Password forgotten? Click here.


If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Share this post


Link to post
Share on other sites

Gah, dangit. I hate internet explorer. It's not showing in IE, only Firefox. Another thing to fix.


Amy

Share this post


Link to post
Share on other sites

MY BAD!!!! Nothing in the cart... :lol:

 

You need this in your <HEAD> there:

 

<script language="javascript"><!--
function session_win() {
 window.open("<?php echo tep_href_link(FILENAME_INFO_SHOPPING_CART); ?>","info_shopping_cart","height=460,width=430,toolbar=no,statusbar=no,scrollbars=yes").focus();
}
//--></script>

Edited by germ

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Share this post


Link to post
Share on other sites

With all the work on your <HEAD>, I feel like Freud...

:wacko:

 

:D


If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Share this post


Link to post
Share on other sites

You are awesome! Thank you!!

 

As for the head comment :P

Edited by synthea

Amy

Share this post


Link to post
Share on other sites

B)

 

:lol:

 

You're most welcome, Ma'am...

:rolleyes:

 

Just glad I could help.

:blush:


If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Share this post


Link to post
Share on other sites
I asked about this same topic and never got a response. I don't know if that means nobody has an answer, someone did suggest a javascript change, but the javascript they suggested is already in the page and it didn't work.

 

I'm hoping you can get a response since I didn't, and it's the only thing I can't figure out with this programming.

 

You could have saved yourself a lot of grief and time if you would have asked your question in the STS thread.

 

If your popup is not working, it is most likely due to the fact that you do not have all of the required STS tags in your template pages, specifically: <html $htmlparams> in your head section.

 

Place <!--$headcontent--> between <head> and </head> of your template. It is important to keep the comment chars before and after $headcontent otherwise it won't work!

Example:

 

<head>
<!--$headcontent-->
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>

Result of the example:

 

 <head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>osC Help - The site that helps you choosing your osCommerce contributions</title>
<base href="http://127.0.0.1:71/osc-help/">
<!-- start get_javascript(applicationtop2header) //-->

<!-- end get_javascript(applicationtop2header) //-->
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>


Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Share this post


Link to post
Share on other sites
If your popup is not working, it is most likely due to the fact that you do not have all of the required STS tags in your template pages, specifically: <html $htmlparams> in your head section.

 

Place between <head> and </head> of your template. It is important to keep the comment chars before and after $headcontent otherwise it won't work!

 

This is what happened - I didn't have the $htmlparams in any form on my template page, but I tried it like this: <html $htmlparams> and it didn't work, so I thought that wasn't it at all. I just used the <!--$headcontent--> and it works beautifully!

 

I sure wish the search feature on these forums worked better, I'm sure this has been addressed but I searched for over an hour and couldn't find anything helpful!


Amy

Share this post


Link to post
Share on other sites

Sure, the site I'm trying to get set up is http://www.jacksonjewellery.com/shopping/catalog - this is the newest version so I'm starting all over again, the first one was as above only at /shop/catalog instead of shopping.

 

In the newest version I have edited the javascript to have a 640 x 480 size with scrollbars just to try to get around the resizing issue.

 

 

 

Can you give me a link to your site, Jackson?

:unsure:

Share this post


Link to post
Share on other sites

You're saying it works, but not like you want?

 

So how do you want it to work?

:unsure:


If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×