|
|||||||
Join now to share free website templates or post on the forum. If you have never been on a forum before read the
FAQ. It's quick, easy and free to join!
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I am in need of some help with oscommerc, my store is running off it. The thing is all i have figured out how to do is change the color. I am looking to have a box added with icons and change things around and adjust other things. Putting products in is easy and i can do that but the modify php is proving to be difficult. If any one can help that would be so much appreciated. I will post the files on request or can email them direct.
|
|
|||
|
Well i am having a few problems. My site is BlackHorseMotorsports.com i took all content down to show some of the problems.
1. I cant seem to find in the header.php file a way to get rid of the top --> catalog text. 2. I need to create a box on the right that houses our Facebook, twitter, and myspace icon. 3. I want to replace the Manufators box, and instead of just searching by manufatore you can do model, then choose make. But i cant seem to figure out how to create that function 4. I also noticed that the logo uptop looks really off so i want to change the logo and then make it cover the whole top. 5. I am really looking for any other advice or ideas to change it, i am not gonna open it till i feel it is right. There is just something off on it. |
|
||||
|
Quote:
comment out or remove the following line: Code:
<td class="headerNavigation"> <?php echo $breadcrumb->trail(' » '); ?></td>
Quote:
'<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . you could have Code:
'<a href="' . http://www.example.com . '">' . tep_image(DIR_WS_IMAGES . facebook.jpg, 'facebook alt text') . '</a><br>' . '<a href="' . http://www.example.com . '">' . tep_image(DIR_WS_IMAGES . twitter.jpg, 'twitter alt text') . '</a><br>' . '<a href="' . http://www.example.com . '">' . tep_image(DIR_WS_IMAGES . twitter.jpg, 'myspace alt text') . '</a><br>' . require(DIR_WS_BOXES . 'information.php'); you add: require(DIR_WS_BOXES . 'newbox.php'); where the newbox.php is the file you duplicated earlier on. Open your browser clear its cache see if the box is there. Quote:
osCommerce Community Add-Ons Quote:
|
|
|||
|
I did it as you said and now it is throwing a code.
Code:
Parse error: syntax error, unexpected ':', expecting ')' in /home/content/b/l/a/blackhorsemoto/html/catalog/includes/boxes/social.php on line 23 |
|
|||
|
Code:
<?php
/*
$Id: information.php 1739 2007-12-20 00:52:16Z hpdl $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
*/
?>
<!-- information //-->
<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);
new infoBoxHeading($info_box_contents, false, false);
$info_box_contents = array();
$info_box_contents[] = array('text' => '<a href="' . http://www.facebook.com/profile.php?ref=profile&id=100000532294498 . '">' . tep_image(DIR_WS_IMAGES . facebook_32.png, 'facebook alt text') . '</a><br>' .
'<a href="' . http://twitter.com/BlackHorseMotor . '">' . tep_image(DIR_WS_IMAGES . twitter_32.png, 'twitter alt text') . '</a><br>' .
'<a href="' . http://www.youtube.com . '">' . tep_image(DIR_WS_IMAGES . youtube_32.png, 'youtube alt text') . '</a><br>' .
'<a href="' . http://www.flicker.com . '">' . tep_image(DIR_WS_IMAGES . flickr_32.png, 'flicker alt text') . '</a><br>' .
'<a href="' . http://www.myspace.com . '">' . tep_image(DIR_WS_IMAGES . myspace_32.png, 'myspace alt text') . '</a><br>' .
new infoBox($info_box_contents);
?>
</td>
</tr>
<!-- information_eof //-->
|
|
||||
|
ok I tested it here and corrected the issues. Most of them had to do with strings missing the single quotes
Code:
<?php
/*
$Id: information.php 1739 2007-12-20 00:52:16Z hpdl $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
*/
?>
<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_SOCIAL);
new infoBoxHeading($info_box_contents, false, false);
$info_box_contents = array();
$info_box_contents[] = array('text' => '<a href="http://www.facebook.com/profile.php?ref=profile&id=100000532294498">' . tep_image(DIR_WS_IMAGES . 'facebook_32.png', 'facebook alt text') . '</a><br>' .
'<a href="http://twitter.com/BlackHorseMotor">' . tep_image(DIR_WS_IMAGES . 'twitter_32.png', 'twitter alt text') . '</a><br>' .
'<a href="http://www.youtube.com">' . tep_image(DIR_WS_IMAGES . 'youtube_32.png', 'youtube alt text') . '</a><br>' .
'<a href="http://www.flicker.com">' . tep_image(DIR_WS_IMAGES . 'flickr_32.png', 'flicker alt text') . '</a><br>' .
'<a href="http://www.myspace.com">' . tep_image(DIR_WS_IMAGES . 'myspace_32.png', 'myspace alt text') . '</a>'
);
new infoBox($info_box_contents);
?>
</td>
</tr>
You need to edit the catalog/includes/languages/english.php and setup a new definition for the string. Something like: define('BOX_HEADING_SOCIAL', 'Social Links'); |
|
|||
|
That worked brilliantly. You are blessed at programming. So i went into the footer (haha im slowly learning) to try and edit out the powered by oscommerce, and to try and center everything but couldnt find the area. What line am i looking for? What is the code to center?
|
|
||||
|
the footer contents are in catalog/includes/footer.php
You should be able to comment out or remove the sections you don't want. The first table by default contains the visitors and date details. It may be the reason why the copyright info of your store is not centered. The HTML code that I see has a paragraph around the copyright but its part of the second table cell. In any case if you cannot figure it out post the contents of the file here. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|