Post by PAULAOPRIS » Thu Aug 02, 2018 9:35 pm

Hello,
is there a way after clicking on "Add to cart" to open minicart from header automattically ?
Thanks
Opencart 2.1.0.2
Last edited by PAULAOPRIS on Wed Aug 08, 2018 5:45 pm, edited 1 time in total.

User avatar
New member

Posts

Joined
Thu Feb 02, 2017 6:37 pm

Post by straightlight » Thu Aug 02, 2018 9:49 pm

See if this solution provides what you need: viewtopic.php?t=86790 . It should also work for v2.x releases.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by DigitCart » Thu Aug 02, 2018 10:00 pm

Hi,
If you're using default theme, edit these files:

Code: Select all

catalog\view\theme\default\template\product\product.tpl
catalog\view\javascript\common.js
Find:

Code: Select all

$('#cart > ul').load('index.php?route=common/cart/info ul li');
Add after:

Code: Select all

$('#cart .dropdown-menu').dropdown('toggle');

My Extensions


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by PAULAOPRIS » Thu Aug 02, 2018 10:06 pm

DigitCart wrote:
Thu Aug 02, 2018 10:00 pm
Hi,
If you're using default theme, edit these files:

Code: Select all

catalog\view\theme\default\template\product\product.tpl
catalog\view\javascript\common.js
Find:

Code: Select all

$('#cart > ul').load('index.php?route=common/cart/info ul li');
Add after:

Code: Select all

$('#cart .dropdown-menu').dropdown('toggle');
Thank you for your help. Have a nice day! :)

User avatar
New member

Posts

Joined
Thu Feb 02, 2017 6:37 pm

Post by DigitCart » Thu Aug 02, 2018 10:44 pm

You're welcome!

My Extensions


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm


Post by PAULAOPRIS » Mon Aug 06, 2018 2:47 pm

Solved :
Adding this line: $('#cart').addClass("open") resolve the problem.
DigitCart wrote:
Thu Aug 02, 2018 10:44 pm
You're welcome!
Hello, sorry for bothering you . i've notice that , the popup is opening but the links( go to checkout and see cart is not working ) When i press on those links the minicart disappear.

User avatar
New member

Posts

Joined
Thu Feb 02, 2017 6:37 pm

Post by DigitCart » Mon Aug 06, 2018 5:19 pm

No problem, please try:

Code: Select all

$('#cart').addClass('open');
Instead of:

Code: Select all

$('#cart .dropdown-menu').dropdown('toggle');

My Extensions


User avatar
Active Member

Posts

Joined
Thu Jun 22, 2017 5:32 pm

Who is online

Users browsing this forum: Amazon [Bot], paulfeakins and 431 guests