Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Oscommerce PHP is changing the relative link? I think?


rustyclockwork

Recommended Posts

Posted

I'm working on incorporating a pure CSS image gallery for certain products that need lots of detail pictures. I'm putting that CSS code directly into the product description, and it DOES FUNCTION correctly in the "preview" product area before you update it. But once it's updated, I believe the "relative linking" is gone or something. The code below is for a thumbnail image that is part of a gallery. The "a href="#pic2" part is possibly the problem?

 

<li><a href="#pic2"><img src="double-click/pic2.jpg" alt="picture two" /></a></li>

 

status bar shows this when mouse is over thumbnail image "go to #pic2 on this page" (this is in the admin section, the preview mode before a product is updated)

 

but when the product info is updated and is then viewable on an actual product page on the website, the status bar then shows this message when mouse is over same thumbnail image:

"go to http://www...blablabla...com/catalog/#pic2"

 

any ideas as to what is going on after the product update button is pressed?

 

The code will work when in preview in the admin section.

 

Thank you for any ideas,

 

Jason

Posted

Inside the product description, when I make the "base href=" code relative to the product page's address, it works, but anything processed after that (bottom page and right side colum) the images won't show up.

 

Any ideas?

 

thanks,

 

Jason

Posted

You must be very careful when using anchors, as they could beak your cart. http://www.oscommerce.com/forums/index.php?showtopic=330479&hl

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Posted

Hi Sam,

 

Yup, read over that forum a few weeks back.

 

This anchor only deals with image links in the same page.

 

Problem is, the only way I can get it to work right now, is to define a base ref within the product description, and that can't be the way to make this work, as all code after that is processed, the bottom part of my site and the right column side get messed up.

 

there's got to be a way to link #foo within the same page on a dynamically generated site.

 

Jason

Posted

This anchor only deals with image links in the same page.

 

 

That don't negate the issue, the page is still refreshed, so the prolem is still there. ohmy.gif

 

most anchor links are to anchors on the same page wink.gif

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Posted

Hi Sam,

 

Hmmm.... is there another way to do this?

 

the site is www.oldfoundry.com, and the gallery is on the only new product shown on the left.

 

The gallery is neat, but since it's doing named anchors, the page jumps putting the gallery at the top of the page, once it's there, it stops of course.

 

Have any ideas?

 

Thanks,

 

Jason

 

EDIT --- I noticed that the page request number doesn't go up when I'm clicking on the thumbnails, does this mean that the page doesn't get refreshed? Thank you for taking the time to look at this Sam.

Posted

Hi Sam,

 

Hmmm.... is there another way to do this?

 

the site is www.oldfoundry.com, and the gallery is on the only new product shown on the left.

 

The gallery is neat, but since it's doing named anchors, the page jumps putting the gallery at the top of the page, once it's there, it stops of course.

 

Have any ideas?

 

Thanks,

 

Jason

 

EDIT --- I noticed that the page request number doesn't go up when I'm clicking on the thumbnails, does this mean that the page doesn't get refreshed? Thank you for taking the time to look at this Sam.

Relevant information 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 >

Archived

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

×
×
  • Create New...