PHP Classes

OpenCart Order Email Template: Generate OpenCart HTML message templates

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 103 All time: 9,767 This week: 123Up
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: 47
All time rank: 134511 in Hungary Hungary
Week rank: 164 Up3 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 (5)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:103
This week:0
All time:9,767
This week:123Up