test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • hoknight Friend
    #902707

    Hi,

    1. How to display category name with hyperlink in the product page?
    2. Is it possible moving the Tags onto the top of detail page?

    Thanks.


    1. ScreenShot1010-catname
    2. ScreenShot1010-tags-moving
    hoknight Friend
    #903162

    For point 2 has been solved

    Saguaros Moderator
    #903168

    Hi

    You will need to customise the layout of Product Detailed page to achieve that.

    1. 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">

    1. 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.

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