PHP Classes

OpenCart Order Email Template: Generate OpenCart HTML message templates

Recommend this page to a friend!
  Info   View files Example   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 101 This week: 1All time: 9,755 This week: 89Up
Version License PHP version Categories
oc-template-checker 1.0.0Public Domain5HTML, Email, PHP 5, E-Commerce
Description 

Author

This package can generate OpenCart HTML message templates.

It can connect to a OpenCart database and retrieve the details of an order with a given order number.

The class can generate the HTML for the order notification email.

Innovation Award
PHP Programming Innovation award nominee
November 2016
Number 10


Prize: One subscription to the PDF edition of the PHP Architect magazine
OpenCart is a well known PHP shopping cart solution.

This class can t generate and send email message from templates with the details of an OpenCart order.

Manuel Lemos
Picture of Istvan Dobrentei
  Performance   Level  
Name: Istvan Dobrentei <contact>
Classes: 12 packages by
Country: Hungary Hungary
Age: 46
All time rank: 134711 in Hungary Hungary
Week rank: 91 Up2 in Hungary Hungary Up
Innovation award
Innovation award
Nominee: 9x

Winner: 1x

Example

<?php
require_once 'Class_LetterTester.php';

$orderId = 473; //here set an existing order number

$test = new LetterTester();
$test->generateOrderEmail($orderId); //see the output folder and change the template
?>


Details

Purpose: Change and test the default and any Opencart (opensource webshop system) order notification email template without make a new order again. Benefit: The time is money and your life could be easier. Usage: Create a brand new folder under your Opencart root directory. for example: test Copy the four files and the output folder to it. Select an existing order number from your webshop or create a new order using your webshop interface like a customer. Set the order number in start.php file and run using the command line interface. See the result in the output folder. (generated html file) Open the file in a webbrowser and change it as you want.

  Files folder image Files  
File Role Description
Plain text file Class_Currency.php Class Class source
Plain text file Class_LetterTester.php Class Class source
Plain text file Class_ScriptBase.php Class Class source
Accessible without login Plain text file README.txt Doc. Documentation
Accessible without login Plain text file start.php Example Example script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:101
This week:1
All time:9,755
This week:89Up