osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Changing Code in shopping_cart.php

This is a discussion on Changing Code in shopping_cart.php within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I have created a new element in stylesheets A.BoxNav and although I was able to follow the directions for placing ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 11-13-2003, 05:47 PM
New Member
 
Join Date: Nov 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
JaaMor
Default Changing Code in shopping_cart.php

I have created a new element in stylesheets A.BoxNav and although I was able to follow the directions for placing this code in the categories box, I cannot figure where to add it in any other box or what existing code to replace. I need to add it to shopping_cart.php to change my font text to white. Could someone take a look at this and tell me what to add where? Hopefully from this example I can take another look at the other boxes and follow. Thanks.


<?php
/*
$Id: shopping_cart.php,v 1.18 2003/02/10 22:31:06 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/
?>
<!-- shopping_cart //-->
<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('text' => BOX_HEADING_SHOPPING_CART);

new infoBoxHeading($info_box_contents, true, true, tep_href_link(FILENAME_SHOPPING_CART));

$cart_contents_string = '';
if ($cart->count_contents() > 0) {
$cart_contents_string = '<table border="0" width="100%" cellspacing="0" cellpadding="0">';
$products = $cart->get_products();
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
$cart_contents_string .= '<tr><td align="right" valign="top" class="infoBoxContents">';

if ((tep_session_is_registered('new_products_id_in_ca rt')) && ($new_products_id_in_cart == $products[$i]['id'])) {
$cart_contents_string .= '<span class="newItemInCart">';
} else {
$cart_contents_string .= '<span class="infoBoxContents">';
}

$cart_contents_string .= $products[$i]['quantity'] . ' x </span></td><td valign="top" class="infoBoxContents"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">';

if ((tep_session_is_registered('new_products_id_in_ca rt')) && ($new_products_id_in_cart == $products[$i]['id'])) {
$cart_contents_string .= '<span class="newItemInCart">';
} else {
$cart_contents_string .= '<span class="infoBoxContents">';
}

$cart_contents_string .= $products[$i]['name'] . '</span></a></td></tr>';

if ((tep_session_is_registered('new_products_id_in_ca rt')) && ($new_products_id_in_cart == $products[$i]['id'])) {
tep_session_unregister('new_products_id_in_cart');
}
}
$cart_contents_string .= '</table>';
} else {
$cart_contents_string .= BOX_SHOPPING_CART_EMPTY;
}

$info_box_contents = array();
$info_box_contents[] = array('text' => $cart_contents_string);

if ($cart->count_contents() > 0) {
$info_box_contents[] = array('text' => tep_draw_separator());
$info_box_contents[] = array('align' => 'right',
'text' => $currencies->format($cart->show_total()));
}

new infoBox($info_box_contents);
?>
</td>
</tr>
<!-- shopping_cart_eof //-->
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 11-13-2003, 09:27 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,080
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

Please stop posting entire files in your posts. We all have these files. Only post the section of code that you want to modify. We all have shopping_cart.php, so stop posting the entire file, it is unneccesary.

How about trial and error. See all the class= tags? Change them one by one to your new class and see what happens.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
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
Shopping_cart.php dsimes osCMax v2 Customization/Mods 1 09-08-2005 05:13 AM
getting odd sql shopping_cart.php thinkweb osCMax v1.7 Discussion 0 02-07-2005 12:30 PM
shopping_cart philou83 osCommerce 2.2 Modification Help 0 11-17-2004 06:44 AM
Send email from shopping_cart.php neil osCMax v1.7 Discussion 4 01-29-2004 02:45 PM
Modification to shopping_cart.php box needed... atech osCommerce 2.2 Modification Help 0 09-03-2003 06:25 PM


All times are GMT -8. The time now is 07:45 AM.


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