Close

Update Mini Cart

IvanSlater
10 years ago
#7428 Quote
Avatar
  • 89
How can I update mini cart information after added product to the cart?

The mini cart is updated only if page is refreshed.

Thanks!
Deni
10 years ago
#7431 Quote
Avatar
  • Moderator
  • 389
IvanSlater wrote:
How can I update mini cart information after added product to the cart?

The mini cart is updated only if page is refreshed.

Thanks!



Hello,

One of the main functions of the Ajax Cart plug-in is to update the mini shopping cart. If it does not work there are two possible things causing it:

1. Please be sure that the selectors in the admin part match your mark-up. You can see them in the admin site > Plugins > Ajax Cart >Ajax Cart Selectors Settings tab.

2. Also be sure you have not any javascript errors.

Best Regards !
Best Regards,
Mladen Staykov
Nop-Templates.com
IvanSlater
10 years ago
#7434 Quote
Avatar
  • 89
The mini cart is ok. The problem is my topcartlink div.
I have made some customization. Can you help modify the ajaxcart.js to get it done?

Thanks!

<div id="topcartlink">
    <div class="cart-title"></div>
    <div class="cart-qty">
        <div class="text-wrapper">
            <a href="/cart"><span class="qty">3</span><span class="text">item(s)</span><br /><span class="total"><b>$ 35,70</b></span></a>
        </div>
     </div>
</div>
Deni
10 years ago
#7438 Quote
Avatar
  • Moderator
  • 389
IvanSlater wrote:
The mini cart is ok. The problem is my topcartlink div.
I have made some customization. Can you help modify the ajaxcart.js to get it done?

Thanks!

<div id="topcartlink">
    <div class="cart-title"></div>
    <div class="cart-qty">
        <div class="text-wrapper">
            <a href="/cart"><span class="qty">3</span><span class="text">item(s)</span><br /><span class="total"><b>$ 35,70</b></span></a>
        </div>
     </div>
</div>



Hello,

I think your selectors are not correct. The Shopping Cart Menu Link Selector: setting must be ".header-links .cart-qty .qty".

You must match the selector in order to have everything working.

Unfortunately, we can not help you with modifying the javascript file.

Regards !
Best Regards,
Mladen Staykov
Nop-Templates.com
IvanSlater
10 years ago
#7441 Quote
Avatar
  • 89
Thank you! I fixed the CSS and now it is working, but I need two more helps!

1- The ajax content for .qty came like this: (1) or (2), etc, How can I remove the brackets?

2- Is possible to have order total returned, too? I need it.

Thanks!!!
IvanSlater
10 years ago
#7445 Quote
Avatar
  • 89
Ok, I did it with some JS hacks.

Solved.

Thanks!