petsk Posted February 20, 2005 Share Posted February 20, 2005 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 More sharing options...
butterflyguy Posted February 20, 2005 Share Posted February 20, 2005 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 My Contribution Manufacturers Box To Anything Box Link to comment Share on other sites More sharing options...
petsk Posted February 20, 2005 Author Share Posted February 20, 2005 Hi Ray, Thanks for the tip! Though, it isn't really what I want since I want my store to be as "lite" as possible. I'm only showing boxes at left side and wan't them to be as few as possible :) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.