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

TOPIC: Categories do not appear in More info

Categories do not appear in More info 8 years 4 months ago #8074

Hi
Help. The link to the categories do not appear in More info. And I did all the tests can but nothing appears.
what should I do. There is no link back to the categories, while the category page exists.
Thank you
Last Edit: 8 years 4 months ago by foued Khefif.
The administrator has disabled public write access.

Categories do not appear in More info 8 years 4 months ago #8109

It is because we have removed the PHP lines. I am writing down your request and hopefully it will be available in the next version.

If you don't want to wait, you can apply the patch, if you are little familiar with coding.

The official PHP lines to generate the "Back to Category" link is this:
<?php // Back To Category Button
	if ($this->product->virtuemart_category_id) {
		$catURL =  JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_category_id='.$this->product->virtuemart_category_id, FALSE);
		$categoryName = $this->product->category_name ;
	} else {
		$catURL =  JRoute::_('index.php?option=com_virtuemart');
		$categoryName = jText::_('COM_VIRTUEMART_SHOP_HOME') ;
	}
	?>
	<div class="back-to-category">
    	<a href="<?php echo $catURL ?>" class="product-details" title="<?php echo $categoryName ?>"><?php echo JText::sprintf('COM_VIRTUEMART_CATEGORY_BACK_TO',$categoryName) ?></a>
	</div>

And you should include those PHP lines into this PHP file (which is to control the product details page):

templates/YOUR_TEMPLATE/html/com_virtuemart/producdetails/default.php
(default.php or flexv2.php which ever layout you are using currently for the product details page)


Regards,
Support
Last Edit: 8 years 4 months ago by Support.
The administrator has disabled public write access.

Categories do not appear in More info 8 years 4 months ago #8123

Hi
Thank you for reponce and code. But I would like you said which line or do I manage to do that?
Regard
The administrator has disabled public write access.

Categories do not appear in More info 8 years 4 months ago #8137

Hi,

open this PHP file:
templates/YOUR_TEMPLATE/html/com_virtuemart/producdetails/default.php
(default.php or flexv2.php which ever layout you are using currently for the product details page)

and where ever you want to include the "Back to Category" link, then copy-paste the lines that i have provided in my previous post.

For instance, If you want to put it right-above the TABs (Product Details, Reviews etc.. TABs) then the location to copy-paste those lines should be right before those lines:
 
<!-- Copy/paste here the lines that have provided in my 1st post -->
 
<?php if (!($parameter == "quicklook")) { //if quicklook, then the bottom TAB section will be invisible END ?>
<br/><br/>
<div id="vmFlyPageBottom" class="vmFlyPageBottom">
The administrator has disabled public write access.
Time to create page: 0.102 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