Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Function Images


Guest

Recommended Posts

Posted

Hello,

 

Are there any tutorials out there for making the catgory box on the left use linked images instead of just text links?

 

How about a Cart image, with the number of and total price of products, like in the old featured store?

 

Thanks for any tips or advice!! :D

 

Rusyn

Posted

But since the categories are populated by PHP (you can add and subtract them from the admin) I don't think there is any hard code (if there is PLEASE point it out to me!)

 

... won't I have to put them in a database? Or identify them somehow in the categories.php file?

 

For example (and I am a PHP noob so...), maybe putting something in here (line 34):

 

// display category name
   $categories_string .= $tree[$counter]['name'];

   if (isset($cPath_array) && in_array($counter, $cPath_array)) {
     $categories_string .= '</b>';
   }

   if (tep_has_category_subcategories($counter)) {
     $categories_string .= '';
   }

   $categories_string .= '</a>';

 

Something that would give the images a $variable, identifying their location, something like /cat_images/['name'].gif or something? That way osC knows what image to put with what category...

 

I hope someone understands what I am trying to say here.... :(

Archived

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

×
×
  • Create New...