where in admin section you want to add product id?
or where you want it to be displayed.
Русское коммьюнити разработчиков OpenCart - myopencart.ru
some useful mods:
[Released] Orders and Comments AT-A-GLANCE, [Released] Prof. Invoice and Packingslip, [Released] Recently viewed
My commercial modules: [W]ebme Compare Products, [W]ebme Bought With This
To display the ID in the list of products.
In admin/controller/catalog/product.php
Find:
Code: Select all
$this->data['column_image'] = $this->language->get('column_image');
Code: Select all
$this->data['column_id'] = $this->language->get('column_id');
Find:
Code: Select all
// Column
Code: Select all
$_['column_id'] = 'ID';
Find:
Code: Select all
<td class="center"><?php echo $column_image; ?></td>
Code: Select all
<td class="center"><?php echo $column_id; ?></td>
Code: Select all
<tr class="filter">
<td></td>
<td></td>
Code: Select all
<td></td>
Code: Select all
<td class="center"><img src="<?php echo $product['image']; ?>" alt="<?php echo $product['name']; ?>" style="padding: 1px; border: 1px solid #DDDDDD;" /></td>
Code: Select all
<td class="center"><?php echo $product['product_id']; ?></td>
My version > 1.4.9.3
I'm using Open Cart 1.5.4.1 on http://www.importpieseauto.ro
you can play with it further and find and duplicate all sort,filter,pd. "name" strings - rename it to "id" and you can create also fiter and sort options. It is preaty extensive so I can forward my files if someones interested
using oc 1.5.6
Further question, how to add product date added to this mod?
Thanks
Selling Kristik - Jasa Foto Aura - Kapas Vapor - supplier baju anak -
Can you please post how to add filtering to the product id column. Thanks !bedo02 wrote:Hi. I would like to note - it works also with 1.4.8.
you can play with it further and find and duplicate all sort,filter,pd. "name" strings - rename it to "id" and you can create also fiter and sort options. It is preaty extensive so I can forward my files if someones interested
Donate here to show support if you think I have helped you today!
Opencart Documentation
I'm not programmer mybe i can help you. In admin/view/template/catalog/product_list.tplteszine wrote:Hi,
Can you show me how to make the ID column click-able like the Product name or Model column (click to sort ascending/descending) ?
Thank you.
use this code
Code: Select all
<td class="center"><?php if ($sort == 'p.product_id') { ?>
<a href="<?php echo $sort_id; ?>" class="<?php echo strtolower($order); ?>"><?php echo $column_id; ?></a>
<?php } else { ?>
<a href="<?php echo $sort_id; ?>"><?php echo $column_id; ?></a>
<?php } ?></td>
before
Code: Select all
$this->data['sort_name'] = $this->url->link('catalog/product', 'token=' . $this->session->data['token'] . '&sort=pd.name' . $url, 'SSL');
Code: Select all
$this->data['sort_id'] = $this->url->link('catalog/product', 'token=' . $this->session->data['token'] . '&sort=p.product_id' . $url, 'SSL');
Baju Muslim Baju Pria Baju Anak Baju Korea Sparepart Printer Baju Muslim JNE Surabaya
Users browsing this forum: No registered users and 167 guests