OpenCart - Insert random code into oc_order_product and display in confirmation email - 2.3.0.2

Job ID: 31270318

Budget: $10 – $30 USD

When a customer places an order, I want to insert a random code into oc_order_product for each product ordered.

It must store in the database when the order is placed, and also show in the confirmation email table.

Vanilla OpenCart 2.3.0.2

The random code must be 32 characters, random letters and numbers, uppercase and lowercase. Must not have any duplicates in database.

Quick project for anybody familiar with OpenCart MVC
Related categories: PHP JavaScript MySQL HTML Open Cart