Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: quick look view shows whole page

quick look view shows whole page 11 years 5 months ago #1098

Hi all,
If I select the quick look view, it shows the product in a modal window with the product details. In the product detail, I find the < PREV | NEXT> navigation at the top right corner. They work fine if the there is a next or previous product. If i click on the NEXT at the last product or PREV at the first product, it will show me the whole page inside the modal window. I have tested it out on your demo site as well. Is there anyway to fix this problem? It just doesn't look good with the whole page in a small window. Thanks in advance.
The topic has been locked.

quick look view shows whole page 11 years 5 months ago #1115

Normally the "NEXT" or "PREV" icons must be hidden if there is no NEXT or PREV product.
Let me check it out.

Thanks for letting us know this issue.
The topic has been locked.

quick look view shows whole page 11 years 5 months ago #1116

Hi,

Okay it is fixed. It will be the first "Bugs Fixing" that is going to be added to v3.1 release.
Either download the v3.1 version form our server and reapply the VM Template OR apply the fix for this issue by yourself. (it is quite easy though)

Open this PHP file:
ROOt/templates/<yourjoomlatemplatefolder>/html/com_virtuemart/productdetails/default.php
(deault.php or flexv2.php depends on which product details you are using)

And find these lines:
<?php
		if (!empty($this->product->neighbours ['next'][0])) {
		if (!($parameter == "quicklook")) { 
			$next_link = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['next'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id);
		} else {
			$next_link = JRoute::_('index.php?option=com_virtuemart&tmpl=component&flexiblelayout=quicklook&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['next'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id);
		}
	    }
	    if (!empty($this->product->neighbours ['previous'][0])) {
		if (!($parameter == "quicklook")) { 	
		$prev_link = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['previous'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id);
		} else {
		$prev_link = JRoute::_('index.php?option=com_virtuemart&tmpl=component&flexiblelayout=quicklook&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['previous'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id);
		}
	    }
	    ?>
        <a class="FlexibleNeighboursPrev" href="<?php echo $prev_link; ?>" title="<?php echo JTEXT::_('COM_VIRTUEMART_BOX_PREVIOUS');?>" ></a>
        <span class="FlexibleNeighborSeperator"></span>
        <a class="FlexibleNeighboursNext" href="<?php echo $next_link; ?>" title="<?php echo JTEXT::_('COM_VIRTUEMART_BOX_NEXT');?>" ></a>

And replace them with this:
<?php if (!empty($this->product->neighbours ['previous'][0])) {
		if (!($parameter == "quicklook")) { 	
		$prev_link = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['previous'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id);
		} else {
		$prev_link = JRoute::_('index.php?option=com_virtuemart&tmpl=component&flexiblelayout=quicklook&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['previous'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id);
		} ?>
         <a class="FlexibleNeighboursPrev" href="<?php echo $prev_link; ?>" title="<?php echo JTEXT::_('COM_VIRTUEMART_BOX_PREVIOUS');?>" ></a> 
         <span class="FlexibleNeighborSeperator"></span> 
	  <?php  }?>
		  <?php
		if (!empty($this->product->neighbours ['next'][0])) {
			if (!($parameter == "quicklook")) { 
			$next_link = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['next'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id);
			} else {
			$next_link = JRoute::_('index.php?option=com_virtuemart&tmpl=component&flexiblelayout=quicklook&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['next'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id);
			}
			?>
		<a class="FlexibleNeighboursNext" href="<?php echo $next_link; ?>" title="<?php echo JTEXT::_('COM_VIRTUEMART_BOX_NEXT');?>" ></a>
	    <?php } ?>

And you will be good to go.

Cheers.
The topic has been locked.
Time to create page: 0.161 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo