Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to add custom HTML to category page


WebDev22

Recommended Posts

I did some research and found some contributions that might work. We have a first-level category page with two sub-categories. There's nothing else on the page so it's desperate for content. One option would be to find a contribution that allows us to add a short description to the actual category page. I don't know if there's such a thing. Another option would be to find a contribution where you can add content to a category page. Again, I don't know if there's such a thing. Here's what I found so far:

 

Category Descriptions: http://www.oscommerce.com/community/contributions,4294

Category Description v1.00: http://www.oscommerce.com/community/contributions,2343

Products Short Description: http://addons.oscommerce.com/info/3123

 

I don't think the last one would work for a category page that has sub-categories, but would be ideal for category pages with products. Thanks for any input.

Link to comment
Share on other sites

HTML editor contribution.

Category description contribution.

 

Now Use the category description part to get Your content on the page.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

I started to install "Category Descriptions" (4294) and ran into some instructions that instructs changing code that was added by "Header Tags SEO", which I prefer not to alter. I've become so confused and am not sure what to do.

 

To recap, here's what we are looking to have done. We have a top-level category page that contains two sub-categories. We would like the links to each sub-category to include a promotional graphic as well as text. Any help would be greatly appreciated.

Link to comment
Share on other sites

in index.php

if ($category_depth == 'nested') {

 

add within this condition

 

if($cPath == 12)

{

//display this graphic

}

where cPath 12 is the subcategory id where You want display the graphic.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

Satish - Which category description do you recommend?

 

Category Descriptions: http://www.oscommerc...y/contributions,4294

Category Description v1.00: http://www.oscommerc...y/contributions,2343

 

http://www.oscommerce.com/community/contributions,4294

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

Satish - I ended up using the field associated with Header Tags SEO to display some custom HTML and content above the two sub-category links. I'm now working on adding a couple of images above those two subcategory links.

Link to comment
Share on other sites

in index.php

if ($category_depth == 'nested') {

 

add within this condition

 

if($cPath == 12)

{

//display this graphic

}

where cPath 12 is the subcategory id where You want display the graphic.

 

Satish

 

Where would you upload the graphic?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...