Author Topic: Cross Sell missing file  (Read 1733 times)

0 Members and 1 Guest are viewing this topic.

David M. Graham

  • Administrator
  • Sr. Member
  • *****
  • Offline Offline
  • Posts: 380
  • Karma: 12
    • View Profile
    • osCommerce University
Re: Cross Sell missing file
« Reply #5 on: May 31, 2008, 07:00:54 PM »
As long as it works :)

David

OKCRandy

  • Newbie
  • *
  • Offline Offline
  • Posts: 17
  • Karma: 0
    • View Profile
Re: Cross Sell missing file
« Reply #4 on: May 29, 2008, 11:20:02 AM »
I was not sure where exactly to paste the code. So I looked at the Original_B2B template and pasted it above


Code: [Select]
  class errorBox extends tableBox {
    function errorBox($contents) {
      $this->table_data_parameters = 'class="errorBox"';
      $this->tableBox($contents, true);
    }
  }

David M. Graham

  • Administrator
  • Sr. Member
  • *****
  • Offline Offline
  • Posts: 380
  • Karma: 12
    • View Profile
    • osCommerce University
Re: Cross Sell missing file
« Reply #3 on: May 29, 2008, 10:43:55 AM »
To clarify this,  Randy added the code to boxes.tpl.php , probably at the bottom of the file before the final "? >" tag.

This added a PHP class which forms the contentBox on the page involved.  A nice little template adjustment.

David

OKCRandy

  • Newbie
  • *
  • Offline Offline
  • Posts: 17
  • Karma: 0
    • View Profile
Re: Cross Sell missing file
« Reply #2 on: May 28, 2008, 02:46:37 PM »
I found that the template Original does not contain the Class
information. I added the information as it appeared to the Original_B2B template.
This seems to have fixed the problem.

Code: [Select]
  class contentBoxFooter extends tableBox {
    function contentBoxFooter($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {
      $this->table_cellpadding = '0';
      if ($left_corner) {
        $left_corner = tep_image(DIR_WS_IMAGES. 'pixel_trans.gif');
      } else {
        $left_corner = tep_image(DIR_WS_IMAGES. 'pixel_trans.gif');
      }
      if ($right_arrow) {
        $right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/images/infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';
      } else {
        $right_arrow = '';
      }
      if ($right_corner) {
        $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES. 'pixel_trans.gif');
      } else {
        $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES. 'pixel_trans.gif');
      }

      $info_box_contents = array();
      $info_box_contents[] = array(array('params' => ' class="infoBoxHeading"', 'text' => $left_corner),
                                   array('params' => ' width="100%" ', 'text' => $contents[0]['text']),
            array('params' => ' class="infoBoxHeading" nowrap', 'text' => $right_corner));

      $this->tableBox($info_box_contents, true);
    }
  }
« Last Edit: May 28, 2008, 03:18:16 PM by OKCRandy »

OKCRandy

  • Newbie
  • *
  • Offline Offline
  • Posts: 17
  • Karma: 0
    • View Profile
Cross Sell missing file
« Reply #1 on: May 28, 2008, 09:21:43 AM »
I just setup a product with cross sell to see what the product page would look like. Now when I go to the product page, I get this error.

Fatal error: Class 'contentBoxFooter' not found in /home/okcr4ndy/public_html/purokc-creations/includes/modules/xsell_products_buynow.php on line 92

I searched the contents of the creloaded62b2b_wl zip and found no such file.

Any suggestions?

Randy
« Last Edit: May 28, 2008, 09:23:27 AM by OKCRandy »