Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Window popup image open the index of the store


Santoria

Recommended Posts

Hi,

I installed osCommerce 2.2rc2a, everything worked fine but i noticed a strange issue.

If i add a new product and the name of the product ends with "cat" (ex: bobcat or pussycat), the image popup from the product page dont open the larger image, it open the index of the website. Changing the name of the product adding something at the end make the things working fine. (ex: bobcats or pussycats)

 

Took me some hours to see what wrong with that product. From 50 products, just one didnt show the larger image. And thats a product ending with "cat". I changed the name, but i dont consider thats the way to solve this issue.

 

Anyone experienced this problem? Any ideeas?

Link to comment
Share on other sites

Hi,

I installed osCommerce 2.2rc2a, everything worked fine but i noticed a strange issue.

If i add a new product and the name of the product ends with "cat" (ex: bobcat or pussycat), the image popup from the product page dont open the larger image, it open the index of the website. Changing the name of the product adding something at the end make the things working fine. (ex: bobcats or pussycats)

 

Took me some hours to see what wrong with that product. From 50 products, just one didnt show the larger image. And thats a product ending with "cat". I changed the name, but i dont consider thats the way to solve this issue.

 

Anyone experienced this problem? Any ideeas?

Are you using the "Use Search Engine Friendly URLs"? If so, don't.

Bill Kellum

 

Sounds Good Productions

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

Link to comment
Share on other sites

He meant this: click me

 

Same problem.

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 >

Link to comment
Share on other sites

@germ

I solved the issue, but i am not sure yet if is a good idea to post the code because i cant think exactly what else can be wrong now.

Please anyone can tell me what more can be affected if the "Enable automatic redirects?" is set to false? The issue can be solved only with "Enable automatic redirects?" false.

Link to comment
Share on other sites

osCommerce 2.2rc2a + SEO URLs v2.1 works fine.

for the popup window issue just cut from the seo.class.php file the part who refer to popup window:

 

search and cut this code:

 

case 'pID':

switch(true){

case ($page == FILENAME_POPUP_IMAGE):

$url = $this->make_url($page, $this->get_product_name($p2[1]), $p2[0], $p2[1], '.html', $separator);

break;

default:

$container[$p2[0]] = $p2[1];

break;

} # end switch

break;

 

i test it and works. you should set AutoRedirect to false.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...