Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
hoknight Friend
hoknight
- Join date:
- July 2009
- Posts:
- 400
- Downloads:
- 128
- Uploads:
- 225
- Thanks:
- 110
- Thanked:
- 4 times in 4 posts
March 21, 2016 at 7:54 am #902707Hi,
- How to display category name with hyperlink in the product page?
- Is it possible moving the Tags onto the top of detail page?
Thanks.
-
hoknight Friend
hoknight
- Join date:
- July 2009
- Posts:
- 400
- Downloads:
- 128
- Uploads:
- 225
- Thanks:
- 110
- Thanked:
- 4 times in 4 posts
March 22, 2016 at 4:12 am #903162For point 2 has been solved
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
March 22, 2016 at 4:44 am #903168Hi
You will need to customise the layout of Product Detailed page to achieve that.
- Go to file: ROOT/templates/ja_playstore/html/com_virtuemart/productdetails/default.php
Under the div tag which contains the image:
<div class="vm-product-media-container">
Add this snippet of code:
<?php // Category Link $catURL = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_category_id='.$this->product->virtuemart_category_id); $categoryName = $this->product->category_name ; ?> <div class="categoryName"> <a href="<?php echo $catURL ?>" title="<?php echo $categoryName ?>"> <?php echo $categoryName ; ?> </a> </div>
It looks like this: http://prntscr.com/aicp5v
And ofcourse, you will need to add your own style for this div
<div class="categoryName">
- The same with category name, this line of code
<?php echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$this->product,'position'=>'ontop')); ?>
renders the custom fields on your site (here is Tags)
You can place above the product images field and style for it.
1 user says Thank You to Saguaros for this useful post
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)This topic contains 2 replies, has 2 voices, and was last updated by Saguaros 8 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum