Hi,
I need a way of showing the price WITH tax for one customer group and WITHOUT for another.
i.e. Consumers will see the price inclusive of VAT and Trade will see the price on the store without VAT (However will still be charged VAT at the checkout).
Need this quite urgently, please point me to a mod that will do it!
Thanks
- Lea
A quick change that I did to one of the stores I've made:
NOTE: You must edit the "index.php" file
Add this code:
before "//Language" line
NOTE: Change "2" from "if ($customer_get_group == 2 ) {" with your customer group id.
NOTE: You must edit the "index.php" file
Add this code:
Code: Select all
// Taxes selector
if (isset($session->data['customer_id'])) {
$customer_get_group_querry = $db->query("SELECT * FROM " . DB_PREFIX . "customer WHERE customer_id = '" . (int)$session->data['customer_id'] . "' AND status = '1'");
$customer_get_group = $customer_get_group_querry->row['customer_group_id'];
if ($customer_get_group == 2 ) {
$config->set('config_tax', 0);
}
}
NOTE: Change "2" from "if ($customer_get_group == 2 ) {" with your customer group id.
Opencart Templates, Modules, Themes & Custom Development | ShopThemer
Using the extension provided above, based on the described screenshots from the extension page, would also remove the ability to users to use the default customer group ID since check boxes could now be used. We need to be reminded that the customer group does use a default value during startup and may also interfere with the internal APIs for registered customers.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Hello,
You can show the price WITH tax for one customer group and WITHOUT for another
by using the below-mentioned extensions:
1. Product without the tax for specific groups ( VQMOD)
2. Tax for Customers Groups
3. Multiple Taxes module
You can show the price WITH tax for one customer group and WITHOUT for another
by using the below-mentioned extensions:
1. Product without the tax for specific groups ( VQMOD)
2. Tax for Customers Groups
3. Multiple Taxes module
Who is online
Users browsing this forum: No registered users and 39 guests