GaleriHaruko Posted February 16, 2011 Share Posted February 16, 2011 Hello guys... I'm a new user of osCommerce, and have learn a lot from this amazing stuff!! :) But now i got some problem. I had installed os2.2 with full modified template I had. Its works fine, then I tried os2.3 and I loved it so much. Working well with all the add ons I've installed!! *thanks to all* but then when I try to modified the theme/template using my old theme from os2.2, I've found problem. I've success change header and footer. But when I'm trying to change the column, I can't found column_left.php and column_right.php in os2.3 (in os2.2 their location catalog/includes). Where are they? how can I change this column? I also have problem with log ini, log off, my account, create account link. They all show together at once? what is wrong? When I try to buy things, then check out, I found this error. fatal error: cannot redeclare class language in c:\xampp\htdocs\myshop\giftshop\includes\classes\language.php on line 16 . And my page not show anything. I've attached picture so you guys can get the picture Please give me advice. Thanks A lot!!! Link to comment Share on other sites More sharing options...
♥kymation Posted February 16, 2011 Share Posted February 16, 2011 1. They don't exist. You can change the box settings in your Admin >> Modules >> Boxes to set which column the boxes are in and their order. 2. I can't tell without seeing the code, but it's probably an error in your includes/header.php. 3. This could be an improperly installed language. Make certain that the language name in your Admin matches the directory name for each language. This could also be caused by uploading a file to the wrong directory. Regards Jim See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
GaleriHaruko Posted February 17, 2011 Author Share Posted February 17, 2011 1. They don't exist. You can change the box settings in your Admin >> Modules >> Boxes to set which column the boxes are in and their order. 2. I can't tell without seeing the code, but it's probably an error in your includes/header.php. 3. This could be an improperly installed language. Make certain that the language name in your Admin matches the directory name for each language. This could also be caused by uploading a file to the wrong directory. Regards Jim Thanks for your reply. 1. in Admin >> modules >> Boxes just to set which box we want to show and hide isn't? I'm trying to modify the entire design. 2 Here's my header.php code ?> <table border="0" cellpadding="0" cellspacing="0" align="center" width="910px"> <tr style="background:url(images/header.jpg) top no-repeat" > <td> <table border="0" cellpadding="0" cellspacing="0"> <tr class="header2"> <td width="28"></td> <td colspan="3" align="left" valign="top"><br style="line-height:13px" /><a href="<?php echo tep_href_link('index.php')?>"><?php echo tep_image(DIR_WS_IMAGES.'logo.jpg')?></a></td> <td width="87" valign="bottom" align="left"><?php echo tep_draw_separator('pixel_trans.gif', '30', '1'); ?> <? if (tep_session_is_registered('customer_id')) {?><a href="<?php echo tep_href_link('logoff.php')?>"><?php echo HEADER_TITLE_LOGOFF?></a><? } else { ?><a href="<?php echo tep_href_link('login.php')?>"><?php echo HEADER_TITLE_LOGIN?><? }?></td> <td width="88" valign="bottom" align="left"><? if (tep_session_is_registered('customer_id')) {?><a href="<?php echo tep_href_link('account.php')?>"><?php echo HEADER_TITLE_MY_ACCOUNT?></a><? } else {?><a href="<?php echo tep_href_link('create_account.php')?>"><?php echo HEADER_TITLE_CREATE_ACCOUNT?></a><? }?></td> <td width="338" valign="bottom"></td> <td width="157" align="right" valign="bottom"><a href="<?php echo tep_href_link('login.php')?>"><br style="line-height:8px"> <?php if (!isset($lng) || (isset($lng) && !is_object($lng))) {include(DIR_WS_CLASSES . 'language.php'); $lng = new language; } $languages_string = ''; reset($lng->catalog_languages); while (list($key, $value) = each($lng->catalog_languages)) { $languages_string .= '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES . $value['directory'] .'/images/'. $value['image'], $value['name']) . '</a> '; }echo $languages_string;?></a></td> <td width="32"></td> </tr> <tr class="header1" height="61px" valign="bottom"> <td width="28"></td> <td width="55"><a href="<?php echo tep_href_link('index.php')?>"><?php echo HOME?></a></td> <td width="60"><a href="<?php echo tep_href_link('products_new.php')?>"><?php echo CATALOG?></a></td> <td width="60"><a href="<?php echo tep_href_link('specials.php')?>"><?php echo SPECIAL?></a></td> <td width="175" colspan="2"><a href="<?php echo tep_href_link('contact_us.php')?>"><?php echo CONTACT?></a></td> <td width="338"></td> <td width="157" align="right"><a href="<?php echo tep_href_link('shopping_cart.php')?>"><?php echo CART?></a> <span class="header2"><?php echo $cart->count_contents()?> <?php echo BOX_SHOPPING_CART_EMPTY?></td> <td width="32"></td> </tr> <tr class="header2" height="180px"> <td colspan="2" align="right" valign="middle"><a href="<?php echo tep_href_link('create_account.php')?>"><?php echo tep_image(DIR_WS_IMAGES.'signup.jpg')?></a></td> <td colspan="4" valign="middle"><?php echo HEADER_TEXT?></td> <td width="338"></td> <td width="157" align="right"></td> <td width="32"></td> </tr> </table> </td> </tr> </table> <?php if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerError"> <td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td> </tr> </table> <?php } if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td> </tr> </table> <?php } ?> Thanks! :) Link to comment Share on other sites More sharing options...
♥kymation Posted February 17, 2011 Share Posted February 17, 2011 1. It's also to set which column the box appears in, and the order that the boxes appear in that column. 2. That looks correct. I can't see any reason why that shouldn't work properly. Maybe somebody else can spot the problem. Regards Jim See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.