Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
Saguaros Moderator
Saguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
June 12, 2017 at 3:01 am #1041239Hi,
You will need to customize the product view layout or seek for a suitable plugin to display them in tabs.
Regards
framos41 Friendframos41
- Join date:
- September 2016
- Posts:
- 75
- Downloads:
- 11
- Uploads:
- 47
- Thanks:
- 3
- Thanked:
- 1 times in 1 posts
June 12, 2017 at 5:48 pm #1041375Thank you, i have not find any plugin for this! in the product view layout i can see the structure of the tabs and then below the other ones, should i follow the same structure that the product description and reviews that are shown in tabs to show for example "onbot" position on a extra tab? or related products shown in a extra tab? do you have any idea on what should i change there? this code is where it is:
<div class="productdetails-tabs"> <ul class="nav nav-tabs"> <li class="active"><a href="#desc" data-toggle="tab"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_DESC_TITLE') ?></a></li> <!-- <li><a href="#review" data-toggle="tab">Comentarios</a></li> --> </ul> <div class="tab-content"> <div id="desc" class="tab-pane fade active in"> <?php // Product Description if (!empty($this->product->product_desc)) { ?> <div class="product-description"> <?php /** @todo Test if content plugins modify the product description */ ?> <span class="title"><?php echo vmText::_('COM_VIRTUEMART_PRODUCT_DESC_TITLE') ?></span> <?php echo $this->product->product_desc; ?> </div> <?php } // Product Description END ?> </div> <div id="review" class="tab-pane fade"> <?php // onContentAfterDisplay event echo $this->product->event->afterDisplayContent; echo $this->loadTemplate('reviews'); ?> </div> </div> </div> <?php // Show child categories if ($this->cat_productdetails) { echo $this->loadTemplate('showcategory'); } echo vmJsApi::writeJS(); ?> <?php echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$this->product,'position'=>'normal')); // Product Packaging $product_packaging = ''; if ($this->product->product_box) { ?> <div class="product-box"> <?php echo vmText::_('COM_VIRTUEMART_PRODUCT_UNITS_IN_BOX') .$this->product->product_box; ?> </div> <?php } // Product Packaging END ?> <?php echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$this->product,'position'=>'onbot')); echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$this->product,'position'=>'related_products','class'=> 'product-related-products','customTitle' => true )); echo shopFunctionsF::renderVmSubLayout('customfields',array('product'=>$this->product,'position'=>'related_categories','class'=> 'product-related-categories')); ?> </div>
Looking forward to your comments, regards!
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
This topic contains 3 replies, has 2 voices, and was last updated by framos41 7 years, 5 months ago.
The topic ‘Virtuemart product details tabs’ is closed to new replies.