Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2007
    Posts
    126
    Plugin Contributions
    0

    Default Printing a sidebox?

    How can I simply print the manufacturer info sidebox? Is there some PHP code I can call that will just print the sidebox?

  2. #2
    Join Date
    May 2005
    Location
    Bath, Somerset
    Posts
    1,053
    Plugin Contributions
    3

    Default Re: Printing a 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

  3. #3
    Join Date
    Nov 2007
    Posts
    126
    Plugin Contributions
    0

    Default Re: Printing a sidebox?

    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.

  4. #4
    Join Date
    May 2005
    Location
    Bath, Somerset
    Posts
    1,053
    Plugin Contributions
    3

    Default Re: Printing a sidebox?

    In that case, you will need something like this:

    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');
    }
    Ensure this code is situated where you want your box to appear within the code, AND that it appears within <?php tags.

    Absolute

 

 

Similar Threads

  1. Batch printing
    By split63 in forum General Questions
    Replies: 3
    Last Post: 14 Aug 2010, 10:20 PM
  2. Printing invoices
    By elite_chaos in forum General Questions
    Replies: 3
    Last Post: 7 Dec 2008, 09:52 PM
  3. Printing invoice
    By saman in forum General Questions
    Replies: 7
    Last Post: 18 Feb 2008, 03:23 PM
  4. Printing Wiki
    By epicflupe in forum General Questions
    Replies: 2
    Last Post: 15 May 2006, 02:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg