Post by rajeshsangtiani » Wed May 23, 2018 8:11 pm

Hello All
I'm new in opencart & i'm using pharmacy template in opencart 3.0.2.0 .
kindly help me on the topic how to replace model name into product id in invoice & mail received by costumer from us

Thnaks

go to cialispascherfr24 pharmacy


New member

Posts

Joined
Mon Apr 09, 2018 4:07 am

Post by Qphoria » Wed May 23, 2018 11:34 pm

product_id is generally not something you should be using as an identifier. It's really only used by the database internally and by the cart as a guaranteed unique reference index. But if you delete a product and add the same product back.. the model will be the same but the product_id won't be. It's an automatic increment and shouldn't be relied on. So you may want to rethink your use of it.

That said, if you still want to go through with it...

1. EDIT: catalog/controller/mail/order.php

2. FIND:

Code: Select all

$order_product['model']
3. REPLACE WITH:

Code: Select all

$order_product['product_id']
You may also want to change the title "Model" to "Product ID" in the language files

1. EDIT (2 files):
catalog/language/en-gb/mail/order_add.php
catalog/language/en-gb/mail/order_edit.php

2. FIND:

Code: Select all

$_['text_model']            = 'Model';
3. REPLACE WITH:

Code: Select all

$_['text_model']            = 'Product ID';

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: gazih, OSWorX and 58 guests