no pop upimage within bikestore, how?

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon Nov 19, 2012 10:22 pm
Reply with quote
Report this post
hi there,

trying to find a same solution for the bikestore template, as described here.

http://www.gavick.com/forums/140/solved ... 14678.html

looking at the different attempts that have been posted... is there a quick, safe solution for the bikestore? i don't need popup images....

thanx
emel
User avatar
Platinum Boarder

GK User
Tue Nov 20, 2012 1:05 am
Reply with quote
Report this post
Hi

If you don't need the popup image on VM Category layout, please open ../templates/gk_bikestore/html/com_virtuemart/category/default.php

find this fragment

Code: Select all
<?php /** @todo make image popup */
echo $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',true,'class="modal"');
 ?>


change to

Code: Select all
<?php /** @todo make image popup */
echo $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',false,'class="modal"');
 ?>


If you want to link the image to the product, you can use this instead:

Code: Select all
<a href="<?php echo $product->link ?>" title="<?php echo $product->product_name ?>"><?php echo $product->images[0]->displayMediaThumb('class="browseProductImage" border="0" title="'.$product->product_name.'" ',false,'class="modal"');
 ?></a>


Cheers
User avatar
Platinum Boarder

GK User
Tue Nov 20, 2012 8:50 am
Reply with quote
Report this post
is this also for the detailed product view within VM, because this is the place where i don't need the popup.
User avatar
Platinum Boarder

GK User
Tue Nov 20, 2012 10:51 am
Reply with quote
Report this post
emel wrote:is this also for the detailed product view within VM, because this is the place where i don't need the popup.


No. this will only effect category layout page.
If you need on product detail i think it can be disable by VM settings... let me check
User avatar
Platinum Boarder

GK User
Tue Nov 20, 2012 11:48 am
Reply with quote
Report this post
I thought you could set this on VM settings, but apparently not :pinch:

So open this file: ../templates/gk_bikestore/html/com_virtuemart/productdetails/default.php

find this fragment:

Code: Select all
<div class="main-image"> <?php echo str_replace('<a', '<a class="modal"', $this->product->images[0]->displayMediaFull('class="product-image"',true,"class='modal'",true)); ?> </div>


replace with

Code: Select all
<div class="main-image"> <?php echo str_replace('<a', '<a class="modal"', $this->product->images[0]->displayMediaFull('class="product-image"',false,"class='modal'",true)); ?> </div>


Them go to template manager > GK Bikestore parameters > advanced settings and enable the use of css override.
Next open ../templates/gk_bikestore/css/override.css and add this line on this file.

Code: Select all
.productDetails .vmZoom{background-image: none!important}


Cheers
User avatar
Platinum Boarder

GK User
Fri Nov 23, 2012 10:17 pm
Reply with quote
Report this post
hi there,
almost there, unfortunately the zoom image is still there, slightly wrong placed.

http://www.wijnwarenhuis.be/component/v ... l?Itemid=0

hopefully you can make the zoom icon dissapear only there. (zoom image needs to stay in place in the gk news show module...!)
User avatar
Platinum Boarder

GK User
Fri Nov 23, 2012 10:43 pm
Reply with quote
Report this post
SOLVED, works now. thank you :)
User avatar
Platinum Boarder


cron