Hi,

Would it be possible to refresh/reload overlay block with cart message?
I am loading a view inside the block to show related products with add to cart buttons.
The idea is to show be able to add another product, keep the block open and just refresh the whole block.

Thank you.

Comments

loparr created an issue. See original summary.

subhojit777’s picture

Status: Active » Closed (won't fix)

Since you have installed this module, I guess every add to cart button will be ajaxified. So, when you click that button embedded inside the block, ideally what I expect is the block will just refresh itself - although I pretty sure that it is not going to be clean refresh, i.e. things can break. I haven't tried anything similar to it.

loparr’s picture

Hi,

Clicking an add to cart button inside overlay creates another overlay.
So basically I need to remove opening new overlay if button inside overlay box is clicked.

What I need is to refresh only the message (product xy was added to cart ) inside the overlay box.

subhojit777’s picture

In that case you can write JavaScript that closes the previous overlay, OR changes the message. You can refer APIs in ajax_commands().