Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing Manufacturerbox to ManufacturerINFObox...


petsk

Recommended Posts

Hi :D

 

I want the box "Manufacturers" to change to into "Manufacturer Info" when I click on a product and the product_info.php page is showed.

 

This is changed in includes/column_left.php

 

The code that shows the Manufacturers box:

(I'm using STS template contribution)

  if ((USE_CACHE == 'true') && empty($SID)) {
   echo tep_cache_manufacturers_box();
 } else {
   include(DIR_WS_BOXES . 'manufacturers.php');
 }

 $sts_block_name = 'manufacturerbox';
 require(STS_RESTART_CAPTURE);

 

How do I modify the code so that manufacturers.php become manufacturer_info.php when a product is showed?

I supose that someting like the following should be inserted below the above code, but I just don't know exactly how to write the code? :blink:

  if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php');

 $sts_block_name = 'maninfobox';
 require(STS_RESTART_CAPTURE);

 

 

Best regards,

Peter

Link to comment
Share on other sites

Peter,

 

I am not sure but:

considering that in a stock osc setup, manufacturer info only apears when a product has an assigned manufacturer, and since that is the only time you need it, instead of trying to modify the manufacturers box just insert your code for manufacturer info above the code for manufacturer. that way the customer can scroll down and choose a different manufacturer if they so choose instead of having to go back to the previous page to make another selection. this way you can keep both boxes but simply make the manufacturer infobox 'apear' to replace the manufacturer box. When they make other selections (category for example) the manufacturer info box will disapear leaving the manufacture box in its place.

 

hope it helps,

ray

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...