News:

Looking for documentation? Take a look on our wiki

Main Menu

VM update to 2.0.16 broken my Template for Product View - is it a bug?

Started by dorex, December 24, 2012, 01:27:05 AM

Previous topic - Next topic

dorex

Hi,

I'm using Joomla Joomla 2.5.8 and today I've updated Virtuemart from previous version to VM 2.0.16, updated tables with VM AIO. I don't know if this is a bug, anyway I now regret these actions.

The category view customization is lost and the biggest problem is that the product details page doesn't show up all my left side Joomla modules, the page bottom and page footer are all over the place ...
My question is what can I do in order to fix the product details page. Why does it overrides my template and what can I do to stop that? What file/files should I look into?
Thank you in advance.

Regards!
PHP 5.2.17 - Joomla 2.5.8 - Virtuemart 2.0.16

dorriGa

I fix that error.

When you have customs names files in templates/YOUR_THEME_NAME/html/com_virtuemart/productdetails/ like these:

customName.php
customName_images.php
customName_relatedproducts.php

You should rename all "customName" to "default" like these:

default.php
default_images.php
default_relatedproducts.php

and that´s all

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

dorex

Quote from: dorriGa on December 24, 2012, 03:43:25 AM
I fix that error.

When you have customs names files in templates/YOUR_THEME_NAME/html/com_virtuemart/productdetails/ like these:

customName.php
customName_images.php
customName_relatedproducts.php

You should rename all "customName" to "default" like these:

default.php
default_images.php
default_relatedproducts.php

and that´s all

Thank you for your advice, but unfortunately this is not the case. I have no "customname" php files.

Best regards!

PHP 5.2.17 - Joomla 2.5.8 - Virtuemart 2.0.16

dorex

Quote from: jenkinhill on December 24, 2012, 18:21:05 PM
Or apply this little fix:  http://forum.virtuemart.net/index.php?topic=111363.msg374173#msg374173

There will be a 2.0.16a release with this patched.

Thank you, Kelvyn, for pointing me out that topic.
I went to:
public_html/components/com_virtuemart/views/productdetails/view.html.php
and changed line 333 to:
shopFunctionsF::setVmTemplate($this, $category->category_template, $product->product_template, $category->category_product_layout, $product->layout);

but unfortunately for me this doesn't solve my problem. The product details page still looks like a mess.
Do you have any other idea what may be the cause of that? How soon do you think the "a" version that Milbo was talking about will be released?
If it won't be released soon, please give me some advice on what should I do. And if there's nothing that can be done for now ... can I downgrade safely VM2 to 2.0.14 ?
One more thing ... I have PHP 5.2.17 on the hosting server.

Thank you!
PHP 5.2.17 - Joomla 2.5.8 - Virtuemart 2.0.16

jenkinhill

What version did you actually update from? The only display error was with the naming of override files and this is addressed in the small fix.

Yes, you can revert to 2.0.14 - I assume you made a backup before updating. If not then you can install 2.0.14 over the top.

I think Joomla 2,5 and VM2 should only be used with PHP 5.3+ - but that is not likely to be related to the display problem.

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

fmlk4u

I think this problem is related to my problem. I already arrange a lot of override problems but there are still some left. See the screenshots and my analysis sofar. I am not experienced with VM php's and should not have to be. VM should not break/override my template CSS.
I upgraded from 2.0.14 to 2.0.16 and overrid a lot by copying VM css in my template css.

Related problem: http://forum.virtuemart.net/index.php?topic=111193.0

Thanks for helping us out. Is there a tutorial how to arrange overrides for code in VM php files like image_default.php?

fmlk4u

I found the bug in default.php in com_virtuamart/views/category\tmpl\

In VM 2.0.14:

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

In 2.0.16 this code is changed into "wrong" code:

                <a title="<?php echo $product->link ?>" rel="vm-additional-images" href="<?php echo $product->link; ?>">

                  <?php

                     echo $product->images[0]->displayMediaThumb('class="browseProductImage"', false);

                  ?>

                </a>

So I renamed the default.php from version2.0.16 to default_16.php and copied the default.php from 2.0.14. Now the behaviour is as it should be.

Regards,

Fred

jenkinhill

That is not a bug. The product images now use fancybox for display instead of facebox so the code has changed.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

fmlk4u

Hello Jenkin,

If it is not a bug, why doesn't it work then. With the new code clicking the thumbnail image doesn't pop up the large product image, but opens the detail page, like what happens when clicking the short description, product name or button "Artikelgegevens". It now behaves as one big link to the detail page.

Joomla 2.5.8+ VM2.0.16 (with 'fixes')

jenkinhill

A "bug" is a software issue that happens in all installations. This is something that just seems to affect you, as you are the ony one of the over 10,000 installers (so far) of this version to report it. It is most likely related to some other factor, such as any overrides you use, code hacks you may have made, incorrect language file problems, template or non-VM module javascript issues. It is all these extra variables that make some user issues very difficult to identify, but that does not stop us trying.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

dorex

Hi,

Sorry for the delay, but I've been away for a while. I'm back and I found the solution to my problem. Indeed, it was not a bug. It was a conflict with a plugin I had installed:
VT JQZoom Virtuemart - found it here: http://forum.virtuemart.net/index.php?topic=105730.0

Temporary solution: I went to Extensions-PluginManager and I unpublished the plugin "System - Virtuemart Slider". My product page now works as it should, but I lost this wonderful free plugin. Now I don't have a zoom function for the picture on the product details page.

Anyone knows how to fix the conflict with the "VT JQZoom Virtuemart" plugin?
Thank you.
PHP 5.2.17 - Joomla 2.5.8 - Virtuemart 2.0.16