Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change layout of product info in Order Email


TerryK

Recommended Posts

The Email that gets sent to my customers through checkout_process.php displays ordered products like this:

 

2 x ProductName (ProductAttribute) = USD $31.90

2 x Product2Name (Product2Attribute) = USD $31.90

 

I'd like to change the format so it looks like this:

 

ProductName

ProductAttribute

Qty: 2

 

Each:            US $    15.95

Item Total:    US $    31.90

__________________________________________

 

Product2Name

ProductAttribute

Qty: 2

 

Each:            US $    15.95

Item Total:    US $    31.90

__________________________________________

 

etc.

 

 

It's called into the Email with:

 

  $email_order .= EMAIL_SEPARATOR . "\n" .
     EMAIL_TEXT_PRODUCTS . "\n\n" .
                 $products_ordered .
                 EMAIL_SEPARATOR . "\n\n";

 

which is referenced above with:

 

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

 

Is the second piece of code the one I need to alter? If so, can anyone help me figure out how to get it layed out the way I want it?

 

TIA,

 

Terry

Terry Kluytmans

 

Contribs Installed: Purchase Without Account (PWA); Big Images, Product Availability, Description in Product Listing, Graphical Infobox, Header Tags Controller, Login Box, Option Type Feature, plus many layout changes & other mods of my own, like:

 

Add order total to checkout_shipment

Add order total to checkout_payment

Add radio buttons at checkout_shipping (for backorder options, etc.)

Duplicate Table Rate Shipping Module

Better Product Review Flow

 

* If at first you don't succeed, find out if there's a prize for the loser. *

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...