Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I'm trying to make something I could turn into a contrib


Recommended Posts

Posted

I know next to nothing about PHP, so I figure I will ask here.

 

I got this idea off an existing contrib:

 

download coppermine and instead of having that one image in the product info page, put an iframe in and have a whole gallery for your products.

 

Now what I want to do is get the product ID and enter that as the album name in the src for the iframe.

 

Say I click on something with the product ID of 123, the src for the iframe would go to gallery/album/123 and show all the pictures there.

 

I know this must be possible, but I do not know what php code calls the product ID or how to put it into a working URL.

 

Any help with this would be amazing.

 

I've already set up the iframe in the site and taken out the image at the top right, but for the life of me I can't figure out how to make the URL go to the right place for each product.

 

 

Thanks alot!

Posted

Okay Ive run into a new problem.

 

Just creating an album name do not make its URL the same. I created my album name as 28, the same as the products ID, but it creates the URL as album=1 because it was the first I made. Any ideas on what I can do to get the URL the same as the product ID?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...