News:

Support the VirtueMart project and become a member

Main Menu

previous next and close buttons for virtuemart products

Started by damz101, July 05, 2013, 01:28:50 AM

Previous topic - Next topic

damz101

hey guys im using virtuemart 2.0.20 with joomla 2.5. i am having a problem getting the prev,next and close buttons on product images. please help

[attachment cleanup by admin]

jenkinhill

Looks like you are using a template override written for an older version of VirtueMart. Current versions use fancybox to allow image navigation, but I suspect your override is using the old facebox. You will need to update that template - probably [yourjoomlatemplae]/html/com_virtuemart/productdetails/default_images.php  - compare that with the VM default template in components/com_virtuemart/views/productdetails/tmpl/default_images.php
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

damz101

After comparing them whats the next step? Joomla 2.5.11, Virtuemart 2.0.10, PHP 5.2.17.

Maxim Pishnyak

Quote from: damz101 on July 06, 2013, 16:55:11 PM
After comparing them whats the next step?
After comparing the next step is to update your template to 2.0.12, then to 2.0.14, and then 2.0.16.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

jenkinhill

damz101  you first say your VM version is 2.0.20 and leter say it is 2.0.10  Which are you actually using?  http://forum.virtuemart.net/index.php?topic=116480.0
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

damz101

 jenkinhill: im using VM version 2.0.20b sorry about that

Maxim Pishnyak

Quote from: damz101 on July 06, 2013, 23:59:45 PM
jenkinhill: im using VM version 2.0.20b sorry about that
But what the version of your template files in temlates/your_template/html/com_virtuemart folder?
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

damz101

Quote from: Maxim Pishnyak on July 07, 2013, 10:03:15 AM
Quote from: damz101 on July 06, 2013, 23:59:45 PM
jenkinhill: im using VM version 2.0.20b sorry about that
But what the version of your template files in temlates/your_template/html/com_virtuemart folder?

i dont follow

jenkinhill

Simple. It looks like the overrides you are using are built for an earlier version of VirtueMart. Whyich version we cannot tell - which is one of the reasons why we cannot support third party templates/overrides.

Try renaming the file [yourjoomlatemplae]/html/com_virtuemart/productdetails/default_images.php  eg default_images.php.was
This will force VM to use the default image template for 2.0.20b and may solve your problem. If not then you will have to look closer at the code.
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

Maxim Pishnyak

Quote from: damz101 on July 07, 2013, 20:58:18 PM
Quote from: Maxim Pishnyak on July 07, 2013, 10:03:15 AM
Quote from: damz101 on July 06, 2013, 23:59:45 PM
jenkinhill: im using VM version 2.0.20b sorry about that
But what the version of your template files in temlates/your_template/html/com_virtuemart folder?

i dont follow
check version of file default.php in the folder templates/your_template/html/com_virtuemart/productdetails

<?php
/**
*
* Show the product details page
*
* @package   VirtueMart
* @subpackage
* @author Max Milbers, Eugen Stranz
* @author RolandD,
* @todo handle child products
* @link http://www.virtuemart.net
* @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* @version $Id: default.php 6530 2012-10-12 09:40:36Z alatak $
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');

// addon for joomla modal Box
JHTML::_('behavior.modal');
// JHTML::_('behavior.tooltip');
$document = JFactory::getDocument();
$document->addScriptDeclaration("
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

damz101

Maxim Pishnyak: " @version $Id: default.php 5151 2011-12-19 17:10:23Z Milbo $ "

Maxim Pishnyak

Good.

You are having Virtuemart 2.0.0 version for your template virtuemart overrides.

So you still need to check and to update your overrides in your web site template folder.

There were overall 5 changes of template files:
com_virtuemart.2.0.8_layout_changes
com_virtuemart.2.0.10_layout_changes
com_virtuemart.2.0.12_layout_changes
com_virtuemart.2.0.14_layout_changes
com_virtuemart.2.0.14_to_2.0.16_layout_changes

So advice from Jenkinhill is still stands for you
Quote from: jenkinhill on July 06, 2013, 10:45:50 AM
Looks like you are using a template override written for an older version of VirtueMart. Current versions use fancybox to allow image navigation, but I suspect your override is using the old facebox. You will need to update that template - probably [yourjoomlatemplae]/html/com_virtuemart/productdetails/default_images.php  - compare that with the VM default template in components/com_virtuemart/views/productdetails/tmpl/default_images.php
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

damz101

Quote from: jenkinhill on July 07, 2013, 21:16:15 PM
Simple. It looks like the overrides you are using are built for an earlier version of VirtueMart. Whyich version we cannot tell - which is one of the reasons why we cannot support third party templates/overrides.

Try renaming the file [yourjoomlatemplae]/html/com_virtuemart/productdetails/default_images.php  eg default_images.php.was
This will force VM to use the default image template for 2.0.20b and may solve your problem. If not then you will have to look closer at the code.

thanks that worked great!!!. quick question what do you mean by overrides?

damz101

Quote from: jenkinhill on July 07, 2013, 21:16:15 PM
Simple. It looks like the overrides you are using are built for an earlier version of VirtueMart. Whyich version we cannot tell - which is one of the reasons why we cannot support third party templates/overrides.

Try renaming the file [yourjoomlatemplae]/html/com_virtuemart/productdetails/default_images.php  eg default_images.php.was
This will force VM to use the default image template for 2.0.20b and may solve your problem. If not then you will have to look closer at the code.

ok so the renaming of the file worked it was default_images.php it was just default.php and what i noticed that a a share product plugin i had on the page stopped working

Maxim Pishnyak

Quote from: damz101 on July 12, 2013, 02:49:24 AM
thanks that worked great!!!. quick question what do you mean by overrides?
Template overrides is main base for customizing VM.
They wouldn't be overridden by regular VM updates.
Actually it's not simply don't know about overrides - everybody here very often use them.
Check sticked threads for example or FAQ section.
Without up to date overrides web shop is not up to date.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart