thinkingforward Posted September 26, 2009 Posted September 26, 2009 Hi! Having a little trouble pushing the text "0 items" over to the right in column right.php. I have found the class "boxtext" but when adding padding to that it effects the menu on the left. See here. What's the best way to nudge it over? Thanks, Chris
Xpajun Posted September 26, 2009 Posted September 26, 2009 Find the cell within the column right file and direct it to align="right" My store is currently running Phoenix 1.0.3.0 I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 ) I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary
thinkingforward Posted October 2, 2009 Author Posted October 2, 2009 Find the cell within the column right file and direct it to align="right" Thanks, where about in the PHP do I put it? Code below <?php /* $Id: column_right.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ require(DIR_WS_BOXES . 'shopping_cart.php'); if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php'); //if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php'); if (isset($HTTP_GET_VARS['products_id'])) { if (tep_session_is_registered('customer_id')) { $check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'"); $check = tep_db_fetch_array($check_query); if ($check['count'] > 0) { // include(DIR_WS_BOXES . 'best_sellers.php'); } else { // include(DIR_WS_BOXES . 'product_notifications.php'); } } else { // include(DIR_WS_BOXES . 'product_notifications.php'); } } else { //include(DIR_WS_BOXES . 'best_sellers.php'); } if (isset($HTTP_GET_VARS['products_id'])) { //if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php'); } else { // include(DIR_WS_BOXES . 'specials.php'); } // require(DIR_WS_BOXES . 'reviews.php'); //require(DIR_WS_BOXES . 'whats_new.php'); if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { // include(DIR_WS_BOXES . 'languages.php'); // include(DIR_WS_BOXES . 'currencies.php'); } ?>
Xpajun Posted October 2, 2009 Posted October 2, 2009 the alignment is set to right in root>>includes>>boxes>>shopping_cart.php which should look like this: from line 22: $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">'; last line aligns it. If your shopping_cart.php looks like this then the template you are using is breaking the coding in which case you should ask the template supplier My store is currently running Phoenix 1.0.3.0 I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 ) I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary
thinkingforward Posted October 2, 2009 Author Posted October 2, 2009 the alignment is set to right in root>>includes>>boxes>>shopping_cart.php which should look like this: from line 22: $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">'; last line aligns it. If your shopping_cart.php looks like this then the template you are using is breaking the coding in which case you should ask the template supplier Thanks. Mine already looks like that so I'm not sure what's causing the problem. I designed that template, but must have broken something somewhere.....
thinkingforward Posted October 2, 2009 Author Posted October 2, 2009 Actually, looking at the default install it also sits left. Just a bit further on mine as I shortened the width of index.php.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.