Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to create a different infobox template in BTS 1.5?


m_ring2003

Recommended Posts

Hi,

 

I'm trying to create a different infobox template. When I thought i had successfully gone to configure_bts.php to add the following, and create another box2.tpl.php, yes, it did show up on the website, however, when i go to the product page, try to add to cart, it went to the advanced search page, by right should goto shopping cart page.

 

Can you guys advise me how to create a different infobox template?

 

thanks.

 

case 'boxes2':

// small sideboxes

if(is_file(DIR_WS_BOX_TEMPLATES . $box_base_name . '.tpl.php')) {

// if exists, load unique box template for this box from templates/boxes/

$path = (DIR_WS_BOX_TEMPLATES . $box_base_name . '.tpl.php');

} elseif(is_file(DIR_WS_BOX_TEMPLATES_FALLBACK . $box_base_name . '.tpl.php')) {

// if exists, load unique box template for this box from templates/boxes/

$path = (DIR_WS_BOX_TEMPLATES_FALLBACK . $box_base_name . '.tpl.php');

} elseif(is_file(DIR_WS_BOX_TEMPLATES . TEMPLATENAME_BOX2)) {

// if exists, load unique box template for this box from templates/boxes/

$path = (DIR_WS_BOX_TEMPLATES . TEMPLATENAME_BOX2);

} else {

$path = (DIR_WS_BOX_TEMPLATES_FALLBACK . TEMPLATENAME_BOX2);

}

break;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...