VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: maxturner on October 02, 2012, 15:28:24 PM

Title: Problem with artisteer template and product photos enlarge
Post by: maxturner on October 02, 2012, 15:28:24 PM
Joomla 2.5.7
I use a Artisteer 3.1.0 Template. The article details not increase the product photos. With existing template, it works fine. In a Artisteer template does not work. What can I do. Where can I make a mistake.
Thank you for your support.
Stephan
Title: Re: Problem with artisteer template and product photos enlarge
Post by: bytelord on October 02, 2012, 15:44:24 PM
Hi,

That's an issue with Artisteer template. Do you have any live url to check it? on any screenshot to understand?

Thanks
Title: Re: Problem with artisteer template and product photos enlarge
Post by: maxturner on October 02, 2012, 16:10:04 PM
Hi, thank you for your reply

The Live Url is:
http://www.steinkettenwelt.de
Title: Re: Problem with artisteer template and product photos enlarge
Post by: bytelord on October 02, 2012, 17:20:07 PM
Hi,

I checked with the current template, please be more specific for your issue. I did not see something, could you please give a screenshot what you mean?

I not familiar with Artisteer template generator, but you should study your code and css styling to find that issues.

You could use firebug to examine your code and styling: http://forum.virtuemart.net/index.php?topic=102850.0

Also take look over here to create some template overrides if you need them: http://forum.virtuemart.net/index.php?topic=98505.0
and here: http://dev.virtuemart.net/projects/virtuemart/wiki/Hints_for_the_use_of_the_template_system
Title: Re: Problem with artisteer template and product photos enlarge
Post by: jenkinhill on October 02, 2012, 21:43:36 PM
The facebox script is working fine on the category (product listing page) but not on the product detai;s page. That is because your product view template does not have the code/link to open the enlarged image. It is simply
<div class="main-image">
<img src="/images/stories/virtuemart/product/10_Kugelstifte_h_501298691fd83.jpg" alt="10_Kugelstifte_h_501298691fd83.jpg" class="product-image" /><span class="vm-img-desc">10_Kugelstifte_h_501298691fd83.jpg</span></div>

If you want the facebox effect on this page then you should create an override using, for example, the code in http://forum.virtuemart.net/index.php?topic=98647.0

The JavaScript used in Artisteer templates usually affects the way that VirtueMart works, but this doesn't seem to be the problem here.
Title: Re: Problem with artisteer template and product photos enlarge
Post by: maxturner on October 04, 2012, 15:08:21 PM
Hi jenkinhill

Thank you! Your counsel works perfect. I do it like: http://forum.virtuemart.net/index.php?topic=98647.0
That is the solution.

QuoteAround line 26 find:
Code: [Select]

   <?php echo $this->product->images[0]->displayMediaFull('class="medium-image" id="medium-image"', false, "class='modal'", true); ?>


and replace with
Code: [Select]


<?php echo $this->product->images[0]->displayMediaThumb('class="product-image"',true,"class='modal'"); ?>


Save the file and use as a template override.

sorry for my bad english.

Stephan

Title: Re: Problem with artisteer template and product photos enlarge
Post by: maxturner on October 04, 2012, 15:11:25 PM
 :)