News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

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

Quote from: Maxim Pishnyak on July 12, 2013, 09:18:48 AM
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.

ok thanks. next problem i renamed default.php in order for the prev next buttons to come up and it messed with a plugin i had installed before. the plugin stopped working.

Maxim Pishnyak

Quote from: damz101 on July 12, 2013, 16:34:45 PM
next problem i renamed default.php in order for the prev next buttons to come up and it messed with a plugin i had installed before. the plugin stopped working.
Where is situated this specific default.php?
What is in it?
What plugin did you mentioned?
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 12, 2013, 17:13:54 PM
Quote from: damz101 on July 12, 2013, 16:34:45 PM
next problem i renamed default.php in order for the prev next buttons to come up and it messed with a plugin i had installed before. the plugin stopped working.
Where is situated this specific default.php?
What is in it?
What plugin did you mentioned?

thats its found /mytemplate/html/com_virtuemart/productdetails
it contains code for the product navigation along with others.
and the plugin is Jo VM socialshare. 


MarioP

Hello.
I want to refresh the topic. I have similar problem. I have no navigation arrows when the fancybox appears.  Close button is showing.  I've used template overrides and thought that this is the cause of my problem. But even though I deleted the overrides the problem still appears. Even if I change the temple for the standard beez_20 the problem still exist.  What can be wrong??. To be sure I checked the version of file default.php in the folder templates/your_template/html/com_virtuemart/productdetails and it's 6530 2012-10-12 09:40:36Z. What else could I check to solve the problem?
Joomla  2.5.14
VM 2.0.24
PHP 5.3.x

MarioP

I compared the file [yourjoomlatemplae]/html/com_virtuemart/productdetails/default_images.php in VM 2.0.18 where the fancybox works properly for me ( I have one website with this VM version) with the default_images.php in current version where I have no navigation arrows. They are different.
There is lack of this part of script:
jQuery(".additional-images .product-image").click(function() {
jQuery(".main-image img").attr("src",this.src );
jQuery(".main-image img").attr("alt",this.alt );
jQuery(".main-image a").attr("href",this.src );
jQuery(".main-image a").attr("title",this.alt );


And the following code:
<div class="additional-images">
<?php
for ($i 0$i $count_images$i++) {
$image $this->product->images[$i];
?>

            <div class="floatleft">
            <?php
                echo 
$image->displayMediaFull('class="product-image" style="cursor: pointer"',false,"");
            ?>

            </div>
<?php
}
?>

        <div class="clear"></div>
    </div>


was changed to:

<div class="additional-images">
<?php
for ($i 1$i $count_images$i++) {
$image $this->product->images[$i];
?>

            <div class="floatleft">
            <?php
                echo 
$image->displayMediaFull("",true,"rel='vm-additional-images'");
            ?>

            </div>
<?php
}
?>

        <div class="clear"></div>
    </div>


I don't know what exactly was changed because I'm not a programmer but changes are quite big. Maybe there's any shortcoming which causes that problem...