将上面的文件保存为:intsall.ocmod.xml 进行安装
<?xml version="1.0" encoding="utf-8"?>
<modification>
<name>pedidos</name>
<code>order-id</code>
<version>1.0</version>
<author>Ariel Gonçalves</author>
<link></link>
<file path="catalog/model/checkout/order.php">
<operation>
<search><![CDATA[$this->event->trigger('pre.order.add', $data);]]></search>
<add position="after"><![CDATA[
$UltimoPedido = $this->db->query("SELECT * FROM `" . DB_PREFIX . "order` ORDER BY `" . DB_PREFIX . "order`.`order_id` DESC LIMIT 1");
if(isset($UltimoPedido->row['order_id'])){
$UltimoPedido = rand(2,6)+$UltimoPedido->row['order_id