AMurphy Posted February 3, 2005 Posted February 3, 2005 As the title says, I am a newb to OSCommerce and php in general. It is one of the new languages I am working on learning. Well, I have set up a site and have some bugs/enhancements that I need to deal with and could use some help. 1> How would I go about adding the customer's contact phone number to the order info page (/modules/shop/account_history_info.php) and order e-mail that is create when a purchase is made? 2> How long does it take for items to cycle off of the new products list? 3> How would I go about adjusting the width of the description text in the product description? (ex. Click here) 4> Currently, the index page shows new products. How would I go about replacing this with the categories? I told you I was a newb. Judging by my questions, I figured I reinforced that point. Thanks, in advance, for the help and patience. C u later, Aaron
niknakgroup Posted February 3, 2005 Posted February 3, 2005 1) You need to add <?php echo $order->customer['telephone']; ?> into includes/classes/email.php (I think?!) and catalog/account_history.php 2) As far as I know, they stay there until the next batch of new products goes in - could be wrong, dont quote me on it! 3) It looks as though you have your image width set to high - goto Admin-Configuration-Images and set image width to a lower value and your description should move over 4) In index.php find <?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?> and replace with <?php include(DIR_WS_BOXES . FILENAME_CATEGORIES); ?> - this will put your categories infobox in its place, you may need to tweak your categories box so that it looks better, rename it as categories1 or something else then change the refence to ]<?php include((DIR_WS_BOXES . 'categories1.php');?> - just be sure you dont fiddle too much with categories and overwrite the original or your left column will look a bit silly! Hope that helps some! :thumbsup: Please note - if I have suggested a contrib above, it doesnt mean it will work! Most of the contribs are not ones I've used, but may be useful for your particular problem.... Have you tried a refined search? Chances are your problem has already been dealt with elsewhere on the forums..... if (stumped == true) { return(square_one($start_over) } else { $random_query = tep_fetch_answer($forum_query) }
AMurphy Posted February 3, 2005 Author Posted February 3, 2005 1) You need to add <?php echo $order->customer['telephone']; ?> into includes/classes/email.php (I think?!) and catalog/account_history.php This one worked for the account_history_info.php file, but I couldn't find where to put it in the includes/classes/email.php. I'll keep looking for that one. 3) It looks as though you have your image width set to high - goto Admin-Configuration-Images and set image width to a lower value and your description should move over Not sure about this one... The values in the Admin-Configuration-Images section are... Small Image Width - 100 Small Image Height - 80 Heading Image Width - 57 Heading Image Height - 40 Subcategory Image Width - 100 Subcategory Image Height - 57 Calculate Image Size - true Image Required - true I am still working on testing #2 and 4. I'll let you know how they turn out. C u later, Aaron
AMurphy Posted February 3, 2005 Author Posted February 3, 2005 I have another question related to this.... In /modules/shop/checkout_process.php, I think I have found the code that controls the response e-mails. I am having a problem getting it to do what I want. In the following code... $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n"; I have added this line to the end of it to try to add the user's phone number to the e-mail... $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n"; $order->customer['telephone'], "\n\n"; It gives me a "Parse error: parse error, unexpected ',' in /home/firelane/public_html/modules/shop/checkout_process.php on line 249" error. What am I doing wrong? C u later, Aaron
Recommended Posts
Archived
This topic is now archived and is closed to further replies.