Hey,
what i want to achieve is that i want to add an extra field in the totals page.
For example, i have added an extra field in each customer in database called "Customer_discount" and i want to show it in the minicart and cart page.
Any ideas on how to achieve this?
Thanks.
While the OC version has not been posted, you'd need to add your customer_discount field in your system/library/cart/cart.php file in the getProducts() method. Then, from your catalog/controller/checkout/cart.php file and catalog/controller/common/cart.php file, you could re-pull the field and output the results in your common/cart.tpl and checkout/cart.tpl files.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Yes sorry, my bad.straightlight wrote: ↑Tue Feb 18, 2020 3:48 amWhile the OC version has not been posted, you'd need to add your customer_discount field in your system/library/cart/cart.php file in the getProducts() method. Then, from your catalog/controller/checkout/cart.php file and catalog/controller/common/cart.php file, you could re-pull the field and output the results in your common/cart.tpl and checkout/cart.tpl files.
We 're talking about OC ver.: 2.3.0.2
Who is online
Users browsing this forum: No registered users and 4 guests