Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Has this been attempted or discussed somewhere?


loxly

Recommended Posts

I tried searching a couple of different ways for info on what I want to do and didn't get anywhere. If there is a thread or a contribution that exists I would love to be pointed in the right direction.

 

Is there a way to pull the link to a product description page or a "buy now" button dynamically into offsite (onsite but in a different location) pages? For example, I have a gallery of photographs and I want them to link back to osc product page, preferably, or buy now, if it is easier to accomplish. But I don't want to build the links individually, I'd rather they could be called somehow, the product id would be the photo name, or the photo name minus the extension.

 

Could I do it with a search string? And have the search pull in the photo name dynamically?

 

Thanks in advance for any pointers!

 

Debbie

(If you want to see what I mean you can go to:

http://www.coolcatsites.net/modules.php?name=gallery

click on an album, then a photo. I already know how to edit how this page displays)

[no external urls in signatures please, kthanks]

Link to comment
Share on other sites

I don't think so, this puts a whole page of your catalog somewhere. I'll look at the code though and see if it can be modified to work. It's somewhere to start anyway!

 

Thanks!

[no external urls in signatures please, kthanks]

Link to comment
Share on other sites

Here's an idea...

 

The osCAffiliate program has that "build-a-link" feature which can link to a specific product page. Maybe there is something there that might help.

 

Good Luck.

 

-R

Link to comment
Share on other sites

  • 1 year later...

On the Catalog Anywhere contribution: the catalog.php file contains the database name, user password etc. - Instructions pasted below. My question is: Would't this pose a security risk or am I missing something here? Seems I could look at the page source & obtain the database information...

 

1) Make the changes at the top of the catalog.php file as follows:

 

$db_server = ""; //database server

Enter the location of your MySQL DB (usually Localhost)

 

$db_user = ""; //database user

Enter your username

 

$db_pass = ""; //database password

Enter your password

 

$db_name = ""; //database name

Enter your database name.[/color]

Tony Mazz

Link to comment
Share on other sites

On the Catalog Anywhere contribution: the catalog.php file contains the database name, user password etc. - Instructions pasted below. My question is: Would't this pose a security risk or am I missing something here? Seems I could look at the page source & obtain the database information...

 

1) Make the changes at the top of the catalog.php file as follows:

 

$db_server = ""; //database server

Enter the location of your MySQL DB (usually Localhost)

 

$db_user = ""; //database user

Enter your username

 

$db_pass = ""; //database password

Enter your password

 

$db_name = ""; //database name

Enter your database name.[/color]

Wow - that is dug up from quite some time ago! :huh:

 

I have never even looked at the contribution - just knew of it and tried to help Loxly :D ....... so, what security issues there may be I am not sure.... however, the PHP source code cannot be viewed by looking at the page source - you will only see what PHP outputs. The file would obviously need the correct permissions set on it.

 

Matti

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...