{"id":4755,"date":"2018-07-23T16:09:43","date_gmt":"2018-07-23T10:39:43","guid":{"rendered":"https:\/\/www.hiddentechies.com\/blog\/?p=4755"},"modified":"2020-10-09T18:52:24","modified_gmt":"2020-10-09T13:22:24","slug":"how-add-dropdown-mini-cart-prestashop","status":"publish","type":"post","link":"https:\/\/www.hiddentechies.com\/blog\/prestashop\/how-add-dropdown-mini-cart-prestashop\/","title":{"rendered":"How to add dropdown mini-cart in Prestashop 1.7"},"content":{"rendered":"<p>In Prestashop 1.7, mini cart doesn&#8217;t support dropdown cart. Because Prestashop 1.7 removed this feature which is really need for any ecommerce store. So, today I&#8217;m going to show you how can we add dropdown cart with hover. To avail this feature just follow this simple steps.<\/p>\n<div style=\"display: block; float: left; width: 100%; padding: 30px 0; background: black; border-radius: 5px; margin: 0 0 25px 0;\">\n<p style=\"text-align: center;\"><a style=\"color: #fff; font-size: 28px; font-weight: 600;\" href=\"https:\/\/www.hiddentechies.com\/blog\/ecommerce-tips\/why-choose-premium-prestashop-themes\/\" target=\"_blank\" rel=\"noopener noreferrer\"> Why to Choose Our Premium Prestashop Themes <\/a><\/p>\n<\/div>\n<p class=\"ht-sub-heading\">Step 1:<\/p>\n<p>Go to in your theme directory<\/p>\n<p><strong>\/module\/ps_shoppingcart\/ps_shoppingcart.tpl<\/strong><\/p>\n<p>You need to put below code after &lt;div class=&#8221;blockcart cart-preview&gt; which is below the &lt;div id=&#8221;_desktop_cart&#8221;&gt;<\/p>\n<pre class=\"lang:default decode:true \">{if $cart.products_count &gt; 0}\r\n            &lt;div class=\"ht_cart cart-hover-content\"&gt;\r\n                &lt;ul&gt;\r\n                    {foreach from=$cart.products item=product}\r\n                        &lt;li class=\"cart-wishlist-item\"&gt;\r\n                            {include 'module:ps_shoppingcart\/ps_shoppingcart-product-line.tpl' product=$product}\r\n                        &lt;\/li&gt;\r\n                    {\/foreach}\r\n                &lt;\/ul&gt;\r\n                &lt;div class=\"cart-summary\"&gt;\r\n                    &lt;div class=\"cart-subtotals\"&gt;\r\n                        {foreach from=$cart.subtotals item=\"subtotal\"}\r\n                            &lt;div class=\"{$subtotal.type}\"&gt;\r\n                                &lt;span class=\"label\"&gt;{$subtotal.label}&lt;\/span&gt;\r\n                                &lt;span class=\"value\"&gt;{$subtotal.value}&lt;\/span&gt;\r\n                            &lt;\/div&gt;\r\n                        {\/foreach}\r\n                    &lt;\/div&gt;\r\n                    &lt;div class=\"cart-total\"&gt;\r\n                        &lt;span class=\"label\"&gt;{$cart.totals.total.label}&lt;\/span&gt;\r\n                        &lt;span class=\"value\"&gt;{$cart.totals.total.value}&lt;\/span&gt;\r\n                    &lt;\/div&gt;\r\n                &lt;\/div&gt;\r\n                &lt;div class=\"cart-wishlist-action\"&gt;\r\n                    &lt;a class=\"cart-wishlist-viewcart\" href=\"{$cart_url}\"&gt;view cart&lt;\/a&gt;\r\n                    &lt;a class=\"cart-wishlist-checkout\" href=\"{$urls.pages.order}\"&gt;{l s='Check Out' d='Shop.Theme.Actions'}&lt;\/a&gt;\r\n                &lt;\/div&gt;\r\n            &lt;\/div&gt; \r\n        {else}\r\n            &lt;div class=\"ht_cart cart-hover-content\"&gt;\r\n                &lt;p class=\"no-item\"&gt;There is no itme in your cart.&lt;\/p&gt;\r\n            &lt;\/div&gt;\r\n  {\/if}<\/pre>\n<hr \/>\n<p class=\"ht-sub-heading\">Step 2:<\/p>\n<p>Go to in your theme directory<\/p>\n<p><strong>\/module\/ps_shoppingcart\/ps_shoppingcart-product-line.tpl<\/strong><\/p>\n<p>Now, you have to put below code:<\/p>\n<pre class=\"lang:default decode:true \">{if $product.images}\r\n    &lt;div class=\"minicart-img\"&gt;\r\n        &lt;img src=\"{$product.images.0.bySize.small_default.url}\" title=\"{$product.name}\"\/&gt;\r\n    &lt;\/div&gt;\r\n{\/if}<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4779\" src=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/07\/mini-cart-hover-prestashop-1.7.png\" alt=\"prestashop banner\" width=\"1366\" height=\"654\" srcset=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/07\/mini-cart-hover-prestashop-1.7.png 1366w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/07\/mini-cart-hover-prestashop-1.7-300x144.png 300w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/07\/mini-cart-hover-prestashop-1.7-768x368.png 768w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/07\/mini-cart-hover-prestashop-1.7-1024x490.png 1024w, https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/2018\/07\/mini-cart-hover-prestashop-1.7-800x383.png 800w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/p>\n<hr \/>\n<p class=\"ht-sub-heading\">Step 3:<\/p>\n<p>Now, you have to edit css style to give it better look. \ud83d\ude42<\/p>\n<p>If you still have any doubts, feel free to ask in comments and we\u2019ll reply as soon as possible.<\/p>\n<div class=\"angwp_12010 _ning_cont _ning_hidden _ning_outer _align_center responsive\" data-size=\"custom\" data-bid=\"12010\" data-aid=\"0\" style=\"max-width:800px; width:100%;height:inherit;\"><div class=\"_ning_label _left\" style=\"\"><\/div><div class=\"_ning_inner\" style=\"\"><a href=\"https:\/\/www.hiddentechies.com\/blog?_dnlink=12010&t=1776864277\" class=\"strack_cli _ning_link\" target=\"_blank\">&nbsp;<\/a><div class=\"_ning_elmt\"><img decoding=\"async\" src=\"https:\/\/www.hiddentechies.com\/blog\/wp-content\/uploads\/angwp\/items\/12010\/Banner-2.png\" \/><\/div><\/div><\/div><div class=\"clear\"><\/div>","protected":false},"excerpt":{"rendered":"<p>In Prestashop 1.7, mini cart doesn&#8217;t support dropdown cart. Because Prestashop 1.7 removed this feature which is really need for any ecommerce store. So, today I&#8217;m going to show you how can we add dropdown cart with hover. To avail this feature just follow this simple steps. Why to Choose Our Premium Prestashop Themes Step&#8230; <\/p>\n<div class=\"actions\"><a href=\"https:\/\/www.hiddentechies.com\/blog\/prestashop\/how-add-dropdown-mini-cart-prestashop\/\">Continue Reading<\/a><\/div>\n","protected":false},"author":1,"featured_media":4820,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[221,222,2139,2],"tags":[313,350,348,349,347],"_links":{"self":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/4755"}],"collection":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/comments?post=4755"}],"version-history":[{"count":25,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/4755\/revisions"}],"predecessor-version":[{"id":10566,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/posts\/4755\/revisions\/10566"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/media\/4820"}],"wp:attachment":[{"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/media?parent=4755"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/categories?post=4755"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hiddentechies.com\/blog\/wp-json\/wp\/v2\/tags?post=4755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}