Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Order process file location


sandwick

Recommended Posts

where is the file that generates the email listed below.... I need to modify the format ! This email is generated and sent to the customer what they just ordered.

 

Any Help would be appreciated. :lol:

 

Thanks !!!

 

 

 

Subject Line has ORDER PROCESS

 

Sarreid Ltd

------------------------------------------------------

Order Number: 31

Date Ordered: Monday 25 August, 2008

 

PO Company Name: Best of BOHICA PO Number:

 

Products

------------------------------------------------------

2 x Gothic 3-Light Chandelier (17727) = $315.00

1 x Sir Alexander Arm Chair Pine (20638) = $209.30

1 x Cornucopia Wall Panel Right (23309R) = $122.50

1 x Writing Desk Cabinet (7630041) = $927.50

3 x Eight Drawer Sideboard With Shelf (7610016) = $3,349.50

1 x Autumn Floral 2 Tier Lamp Stand (15066) = $171.50

1 x Chateau Valuables Chest (10141) = $80.50

------------------------------------------------------

* Merchandise Total: $5,175.80

 

Link to comment
Share on other sites

catalog/checkout_process.php

 

Rob

Rob Bell - Inspired Graphix

Customising osCommerce in Australia, and the world!

View my profile for web and email links.

 

I'm sorry, but i cannot offer Free support via PM etc, and osCommerce forums prohibit me from putting any reference to paid support in my signauture.

However viewing my profile may provide links to my website or something like that which you may find useful.

Link to comment
Share on other sites

I found the code (thanks ROB) that I should be modifing and I cannot get the data to line up, can someone give me an idea how I can line up the email being sent ...

 

 

$products_ordered .= $order->products[$i]['model']  . '		  ' . $order->products[$i]['name'] . '		   ' . $order->products[$i]['qty'] . ' = ' . $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']) . $products_ordered_attributes . "\n";

 

Results now are ...

 

Products

------------------------------------------------------

Item Number Description Quantity Price

------------------------------------------------------

21602 Highlands Iron Scroll Bed Queen 1 = $556.50

19389-1 Warwick Mini Bowfront Side Table Oak 1 = $279.30

7610005 French Style Nightstands Pair 1 = $665.00

20454 Chinese Room Divider 1 = $875.00

21925 Round Mirror 1 = $357.00

------------------------------------------------------

* Merchandise Total: $2,732.80

 

Results should look like

 

email.jpg

 

 

any help would be appreciated !

 

 

// Larry

Link to comment
Share on other sites

HERE is the ANSWER

 

Using the sprintf function in php will allow your email to look formatted !!!

 

some examples below

 

$model = sprintf("%-10s", $order->products[$i]['model']); // left justify
$name  = sprintf("%-40s", $order->products[$i]['name']);  // left justify
$qty   = sprintf("%3s",   $order->products[$i]['qty']);	// right justify
$fp	= sprintf("%12s",  $currencies->display_price($order->products[$i]['final_price']) );
$ep	= sprintf("%12s",  $currencies->display_price($ext_price));

 

 

Formatting the vars before sending them to email_orders will allow your email to look like images in pryor listing.

 

 

// Larry

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...