How can I simply print the manufacturer info sidebox? Is there some PHP code I can call that will just print the sidebox?
How can I simply print the manufacturer info sidebox? Is there some PHP code I can call that will just print the sidebox?
When you say print the sidebox, do you want to PRINT onto paper one blank page with only the manufacturer sidebox? If so, you can create a new page, and download the single sidebox contribution from the downloads section, and then set this up for the manufacturers sidebox.
If you want to display the sidebox somewhere else on your store, then you just need to include the relevant sidebox files.
Absolute
On the product info page, I have organized it to two boxes. The left large box shows product info and I have a smaller right box that handles the add to cart buttons.
I would like the manufacturer info below the add to cart box. The easiest way I can think of is to just call the manufacturer sidebox.
What code do I need to add to the product info php file that will simply display the manufacturer info sidebox? I am not using the manufacturer sidebox as it is intended because I'm making a custom template.
In that case, you will need something like this:
Ensure this code is situated where you want your box to appear within the code, AND that it appears within <?php tags.Code:$box_id = zen_get_box_id('product_manufacturer_info'); if ( file_exists(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/manufacturer_info.php') ) { require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/manufacturer_info.php'); } else { require(DIR_WS_MODULES . 'sideboxes/manufacturer_info.php'); }
Absolute