{"id":4566,"date":"2013-04-23T16:00:35","date_gmt":"2013-04-23T13:00:35","guid":{"rendered":"http:\/\/blog.belvg.com\/?p=4566"},"modified":"2025-06-26T21:29:29","modified_gmt":"2025-06-26T19:29:29","slug":"cart-in-prestashop","status":"publish","type":"post","link":"https:\/\/belvg.com\/blog\/cart-in-prestashop.html","title":{"rendered":"Cart in Prestashop"},"content":{"rendered":"\n<p style=\"text-align: center;\"><strong>Controller (CartController)<\/strong><\/p>\n<p>\/controllers\/front\/ CartController.php<\/p>\n<p>C&#1072;rtC&#1086;ntr&#1086;ller is the controller which is responsible for various manipulations with the future order (quote), for example: adding products to the shopping cart, defining discounts for future orders, defining price rules and taxes, calculating the cost of delivery and so forth. This controller is logical, i.e. it does not have the front end.&nbsp; The Order controller is responsible for the shopping cart front end, as well as the Block cart module.<\/p>\n<p>When the controller is initialized, the method C&#1072;rtC&#1086;ntr&#1086;ller : :init( ), which sets the passed parameters, is implemented in the first place:<!--more--><\/p>\n<pre class=\"lang:php decode:true\">$this-&gt;id_product = (int)Tools::getValue('id_product', null);\r\n\t\t$this-&gt;id_product_attribute = (int)Tools::getValue('id_product_attribute', Tools::getValue('ipa'));\r\n\t\t$this-&gt;customization_id = (int)Tools::getValue('id_customization');\r\n\t\t$this-&gt;qty = abs(Tools::getValue('qty', 1));\r\n\t\t$this-&gt;id_address_delivery = (int)Tools::getValue('id_address_delivery');<\/pre>\n<p>The method CartController::postProcess() next checks which PROCESS should be used and then implements the appropriate Process-method with the product that has been initialized with the method C&#1072;rtC&#1086;ntr&#1086;ller ::init( ).<\/p>\n<p><strong>The list of Process-methods of the controller:<\/strong><\/p>\n<ul>\n<li>&ndash; C&#1072;rtC&#1086;ntr&#1086;ller: :pr&#1086;&#1089;essCh&#1072;ngePr&#1086;du&#1089;tInC&#1072;rt() &ndash; add a product or change its quantity in the cart<\/li>\n<li>&ndash; C&#1072;rtC&#1086;ntr&#1086;ller: :pr&#1086;&#1089;essDeletePr&#1086;du&#1089;tInC&#1072;rt() &ndash; delete a product from the cart<\/li>\n<li>&ndash; C&#1072;rtC&#1086;ntr&#1086;ller: :pr&#1086;&#1089;essCh&#1072;ngePr&#1086;du&#1089;tAddressDelivery() &ndash; change the delivery address<\/li>\n<li>&ndash; C&#1072;rtC&#1086;ntr&#1086;ller: :pr&#1086;&#1089;essAll&#1086;wSeper&#1072;tedP&#1072;&#1089;k&#1072;ge() &ndash; allow to divide the order<\/li>\n<li>&ndash; C&#1072;rtC&#1086;ntr&#1086;ller: :pr&#1086;&#1089;essDupli&#1089;&#1072;tePr&#1086;du&#1089;t() &ndash; duplicate a product in the cart<\/li>\n<\/ul>\n<p style=\"text-align: center;\"><strong>Cl&#1072;ss-M&#1086;del (Cart)<\/strong><\/p>\n<p style=\"text-align: left;\">\/src\/Cart.php<\/p>\n<p style=\"text-align: left;\">C&#1072;rtC&#1086;ntr&#1086;ller interacts with its Cart class-model, which object is located in the singleton of Prestashop context: $this-&gt;context-&gt;cart<\/p>\n<p style=\"text-align: left;\">A cart&rsquo;s object can also be obtained from any other Prestashop php-script: Context::getContext()-&gt;cart.<\/p>\n<p style=\"text-align: left;\">And from the template: {Context::getContext()-&gt;cart}<\/p>\n<p style=\"text-align: left;\">The Cart class contains the complete logic of the shopping cart, in contrast to the controller, which only indicates the path of the logic execution to the Cart model.<\/p>\n<p style=\"text-align: left;\">Shopping Cart is a complex mechanism, which includes a variety of other entities that allow defining price rules, discounts, etc. Let&rsquo;s describe the main of them:<\/p>\n<p style=\"text-align: left;\"><strong>Cart related entities:<\/strong><\/p>\n<p style=\"text-align: left;\"><strong>&ndash; Cart Rules<\/strong> &ndash; is used to apply various pricing rules on the basis of specified conditions that are associated with discounts, delivery prices and gifts.&nbsp; It is configured in the administrative part of the store under the following path: Price Rules -&gt; Cart Rules. The rule will be applied if you enter a secret code (created by the admin) on the checkout page.<\/p>\n<p style=\"text-align: left;\">Configuring pricing rules:<\/p>\n<p style=\"text-align: left;\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter wp-image-8755 size-belvg-post-content\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2013\/04\/12-850x600.jpg\" alt=\"12 850x600\" width=\"850\" height=\"600\" title=\"Cart in Prestashop\"><\/p>\n<p style=\"text-align: center;\">Configuration page of the cart-rule information<\/p>\n<p style=\"text-align: left;\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter wp-image-8756 size-belvg-post-content\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2013\/04\/2-850x543.jpg\" alt=\"2 850x543\" width=\"850\" height=\"543\" title=\"Cart in Prestashop\"><\/p>\n<p align=\"center\">Configuration page of the cart-rule conditions<\/p>\n<p style=\"text-align: left;\" align=\"center\">&nbsp;&nbsp;<img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter wp-image-8757 size-full\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2013\/04\/3.jpg\" alt=\"3\" width=\"780\" height=\"298\" title=\"Cart in Prestashop\"><\/p>\n<p align=\"center\">Configuration page of the cart-rule actions (free delivery, discount or gift)<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: left;\" align=\"center\">The C&#1072;rtRule class is responsible for creating price rules. The following Cart class methods interact with C&#1072;rtRules:<\/p>\n<ul>\n<li>Cart:: &#1040;ddc&#1072;rtrule( $id_&#1089;&#1072;rt_rule) &ndash; adding price rules for a shopping cart<\/li>\n<li>Cart:: Rem&#1086;vec&#1072;rtrule( $id_&#1089;&#1072;rt_rule) &ndash; deleting price rules for a shopping cart<\/li>\n<\/ul>\n<p><strong>&ndash; Carriage<\/strong> &ndash; is used to determine the list of available delivery methods depending on the address.&nbsp; It is configured in the administrative part of the store under the following path: Shipping -&gt; Carriage.<\/p>\n<p>Creating a new delivery method:<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter wp-image-8758 size-full\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2013\/04\/4.jpg\" alt=\"4\" width=\"848\" height=\"1192\" title=\"Cart in Prestashop\"><\/p>\n<p style=\"text-align: center;\">Creating a new delivery method page<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: left;\">After creating a new delivery method it is necessary to specify price and weight limits under the Shipping -&gt; Price Ranges and Shipping -&gt; Weight Ranges sections, after which it will be available on the checkout page.<\/p>\n<p style=\"text-align: left;\">The following methods are used to create delivery methods for the shopping cart:<\/p>\n<ul>\n<li>Cart: :getC&#1072;rrierC&#1086;st( $id_&#1089;&#1072;rrier, $useT&#1072;x = true, country $def&#1072;ult_&#1089;&#1086;untry = null, $delivery_&#1086;pti&#1086;n = null) &ndash; determine the cost of the chosen shipping method.<\/li>\n<li>Cart: :isC&#1072;rrierInR&#1072;nge( $id_&#1089;&#1072;rrier, $id_z&#1086;ne) &ndash; verification of the availability of the shipping method for the selected region.<\/li>\n<\/ul>\n<p>The Carrier class is responsible for creating new shiping methods. You can get a list of available delivery methods as follows:<\/p>\n<ul>\n<li>Carrier::getAvailableCarrierList(Product $product, $id_warehouse, $id_address_delivery = null, $id_shop = null, $cart = null) &ndash; For a given {product, warehouse}, gets the carrier available<\/li>\n<li>Carrier:: getCarrierByReference($id_reference) &ndash; Get carrier using the reference id<\/li>\n<li>Carrier:: getCarriers($id_lang, $active = false, $delete = false, $id_zone = false, $ids_group = null, $modules_filters = self::PS_CARRIERS_ONLY) &ndash; Get all carriers in a given language<\/li>\n<li>Carrier:: getCarriersForOrder($id_zone, $groups = null, $cart = null) &ndash; Get all carriers in a given order<\/li>\n<\/ul>\n<p><strong>&ndash; Taxes<\/strong> &ndash; defining and calculating taxes for the future order. Taxes depend on the customer location. They are configured in the administrative part under the following path: Localization -&gt; Taxes (creating taxes) and Localization -&gt; Tax Rules (setting up taxes rules).<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter wp-image-8759 size-full\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2013\/04\/5.jpg\" alt=\"5\" width=\"648\" height=\"344\" title=\"Cart in Prestashop\"><\/p>\n<p align=\"center\">Creating a new tax<\/p>\n<p style=\"text-align: left;\" align=\"center\"><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter wp-image-8760 size-full\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2013\/04\/6.jpg\" alt=\"6\" width=\"694\" height=\"436\" title=\"Cart in Prestashop\"><\/p>\n<p style=\"text-align: center;\" align=\"center\">Configuring tax options<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>The basic methods that work with taxes:<\/li>\n<li>Cart:: getTaxesAverageUsed($id_cart) &ndash;&nbsp; obtains the average cost of delivery for the current quote (future order)<\/li>\n<li>Tax:: getCarrierTaxRate($id_carrier, $id_address = null) &ndash; Returns the carrier tax rate<\/li>\n<li>Tax:: getProductEcotaxRate($id_address = null) &ndash; Returns the ecotax tax rate<\/li>\n<li>Tax:: getProductTaxRateViaRules($id_product, $id_country, $id_state, $zipcode) &ndash; Return the product tax rate using the tax rules system<\/li>\n<li>Tax:: getTaxIdByName($tax_name, $active = 1) &ndash; Return the tax id associated to the specified name<\/li>\n<li>ax:: getTaxes($id_lang = false, $active_only = true) &ndash; Get all available taxes<\/li>\n<\/ul>\n<p>The final order amount is calculated by the following method:<\/p>\n<pre class=\"lang:php decode:true\">Cart:: getOrderTotal($with_taxes = true, $type = Cart::BOTH, $products = null, $id_carrier = null, $use_cache = true)<\/pre>\n<p>This takes into account the tax rules, the cost of delivery, discounts and so on.<\/p>\n<p style=\"text-align: center;\"><strong>Standard modules<\/strong><\/p>\n<p><strong>&nbsp;&ndash; Cart Block<\/strong>. This module displays the current status of the shopping cart on the page header. The Top hook is used to display this block in the module.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"lazy aligncenter wp-image-8761 size-belvg-post-content\" src=\"https:\/\/belvg.com\/wp-content\/uploads\/2019\/06\/pixel.png\" data-src=\"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2013\/04\/7-850x262.jpg\" alt=\"7 850x262\" width=\"850\" height=\"262\" title=\"Cart in Prestashop\"><\/p>\n<p style=\"text-align: center;\" align=\"center\"><strong>Standard hooks<\/strong><\/p>\n<p style=\"text-align: left;\" align=\"center\">&ndash; actionCartSave &ndash; this hook is implemented whenever there is any change in the shopping cart (adding\/changing products in the shopping cart)<br>\n&ndash; displayCarrierList &ndash; this hook can be used to display the content in the list of delivery methods<\/p>\n<p style=\"text-align: left;\" align=\"center\">There is also the possibility of using auto-generated hooks.<\/p>\n<p style=\"text-align: left;\" align=\"center\"><strong>Auto-generated hooks:<\/strong><\/p>\n<p style=\"text-align: left;\" align=\"center\">&ndash; actionObjectCartAddBefore<br>\n&ndash; actionObjectCartAddAfter<br>\n&ndash; actionObjectCartDeleteBefore<br>\n&ndash; actionObjectCartDeleteAfter<br>\n&ndash; actionObjectCartUpdateBefore<br>\n&ndash; actionObjectCartUpdateAfter<\/p>\n<p style=\"text-align: left;\" align=\"center\">These hooks are not used directly in the Cart class. They are generated by the Obje&#1089;tM&#1086;del class, performing standard database operations (CRUD), from which all class-models are inherited, including the Cart class.<\/p>\n<p style=\"text-align: left;\" align=\"center\">Looking for an experienced team to <a href=\"https:\/\/belvg.com\/prestashop-support\" target=\"_blank\" rel=\"noopener\">improve<\/a> your PrestaShop website and enrich its functionality? We are more than happy to help.<\/p>\n\n","protected":false},"excerpt":{"rendered":"Controller (CartController) \/controllers\/front\/ CartController.php C&#1072;rtC&#1086;ntr&#1086;ller is the controller which is responsible for various manipulations with &#8230;","protected":false},"author":12,"featured_media":8754,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"image","meta":{"_acf_changed":false,"footnotes":""},"categories":[15,300],"tags":[445],"class_list":["post-4566","post","type-post","status-publish","format-image","has-post-thumbnail","hentry","category-prestashop","category-prestashop-guide","tag-prestashop","post_format-post-format-image"],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"Detailed description of controllers, methods and classes which are related to Prestashop shopping cart system.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Aliaksandr Simonchik\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/belvg.com\/blog\/cart-in-prestashop.html\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/cart-in-prestashop.html#article\",\"name\":\"Cart in Prestashop | BelVG Blog\",\"headline\":\"Cart in Prestashop\",\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2013\\\/04\\\/presta-3.jpg\",\"width\":682,\"height\":170},\"datePublished\":\"2013-04-23T16:00:35+02:00\",\"dateModified\":\"2025-06-26T21:29:29+02:00\",\"inLanguage\":\"en-US\",\"commentCount\":4,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/cart-in-prestashop.html#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/cart-in-prestashop.html#webpage\"},\"articleSection\":\"Prestashop, Prestashop Guide, Prestashop, Image\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/cart-in-prestashop.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"name\":\"Prestashop\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"position\":2,\"name\":\"Prestashop\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop\\\/prestashop-guide#listItem\",\"name\":\"Prestashop Guide\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop\\\/prestashop-guide#listItem\",\"position\":3,\"name\":\"Prestashop Guide\",\"item\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop\\\/prestashop-guide\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/cart-in-prestashop.html#listItem\",\"name\":\"Cart in Prestashop\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop#listItem\",\"name\":\"Prestashop\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/cart-in-prestashop.html#listItem\",\"position\":4,\"name\":\"Cart in Prestashop\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/category\\\/prestashop\\\/prestashop-guide#listItem\",\"name\":\"Prestashop Guide\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik#author\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik\",\"name\":\"Aliaksandr Simonchik\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/cart-in-prestashop.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6553917a81b1da7866b8b875368df6cbbec56413c3438694df8539de7fb092c0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Aliaksandr Simonchik\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/cart-in-prestashop.html#webpage\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/cart-in-prestashop.html\",\"name\":\"Cart in Prestashop | BelVG Blog\",\"description\":\"Detailed description of controllers, methods and classes which are related to Prestashop shopping cart system.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/cart-in-prestashop.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/author\\\/alex-simonchik#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/wp-content\\\/uploads\\\/2013\\\/04\\\/presta-3.jpg\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/cart-in-prestashop.html\\\/#mainImage\",\"width\":682,\"height\":170},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/cart-in-prestashop.html#mainImage\"},\"datePublished\":\"2013-04-23T16:00:35+02:00\",\"dateModified\":\"2025-06-26T21:29:29+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/belvg.com\\\/blog\\\/\",\"name\":\"BelVG Blog\",\"description\":\"Magento and Prestashop articles\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/belvg.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Cart in Prestashop | BelVG Blog","description":"Detailed description of controllers, methods and classes which are related to Prestashop shopping cart system.","canonical_url":"https:\/\/belvg.com\/blog\/cart-in-prestashop.html","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/belvg.com\/blog\/cart-in-prestashop.html#article","name":"Cart in Prestashop | BelVG Blog","headline":"Cart in Prestashop","author":{"@id":"https:\/\/belvg.com\/blog\/author\/alex-simonchik#author"},"publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2013\/04\/presta-3.jpg","width":682,"height":170},"datePublished":"2013-04-23T16:00:35+02:00","dateModified":"2025-06-26T21:29:29+02:00","inLanguage":"en-US","commentCount":4,"mainEntityOfPage":{"@id":"https:\/\/belvg.com\/blog\/cart-in-prestashop.html#webpage"},"isPartOf":{"@id":"https:\/\/belvg.com\/blog\/cart-in-prestashop.html#webpage"},"articleSection":"Prestashop, Prestashop Guide, Prestashop, Image"},{"@type":"BreadcrumbList","@id":"https:\/\/belvg.com\/blog\/cart-in-prestashop.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/belvg.com\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","name":"Prestashop"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","position":2,"name":"Prestashop","item":"https:\/\/belvg.com\/blog\/category\/prestashop","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop\/prestashop-guide#listItem","name":"Prestashop Guide"},"previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop\/prestashop-guide#listItem","position":3,"name":"Prestashop Guide","item":"https:\/\/belvg.com\/blog\/category\/prestashop\/prestashop-guide","nextItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/cart-in-prestashop.html#listItem","name":"Cart in Prestashop"},"previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop#listItem","name":"Prestashop"}},{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/cart-in-prestashop.html#listItem","position":4,"name":"Cart in Prestashop","previousItem":{"@type":"ListItem","@id":"https:\/\/belvg.com\/blog\/category\/prestashop\/prestashop-guide#listItem","name":"Prestashop Guide"}}]},{"@type":"Organization","@id":"https:\/\/belvg.com\/blog\/#organization","name":"BelVG Blog","description":"Magento and Prestashop articles","url":"https:\/\/belvg.com\/blog\/"},{"@type":"Person","@id":"https:\/\/belvg.com\/blog\/author\/alex-simonchik#author","url":"https:\/\/belvg.com\/blog\/author\/alex-simonchik","name":"Aliaksandr Simonchik","image":{"@type":"ImageObject","@id":"https:\/\/belvg.com\/blog\/cart-in-prestashop.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/6553917a81b1da7866b8b875368df6cbbec56413c3438694df8539de7fb092c0?s=96&d=mm&r=g","width":96,"height":96,"caption":"Aliaksandr Simonchik"}},{"@type":"WebPage","@id":"https:\/\/belvg.com\/blog\/cart-in-prestashop.html#webpage","url":"https:\/\/belvg.com\/blog\/cart-in-prestashop.html","name":"Cart in Prestashop | BelVG Blog","description":"Detailed description of controllers, methods and classes which are related to Prestashop shopping cart system.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/belvg.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/belvg.com\/blog\/cart-in-prestashop.html#breadcrumblist"},"author":{"@id":"https:\/\/belvg.com\/blog\/author\/alex-simonchik#author"},"creator":{"@id":"https:\/\/belvg.com\/blog\/author\/alex-simonchik#author"},"image":{"@type":"ImageObject","url":"https:\/\/belvg.com\/blog\/wp-content\/uploads\/2013\/04\/presta-3.jpg","@id":"https:\/\/belvg.com\/blog\/cart-in-prestashop.html\/#mainImage","width":682,"height":170},"primaryImageOfPage":{"@id":"https:\/\/belvg.com\/blog\/cart-in-prestashop.html#mainImage"},"datePublished":"2013-04-23T16:00:35+02:00","dateModified":"2025-06-26T21:29:29+02:00"},{"@type":"WebSite","@id":"https:\/\/belvg.com\/blog\/#website","url":"https:\/\/belvg.com\/blog\/","name":"BelVG Blog","description":"Magento and Prestashop articles","inLanguage":"en-US","publisher":{"@id":"https:\/\/belvg.com\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"4566","title":"Cart in Prestashop | #site_title","description":"Detailed description of controllers, methods and classes which are related to Prestashop shopping cart system.","keywords":null,"keyphrases":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-11-03 18:38:13","updated":"2026-11-03 18:38:13"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/category\/prestashop\" title=\"Prestashop\">Prestashop<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/belvg.com\/blog\/category\/prestashop\/prestashop-guide\" title=\"Prestashop Guide\">Prestashop Guide<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tCart in Prestashop\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/belvg.com\/blog\/"},{"label":"Prestashop","link":"https:\/\/belvg.com\/blog\/category\/prestashop"},{"label":"Prestashop Guide","link":"https:\/\/belvg.com\/blog\/category\/prestashop\/prestashop-guide"},{"label":"Cart in Prestashop","link":"https:\/\/belvg.com\/blog\/cart-in-prestashop.html"}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/4566","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/comments?post=4566"}],"version-history":[{"count":11,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/4566\/revisions"}],"predecessor-version":[{"id":29616,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/posts\/4566\/revisions\/29616"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media\/8754"}],"wp:attachment":[{"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/media?parent=4566"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/categories?post=4566"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/belvg.com\/blog\/wp-json\/wp\/v2\/tags?post=4566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}