VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: hunter205 on September 18, 2012, 17:35:53 PM

Title: main image in a link
Post by: hunter205 on September 18, 2012, 17:35:53 PM
I found that in VM2.0, main image is generate in a <img> like this :
<div class="main-image">
<img class="product-image" alt="" src="/mieushop/images/stories/virtuemart/product/img_2530.jpg">
</div>


So i want to modify it to
<div class="main-image">
<a href="1big.jpg" class="MagicZoom" id="bike"><img class="product-image" alt="" src="/mieushop/images/stories/virtuemart/product/img_2530.jpg"></a>
</div>


To use with magic zoom, so how can i modify it? my problem is use magic zoom with modalizer: http://www.nonumber.nl/forum/Modalizer/4861-Modalizer-not-working-with-magic-zoom#4861

please help me.
Title: Re: main image in a link
Post by: bytelord on September 18, 2012, 17:50:44 PM
Hello,

Use a ready one

http://forum.virtuemart.net/index.php?topic=105768.0
http://forum.virtuemart.net/index.php?topic=103306.0
Title: Re: main image in a link
Post by: hunter205 on September 20, 2012, 16:13:45 PM
Quote from: bytelord on September 18, 2012, 17:50:44 PM
Hello,

Use a ready one

http://forum.virtuemart.net/index.php?topic=105768.0
http://forum.virtuemart.net/index.php?topic=103306.0

Hi, thanks a lot, i will try to use it. is cloud zoom conflict with Modalizer or not?

Can you give me a solution how to display product detail page in a popup window (as Fancy box) ? i have already stuck with this problem so long time ago. please help me.
Title: Re: main image in a link
Post by: hunter205 on September 20, 2012, 16:20:20 PM
Or some one can help me how to display product details in fancybox or some thing like popup windows? please contact me, and i will give administrator site & FTP account.
Title: Re: main image in a link
Post by: hunter205 on September 20, 2012, 17:10:42 PM
Hi, i tried to install cloud zoom for virtuemart plugin, but my product details page doesn't work, it's empty page. may be this plugin doesn't work in Joomla 1.7? cause i use joomla 1.7 with virtuemart 2.0....so sad :(

any body can give me solution?
Title: Re: main image in a link
Post by: zildjiean on September 20, 2012, 18:15:39 PM
Quote from: bytelord on September 18, 2012, 17:50:44 PM
Hello,

Use a ready one

http://forum.virtuemart.net/index.php?topic=105768.0
http://forum.virtuemart.net/index.php?topic=103306.0

Thanks for the guiding. :D
Title: Re: main image in a link
Post by: hunter205 on September 20, 2012, 19:31:29 PM
any one can help me? PLEASE
Title: Re: main image in a link
Post by: bytelord on September 20, 2012, 21:02:53 PM
Hello,

I do not use magiczoom or modalizer, both are different products. First follow the instructions to enable magiczoom or use cloud zoom, after you succeed with that try to use modalizer with your product links ... if you don't test it, so be able to provide a url, so someone check it no one can help you.

Last you should upgrade your joomla to 2.5.7 and VM to 2.0.10 ... The versions you are using are too old

Title: Re: main image in a link
Post by: hunter205 on September 21, 2012, 03:13:15 AM
Quote from: bytelord on September 20, 2012, 21:02:53 PM
Hello,

I do not use magiczoom or modalizer, both are different products. First follow the instructions to enable magiczoom or use cloud zoom, after you succeed with that try to use modalizer with your product links ... if you don't test it, so be able to provide a url, so someone check it no one can help you.

Last you should upgrade your joomla to 2.5.7 and VM to 2.0.10 ... The versions you are using are too old

Hi, i succeed with magic zoom in product detail page, but it fails in modalizer. Sorry about providing url, this is my site: http://mieushop.com, i will give you detail administrator page in your inbox
Title: Re: main image in a link
Post by: bytelord on September 21, 2012, 08:09:59 AM
Hello,

There is no magic zoom on the url that you provide! With modalizer i can't help you because i have never use it. Have you try to contact nonumber to help you out?
Title: Re: main image in a link
Post by: hunter205 on September 21, 2012, 10:48:38 AM
Quote from: bytelord on September 21, 2012, 08:09:59 AM
Hello,

There is no magic zoom on the url that you provide! With modalizer i can't help you because i have never use it. Have you try to contact nonumber to help you out?

Hi, thanks for see my website.

Sorry so much, i forget to put position magic zoom in correct place (content-mas-top and footer) . now it's enable. you can check it again, we will back to problem i'm facing.

Again, can you tell me how do you solve this problem? product details page in popup windows (without using Modalizer as you said).

I emailed to Modalizer, and i'm waiting their reply email.

Thanks for read,
Ken hunter
Title: Re: main image in a link
Post by: hunter205 on September 22, 2012, 01:00:35 AM
thanks for reading. I just found solution about 10 hours ago.

That is magic zoom, I put position of magic zoom module in footer. so Modalizer just load subtemplate components, so it's not loading footer position.

Solution here I just put magic zoom position as "MagicZoomModuleWithVirtueMart", and put this php code right after <div class="product-details">in components\com_virtuemart\views\productdetails\tmpl\default.php

<?php 
jimport('joomla.application.module.helper');
// this is where you want to load your module position
$modules JModuleHelper::getModules('MagicZoomModuleWithVirtueMart'); 
foreach($modules as $module)
{
echo JModuleHelper::renderModule($module);
}
?>



And everything work fine. Hope this solution helps someone else, with product details page in popup windows (by combine magic zoom component and Modalizer plugin)

Thanks for supporting me.
Ken Hunter.
Title: Re: main image in a link
Post by: bytelord on September 22, 2012, 01:35:57 AM
Hi,
Just check your url, works great! Well done!

Thanks for sharing your solution

Regards