I'm trying to make a modification in the way quantities are displayed but have encountered a problem. I've tried to pass a new parameter to the cart controller for display in the cart page and cart widget in the header but I've been unable to find where the cart controller gets it's data. I'm unable to find any model for the cart and can't find the function called getProducts() (Where it's defined and the data retrieved specified.).
Does anyone have any pointers on where to find this function so I can pass the appropriate data to the controller? Also, why the cart controller doesn't have a model? (A little weird for an MVC-L framework.)
Extensions for affiliates (openCart 1, 2, 3):
Advanced Multi Level Affiliate System
Customer and Affiliate Accounts Combined into one Account
Affiliate Tracking with Coupons
Discount for Referred Customers - Order Total
Type Tracking Code
Affiliate Transactions for openCart 3
Affiliate Pack X - all modules with 40% discount
Here's your answer!
You can see in catalog/controller/checkout/cart.php at line no .58
$products = $this->cart->getProducts();
here it get data from cart library.
you can see in startup.php the cart object is set in registry
$this->registry->set('cart', new Cart\Cart($this->registry));
and accessible at controller as $this->cart
you can check all funtions related cart at below path
and make desired changes in data
Call us at : (+91) -8765210318 , Skype: live:carlmorgan.cedcommerce , Email: email@example.com
CedCommerece : Officail Opencart Partners
Opencart Services : www.cedcommerce/opencart-services.com
Sell On various Marketplace Integration : Opencart-Extensions
Users browsing this forum: No registered users and 7 guests