thanks
I've tweaked the VQMOD code and it works fine on 1.5.6.4.
I would like to make the SKU only show for wholesale group members. Can anyone suggest how to hide items on the invoice by customer group? If say the wholesale group ID = 2. Any ideas how to achieve it?
Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
Followed from this post: viewtopic.php?f=20&t=47839&p=467219#p503666 , in admin/controller/sale/order.php file, find:
Code: Select all
'telephone' => $order_info['telephone'],
Code: Select all
'customer_group_id' => $order_info['customer_group_id'],
find:
Code: Select all
<?php foreach ($orders as $order) { ?>
Code: Select all
<?php $customer_group_matches = array(1, 2, 3, 4, 5); ?>
Then, find:
Code: Select all
<td><b><?php echo $column_sku; ?></b></td>
Code: Select all
<td>
<?php if (in_array($order['customer_group_id'], $customer_group_matches)) { ?>
<b><?php echo $column_sku; ?></b>
<?php } ?>
</td>
Code: Select all
<td><?php echo $product['sku']; ?></td>
Code: Select all
<td>
<?php if (in_array($order['customer_group_id'], $customer_group_matches)) { ?>
<?php echo $product['sku']; ?>
<?php } ?>
</td>
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
Users browsing this forum: Amazon [Bot] and 203 guests