osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Modifying Infoboxes - Using a Template too

This is a discussion on Modifying Infoboxes - Using a Template too within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Hey People: Inherited client's cart and am learning as I go along. Searched for this, and posted this question with ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 02-20-2006, 06:27 PM
bbw bbw is offline
New Member
 
Join Date: Feb 2006
Location: Texas
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
bbw
Default Modifying Infoboxes - Using a Template too

Hey People:
Inherited client's cart and am learning as I go along. Searched for this, and posted this question with another thread, but still need help.

Need to modify the info box called "Information" that has all the shipping/refund, privacy policy, conditions etc. Someone said I need to know if it is hard coded or not to know how to edit. How do I tell? The cart is apparently using a template called Flame. Nothing that I do to the /includes/boxes/information.php file has worked - I need someone to point me in the right direction or point me at instructions for this chore. Can't find specific directions for this in the manaul either. Can I create a new box with only the links I desire and eliminate the old one? Y'all get me started. Thanks in advance for the assist - you guys have helped alot so far!
bbw
__________________
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
knowledge is power - teach me
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 02-21-2006, 02:20 AM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 468
Thanks: 4
Thanked 79 Times in 73 Posts
Rep Power: 8
met00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nice
Default RE: Modifying Infoboxes - Using a Template too

do you need to modify the box or the text?

the box is /includes/boxes/information.php

and should look like

Code:
 $boxContent = '<a href="' . tep_href_link(FILENAME_SHIPPING) . '"> ' . BOX_INFORMATION_SHIPPING . '</a><br>' .
                '<a href="' . tep_href_link(FILENAME_PRIVACY) . '"> ' . BOX_INFORMATION_PRIVACY . '</a><br>' .
                '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '"> ' . BOX_INFORMATION_CONDITIONS . '</a><br>' .
                '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '"> ' . BOX_INFORMATION_CONTACT . '</a><br>'.
                '<a href="' . tep_href_link(FILENAME_CATALOG_PRODUCTS_WITH_IMAGES, '', 'NONSSL') . '">' . BOX_CATALOG_PRODUCTS_WITH_IMAGES . '</a><br>' .
                '<a href="' . tep_href_link(FILENAME_GV_FAQ, '', 'NONSSL') . '">
 ' . BOX_INFORMATION_GV . '</a><br>' . //ICW ORDER TOTAL CREDIT CLASS/GV
                '<a href="' . tep_href_link(FILENAME_SITEMAP) . '">' . BOX_INFORMATION_SITEMAP . '</a>';
to take out the link to privacy just cut the line

Code:
 $boxContent = '<a href="' . tep_href_link(FILENAME_SHIPPING) . '"> ' . BOX_INFORMATION_SHIPPING . '</a><br>' .
                 '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '"> ' . BOX_INFORMATION_CONDITIONS . '</a><br>' .
                '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '"> ' . BOX_INFORMATION_CONTACT . '</a><br>'.
                '<a href="' . tep_href_link(FILENAME_CATALOG_PRODUCTS_WITH_IMAGES, '', 'NONSSL') . '">' . BOX_CATALOG_PRODUCTS_WITH_IMAGES . '</a><br>' .
                '<a href="' . tep_href_link(FILENAME_GV_FAQ, '', 'NONSSL') . '">
 ' . BOX_INFORMATION_GV . '</a><br>' . //ICW ORDER TOTAL CREDIT CLASS/GV
                '<a href="' . tep_href_link(FILENAME_SITEMAP) . '">' . BOX_INFORMATION_SITEMAP . '</a>';
If you are ooking to change the text for the file, that will be in /includes/languages/english/
__________________
so endith the lesson
<think>sometimes I just sit's and thinks</think>
"Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 02-21-2006, 08:27 AM
bbw bbw is offline
New Member
 
Join Date: Feb 2006
Location: Texas
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
bbw
Default RE: Modifying Infoboxes - Using a Template too

Aah sorry - Am trying to eliminate three of the links on there - those last three about the gift vouchers, the site map and the catalog. And the first thing (and the fifth and the latest) I tried was the exact thing you state about just taking out the offending line - if I take out just the last line (for instance to see if it will work or not) I get this:

never mind - now I get this:
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/ezseenco/public_html/includes/functions/database.php on line 19
Unable to connect to database server!

BBL - gotta research this one first
thanks anyway
bbw
__________________
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
knowledge is power - teach me
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 02-21-2006, 08:41 AM
bbw bbw is offline
New Member
 
Join Date: Feb 2006
Location: Texas
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
bbw
Default RE: Modifying Infoboxes - Using a Template too

