News:

Support the VirtueMart project and become a member

Main Menu

Product İmages Link Change

Started by tatar59, September 21, 2016, 12:23:23 PM

Previous topic - Next topic

tatar59

Hi all the good work;

I use to VirtueMart 3.0.10 my problem is very interesting.

I category pages, clicking on items you do not want to go to product detail page, just want to get big size products images. Sorry my english very bad :( I try to a few ways.

1. templates/sj_market/html/com_virtuemart/sublayouts/products.php

<a title="<?php echo $product->product_name ?>" href="<?php echo $product->link.$ItemidStr?>">
<?php
echo $product->images[0]->displayMediaThumb('class="browseProductImage"'false);
?>

</a>


I Change To Code

<a title="<?php echo $product->product_name ?>" href="<?php echo $product_full_image ?>">
<?php
echo $product->images[0]->displayMediaThumb('class="browseProductImage"'false);
?>

</a>


But Not Working.

And


<a title="<?php echo $product->product_name ?>" href="echo $product->images[0]->displayMediaThumb('class="browseProductImage"', false);">
<?php
echo $product->images[0]->displayMediaThumb('class="browseProductImage"'false);
?>

</a>


But Not Working.

Pls help me ı just product categories page click product image and just picture you want to open, dont go to the product page.

GJC Web Design

isn't it


<?php
echo 
$product->images[0]->displayMediaFull('class="browseProductImage"'false);
?>

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

tatar59

#2
Quote from: GJC Web Design on September 21, 2016, 13:08:21 PM
isn't it


<?php
echo 
$product->images[0]->displayMediaFull('class="browseProductImage"'false);
?>



i cgange but not working.

<a title="<?php echo $product->product_name ?>" href="<?php echo $product->images[0]->displayMediaFull('class="browseProductImage"'false); ?>">
<?php
echo $product->images[0]->displayMediaThumb('class="browseProductImage"'false);
?>

</a>


I want change hreff code opening image.

looks my site goo.gl/NqkXLv

href="<?php echo $product->images[0]->displayMediaFull('class="browseProductImage"', false); ?>"

GJC Web Design

how can href be an image resource??

to open the image in a lightbox the 2nd argument is true
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

tatar59

Quote from: GJC Web Design on September 21, 2016, 15:48:34 PM
how can href be an image resource??

to open the image in a lightbox the 2nd argument is true

ı want product link change product lightbox image. So i click product image and i view product big size.  I do not want product detail page. Only list page.

This is sample ==> goo.gl/S2wECw

Please i want help.

GJC Web Design

<?php
   echo $product->images[0]->displayMediaFull('class="browseProductImage"', true);
?>
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

tatar59

Quote from: GJC Web Design on September 22, 2016, 13:15:32 PM
<?php
   echo $product->images[0]->displayMediaFull('class="browseProductImage"', true);
?>

I try

<a title="<?php echo $product->product_name ?>" href="<?php echo $product->images[0]->displayMediaFull('class="browseProductImage"'true); ?>">
<?php
echo $product->images[0]->displayMediaThumb('class="browseProductImage"'false);
?>

</a>


Not working. https://goo.gl/NqkXLv its here.

tatar59

Oke. I solved

This is code working.

<div class="vm-product-media-container">

<a id="yt_cloudzoom" href="<?php echo $product->images[0]->file_url;?>" class ="cloud-zoom" rel="zoomWidth:'270',zoomHeight:'270',position:'right', adjustX:110, adjustY:-25, tint:'#b9298b', softFocus:1, smoothMove:5, tintOpacity:0.8"  >
<?php
echo $product->images[0]->displayMediaThumb('class="browseProductImage"'false);
?>

</a>

</div>