Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

$content ~ What PHP is this looking for....?


Guest

Recommended Posts

I have just been introduced to OSC and STS... I am learning alot fast, but I have hit a point I have to ask a question...

 

the main page at americanmovingsupplies.com is sts_template.hrml... in this file it has a place holder $content.... I need to edit that area of the mainpage... how can I tell what PHP file the #content is referring to?

 

I have looked at all the obvious ones and a few other but unable to locate this file... Is there a file that stores what PHP file is $content for that location?

 

My explanation maybe crude... but feel free to look at site and code...

 

TY

jmatulevich

Link to comment
Share on other sites

  • 1 month later...
Where was it? I have the same problem.

 

 

Cheers.

$content is taken from the php script (index.php, checkout_process.php, etc.) you are running. For example, the $content for index.php is the piece of code you find in index.php, between the call of column_left and the call of column_right. If you want to modify it, you have to modify the script (index.php) itself.

 

For example: Let's say you have placed your $content tag in the middle column. Now viewing your shop through a browser, you click on a category link. Now the $content tag responds by populating the middle column with the listing proucts for that particular category. Now if you want the listing to appear differently than the stock osC, you will have to edit the PHP code that controls the characteristics of the product listings or install a contribution that will do this for you. Either way, the $content tag is going to populate whatever the PHP code tells it to.

 

Hope this helped,

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

Archived

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

×
×
  • Create New...