Ok has resolved itself I suppose.... Ok if I eliminate the one line regarding the site map, this is what I get when rendered in my browser...

Parse error: parse error, unexpected ';' in /home/ezseenco/public_html/includes/boxes/information.php on line 32


If I remove all three lines that I want gone, I get a duplicate Sign In infobox right under the first Sign In infobox.

Here is a link with the error above - http://www.ezseen.com
thanks for the help
bbw
__________________
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
knowledge is power - teach me
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 02-21-2006, 05:27 PM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 468
Thanks: 4
Thanked 79 Times in 73 Posts
Rep Power: 8
met00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nice
Default RE: Modifying Infoboxes - Using a Template too

post the box code.
__________________
so endith the lesson
<think>sometimes I just sit's and thinks</think>
"Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 02-21-2006, 07:17 PM
bbw bbw is offline
New Member
 
Join Date: Feb 2006
Location: Texas
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
bbw
Default RE: Modifying Infoboxes - Using a Template too

Here it is without any deletions. Below that I'll post what I edited the page with my one deletion.


&lt;?php
/*
$Id: information.php,v 1.4.2.1.2.2 2005/09/21 20:58:25 Michael Sasek Exp $
osCMax Power E-Commerce
http://oscdox.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

// Most of this file is changed or moved to BTS - Basic Template System - format.

$boxHeading = BOX_HEADING_INFORMATION;
$corner_left = 'square';
$corner_right = 'square';
$box_base_name = 'information'; // for easy unique box template setup (added BTSv1.2)

$box_id = $box_base_name . 'Box'; // for CSS styling paulm (editted BTSv1.2)
?>
&lt;!-- information bof //-->
&lt;?php

$boxContent = '&lt;a href="' . tep_href_link(FILENAME_SHIPPING) . '"> ' . BOX_INFORMATION_SHIPPING . '&lt;/a>&lt;br>' .
'&lt;a href="' . tep_href_link(FILENAME_PRIVACY) . '"> ' . BOX_INFORMATION_PRIVACY . '&lt;/a>&lt;br>' .
'&lt;a href="' . tep_href_link(FILENAME_CONDITIONS) . '"> ' . BOX_INFORMATION_CONDITIONS . '&lt;/a>&lt;br>' .
'&lt;a href="' . tep_href_link(FILENAME_CONTACT_US) . '"> ' . BOX_INFORMATION_CONTACT . '&lt;/a>&lt;br>'.
'&lt;a href="' . tep_href_link(FILENAME_CATALOG_PRODUCTS_WITH_IMAGE S, '', 'NONSSL') . '">' . BOX_CATALOG_PRODUCTS_WITH_IMAGES . '&lt;/a>&lt;br>' .
'&lt;a href="' . tep_href_link(FILENAME_GV_FAQ, '', 'NONSSL') . '"> ' . BOX_INFORMATION_GV . '&lt;/a>&lt;br>' . //ICW ORDER TOTAL CREDIT CLASS/GV

'&lt;a href="' . tep_href_link(FILENAME_SITEMAP) . '">' . BOX_INFORMATION_SITEMAP . '&lt;/a>';

include (bts_select('boxes', $box_base_name)); // BTS 1.5

?>
&lt;!-- information eof //-->




here is the page with my edits.



&lt;?php
/*
$Id: information.php,v 1.4.2.1.2.2 2005/09/21 20:58:25 Michael Sasek Exp $
osCMax Power E-Commerce
http://oscdox.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

// Most of this file is changed or moved to BTS - Basic Template System - format.

$boxHeading = BOX_HEADING_INFORMATION;
$corner_left = 'square';
$corner_right = 'square';
$box_base_name = 'information'; // for easy unique box template setup (added BTSv1.2)

$box_id = $box_base_name . 'Box'; // for CSS styling paulm (editted BTSv1.2)
?>
&lt;!-- information bof //-->
&lt;?php

$boxContent = '&lt;a href="' . tep_href_link(FILENAME_SHIPPING) . '"> ' . BOX_INFORMATION_SHIPPING . '&lt;/a>&lt;br>' .
'&lt;a href="' . tep_href_link(FILENAME_PRIVACY) . '"> ' . BOX_INFORMATION_PRIVACY . '&lt;/a>&lt;br>' .
'&lt;a href="' . tep_href_link(FILENAME_CONDITIONS) . '"> ' . BOX_INFORMATION_CONDITIONS . '&lt;/a>&lt;br>' .
'&lt;a href="' . tep_href_link(FILENAME_CONTACT_US) . '"> ' . BOX_INFORMATION_CONTACT . '&lt;/a>&lt;br>'.
'&lt;a href="' . tep_href_link(FILENAME_CATALOG_PRODUCTS_WITH_IMAGE S, '', 'NONSSL') . '">' . BOX_CATALOG_PRODUCTS_WITH_IMAGES . '&lt;/a>&lt;br>' .
'&lt;a href="' . tep_href_link(FILENAME_GV_FAQ, '', 'NONSSL') . '"> ' . BOX_INFORMATION_GV . '&lt;/a>&lt;br>' .
//ICW ORDER TOTAL CREDIT CLASS/GV
;

include (bts_select('boxes', $box_base_name)); // BTS 1.5

?>
&lt;!-- information eof //-->


I'm gonna feel really dumb if it is because I left the semicolon in the wrong place or something stupid like that.... be easy on me.
Thanks!
bbw
__________________
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
knowledge is power - teach me
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 02-23-2006, 08:22 AM
bbw bbw is offline
New Member
 
Join Date: Feb 2006
Location: Texas
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
bbw
Default RE: Modifying Infoboxes - Using a Template too

no takers?
bbw
__________________
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
knowledge is power - teach me
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 02-23-2006, 08:44 AM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 468
Thanks: 4
Thanked 79 Times in 73 Posts
Rep Power: 8
met00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nice
Default

Quote:
Am trying to eliminate three of the links on there - those last three about the gift vouchers, the site map and the catalog
try this

Code:
&lt;?php
/*
$Id: information.php,v 1.4.2.1.2.2 2005/09/21 20:58:25 Michael Sasek Exp $
osCMax Power E-Commerce
http://oscdox.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

// Most of this file is changed or moved to BTS - Basic Template System - format.

$boxHeading = BOX_HEADING_INFORMATION;
$corner_left = 'square';
$corner_right = 'square';
$box_base_name = 'information'; // for easy unique box template setup (added BTSv1.2)

$box_id = $box_base_name . 'Box'; // for CSS styling paulm (editted BTSv1.2)
?>
&lt;!-- information bof //-->
&lt;?php

$boxContent = '&lt;a href="' . tep_href_link(FILENAME_SHIPPING) . '"> ' . BOX_INFORMATION_SHIPPING . '&lt;/a>&lt;br>' .
'&lt;a href="' . tep_href_link(FILENAME_PRIVACY) . '"> ' . BOX_INFORMATION_PRIVACY . '&lt;/a>&lt;br>' .
'&lt;a href="' . tep_href_link(FILENAME_CONDITIONS) . '"> ' . BOX_INFORMATION_CONDITIONS . '&lt;/a>&lt;br>' .
'&lt;a href="' . tep_href_link(FILENAME_CONTACT_US) . '"> ' . BOX_INFORMATION_CONTACT . '&lt;/a>';

include (bts_select('boxes', $box_base_name)); // BTS 1.5

?>
__________________
so endith the lesson
<think>sometimes I just sit's and thinks</think>
"Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 02-23-2006, 08:50 AM
bbw bbw is offline
New Member
 
Join Date: Feb 2006
Location: Texas
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
bbw
Default

YOU ARE THE MAN!!! (or woman?)

anyway, that did it!! Thanks so much! I will put it in my BeyondCompare to see what I messed up. Thanks again!!!
bbw
__________________
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
knowledge is power - teach me
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 02-23-2006, 03:31 PM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 468
Thanks: 4
Thanked 79 Times in 73 Posts
Rep Power: 8
met00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nice
Default

the problem, from what I can tell, is you had a hanging "." before the ";"

PS: I am gender neutral I am therefore I am.
(or for those of Jewish descent, from the Passover Hagada, "I am, I am" - okay, it's just a lil sacreligious, but that's what you get from a Y'shiva dropout )
__________________
so endith the lesson
<think>sometimes I just sit's and thinks</think>
"Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
New infoboxes don't appear in page.. jasper0 osCMax v2 Customization/Mods 0 08-08-2006 10:19 AM
infoboxes appear behind coolmenu instead of below betagirl osCMax v2 Installation issues 0 04-18-2006 09:46 PM
Modifying product_info.php - infoboxes Migraine osCommerce 2.2 Modification Help 1 04-15-2005 02:23 PM
small template problem with other infoboxes. eternity575 osCMax v1.7 Discussion 3 07-30-2004 03:14 PM
Space between infoboxes? Kristine osCMax v1.7 General Mods Discussion 1 03-23-2004 03:22 AM


All times are GMT -8. The time now is 02:40 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax