mikrodoctor Posted July 27, 2004 Posted July 27, 2004 How do I change the formating in sections where I add text. For example I'm adding my text in policy, when I add my text there is no formating at all it's just one long paragraph. I'm trying to make a paragragh title a line break than my text.
Guest Posted July 27, 2004 Posted July 27, 2004 you have to use line breaks, etc the same as you have to do when programming with html. everything will be in one big paragraph unless you format it.
mikrodoctor Posted July 27, 2004 Author Posted July 27, 2004 That's the problem I'm not sure how to do that. Just hitting enter when I want a line break doesn't do anything.
241 Posted July 27, 2004 Posted July 27, 2004 <p>paragraph</p> No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
ausipodskins Posted August 7, 2004 Posted August 7, 2004 I'm trying to install the "low stock email" contribution into the catalog/checkout_process.php file (as per the instructions). when I insert the relevant code to send me an email message that stock is low, my order confirmation emails suddenly lose their formatting. ie they become one long continuous string of text and ignore the '/n' and 'r' commands. when I remove the low_stock_email code everything works perfectly. Put the code back in, and lose formatting. Here is the low_stock_email code that I am trying to use: // Version: 02-20-04 (BOF) 02/20/2004 - Low Stock Level Email Author: Emmett (yesUdo.com) and Jai (kynet.co.uk) $warning_stock = STOCK_REORDER_LEVEL; $current_stock = $stock_left; // Jai @ kynet.co.uk made the following change on 20-02-04 // Dynamic store url - Replaced [' http://www.YOURDOMAIN.com/] with [. HTTP_SERVER . DIR_WS_CATALOG . '] $low_stock_email = '<b>Low stock warning:</b> ' . $order->products[$i]['name'] . "n" . '<b>Model No.:</b> ' . $order->products[$i]['model'] . "n" . '<b>Quantity:</b> ' . $stock_left . "n" . '<b>Product URL:</b>' . HTTP_SERVER . DIR_WS_CATALOG . 'product_info.php?products_id='. $order->products[$i]['id'] . "nn" . '<b>Current Low order limit is ' . $warning_stock . ' units</b>'; $low_stock_subject = 'Low Stock Warning: ' . $order->products[$i]['name']; if ($current_stock <= $warning_stock) { tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $low_stock_subject, $low_stock_email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } // (EOF) 02/20/2004 - Low Stock Level Email Author: Emmett (yesUdo.com) and Jai (kynet.co.uk) this code is inserted immediately following: // do not decrement quantities if products_attributes_filename exists if ((DOWNLOAD_ENABLED != 'true') || (!$stock_values['products_attributes_filename'])) { $stock_left = $stock_values['products_quantity'] - $order->products[$i]['qty']; for the life of me I can't understand why this extra code is breaking the email layout. when I ran the entire .php file thru BBEdit, it said that the use of "<b>" needed to be defined as HTML and so on. I couldn't find where anyone else might have had similar problems.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.