Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - FashionMart (SKU# FLEX-00008)

TOPIC: malfunction "quick look"

malfunction "quick look" 11 years 4 months ago #1624

by clicking on "quik look", the window pop-up if I decide to see related products and choose to see a product displays the entire page of the site with the product inside the pop-up window. this also happens on the demo site layout under category 2.
www.flexiblewebdesign.com/virtuemart-2-template-fashionmart/index.php?option=com_virtuemart&view=category&virtuemart_category_id=7&Itemid=475

Look at the pictures
Attachments:
The administrator has disabled public write access.

malfunction "quick look" 11 years 4 months ago #1630

Hi,

You made a very good point.Thanks for letting us know about it. Apparently we have missed it.
It should be fixed. I can give you the guarantee that this issue will be fixed in the next release.

Regards.
The administrator has disabled public write access.

malfunction "quick look" 11 years 4 months ago #1645

you should add the following script to the pop-up window and everything should work properly
script test="text/j-avascript" 
elem = new Array();
elem = document.getElementsByClassName("product-field product-field-type-R");
k=elem.length;
 for(i=0; i < elem.length; i++)
 {
  a=elem[i].getAttribute("href");
 
  b="javascript:window.parent.location.href ='"+a+"'";
  elem[i].setAttribute("href",b);
 
 
 }
 
/script
The administrator has disabled public write access.

malfunction "quick look" 11 years 4 months ago #1659

You are awesome.
Thanks for the tip.I will include your Lines in our VM Template in the next version /* by commenting your name at the beginning of your lines */

VM2.0.16 is on the way, so very soon new updates for all of our VM Templates are coming very soon though.

Regards.
The administrator has disabled public write access.

malfunction "quick look" 11 years 4 months ago #1671

I modified the script so that all the links are correct Both product details that link the image and the title link of the product
script test="text/j-avascript" 
elem = new Array();
elem = document.getElementsByTagName("a");
k=elem.length;
 for(i=0; i < elem.length; i++)
 {
  a=elem[i].getAttribute("href");
  b="javascript:window.parent.location.href ='"+a+"'";
  elem[i].setAttribute("href",b);
 
 }
 
/script
The administrator has disabled public write access.

malfunction "quick look" 11 years 4 months ago #1672

Hi Sandro,

i have similar issue in my puremart template. If i click on "add to cart" in the quick look view and after then on "continue shopping" or "view cart" link the two links open in same the popup window.

In which file did you add your skript or do you know where to add your skript for the cart popup?

Thanks
Peter
The administrator has disabled public write access.

malfunction "quick look" 11 years 4 months ago #1673

You need to put this script at the end of the file default.php and defaultlist.php directory category.
attention if you use a different template flexV2 ... then you have to insert it in the other files in the same directory
The administrator has disabled public write access.

malfunction "quick look" 11 years 4 months ago #1674

Thanks Sandro,

but your code did not work for me and the puremart template. If i add your code the quick look opens in a normal window and not in a popup box.

But i already found a solution for me. I only add target="_parent" to my two shopping-cart links and it work for me.

com_virtuemart/controllers/cart.php (line 117 andd 118)
The administrator has disabled public write access.

malfunction "quick look" 11 years 4 months ago #1678

Yes Peter,

you are right, even the simple target="_parent" solve the problem, and links will open the parent window instead of in the lightbox.

For the notification box that shows off after the product is added to cart (inside the lightbox) the same target="_parent" must be added to "continue shopping" and "show shopping cart" links. And those links are generated by this PHP file:

/components/com_virtuemart/controllers/cart.php

in 117th, 118th, 123rd and 128th lines. Basically as you mentioned; adding target="_parent" to all of these <a href....> element everything will be good to go.

BUT KEEP THIS IN MIND. When ever you upgrade your Virtuemart, this change will be retrieved, because cart.php will be overwritten, so you should do this change every time you upgrade/update your Virtuemart.


Regards.
Last Edit: 11 years 4 months ago by Support.
The administrator has disabled public write access.
Time to create page: 0.138 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