Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help a Newbie


Guest

Recommended Posts

Posted

Hi All

 

First of all, I have to apologise for my distinct lack of php knowledge.

 

All I want to be able to do is to place the contents of a product category within an iFrame on my site. I have mashed up the sort of idea here:

 

http://www.trackdaymagazine.com/trackdays/phptest.php

 

This is a separate part of the site and the only items accessible should be the trackdays, so no menus left or right, no headers or footers, literally just the box that the items are in.

 

Is there a single php script that generates this box, and if so, what is it's name?

 

Thanks in advance

Posted

I don't really understand why you want to.... but...

 

There is no simple way to do this.

Reasons why:

1. The script that you essentially want is includes/modules/product_listing.php. However you can't simply access this file because it doesn't know what to do on its own.

2. The data sent to product_listing.php comes from a number of places, but mainly index.php, which generates the MySQL queries and things to make it all work.

3. Without including application_top.php into your pages, many of the functions and classes required for osC operation will not be included, and you will be plagued with php / mysql errors.

 

Sorry i don't have good news for you, but that is basically what it boils down to.

 

What i would suggest is rebuilding your regular site into the osCommerce framework rather than the other way around.

You can use STS and CSS to fully customise the look and feel so it doesn't look like a regular osC store.

 

Rob

Rob Bell - Inspired Graphix

Customising osCommerce in Australia, and the world!

View my profile for web and email links.

 

I'm sorry, but i cannot offer Free support via PM etc, and osCommerce forums prohibit me from putting any reference to paid support in my signauture.

However viewing my profile may provide links to my website or something like that which you may find useful.

Posted

Thanks Rob, I didn't realise it would be that complex. So how about if I carry on the way I'm going by just stripping out the unwanted stuff. As you can see, I'm halfway there, but I still need to do the following:

 

Remove the space on the left and right of the box

Remove the header at the top of the box (where the category picture is)

Make the background transparent

 

So what are the scripts that hold these parameters?

 

Thanks

Archived

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

×
×
  • Create New...