Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Dropdown Shopping Cart(SKU# FLEX-00001)

TOPIC: refresh cart when using a lighbox

refresh cart when using a lighbox 9 years 1 month ago #12282

Hi There,

I'm using using joomla 3.4 and vm 3.06. I've install JCE media box for joomla 3.x. I've using the sublayout product details (products.php) overide editing the following code

echo JHtml::link($link.$ItemidStr,vmText::_ ( 'COM_VIRTUEMART_PRODUCT_DETAILS' ), array ('title' => $product->product_name, 'class' => 'product-details', 'class'=>'jcepopup' ) );

adding 'class'=>'jcepopup' opens the product details page in the jce media lightbox. This works fine, but if I add to cart, the dropdown module won't show an update until I hit refresh on the browser. Is there a way to update the cart module when I close the lightbox - or have it continuously pull for updates in the background? Sorry I'm working from a local sandbox so I can't direct you to the page for an example..
Last Edit: 9 years 1 month ago by Matthew Rosato.
The administrator has disabled public write access.

refresh cart when using a lighbox 9 years 1 month ago #12303

No there is no way, because the "lightbox" works with iframe and loads the product details page in an iframe.

Iframe works like a "browser TAB", because it is a different browser window. After opening something in a iframe, the parent window and "iframe window" becomes like separate browser window. You can't trigger an ajax loading between those 2 tabs, they work independently.

What you can do is; disable the "Modal Popup" within LightBox, so once somebody clicks the "add to cart" button, the page will be refreshed and it goes to shopping cart (since the whole page gets refreshed, then our dropdown shopping cart will also show the added product in the dropdown box) so there won't be any confusion to buyers.

Regards.
Last Edit: 9 years 1 month ago by Support.
The administrator has disabled public write access.
Time to create page: 0.058 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo