Author Topic: ADDING TABS IN PRODUCT PAGE DETAIL  (Read 244 times)

michybetti1085

  • Beginner
  • *
  • Posts: 2
  • A beginner
ADDING TABS IN PRODUCT PAGE DETAIL
« on: July 10, 2017, 16:26:26 pm »
I WANT TO ADD TAB TO THE PRODUCT DETAIL PAGE IN VIRTUEMART.
I PURCHASED THE TEMPLATE SCARF, THAT DEFAULT HAS A TAB TO BE FULLY IN RESPECT TO NORMAL, AND CALL ADDITIONAL INFO.

SEE IN PHOTOS.

I NEED MORE TAB, ALWAYS A DECINE, TO CREATE A FUNCTION OF MENU ACCORDION .. SIMILAR EFFECT ...

THIS AND THE PART OF CODE THE CODE WHERE TO MAKE THE MODIFICATION.

THIS AND THE PART OF THE TAB DESCRIPTION:

             <div class="panel-group accordion_info tiva-accordion" id="accordion">
               <div class="item panel panel-default tab-description">
                  <div class="accordion-title panel-heading active">
                     <h4 class="panel-title">
                        <a>Description</a>
                     </h4>
                  </div>
                  <div class="accordion-content active">
                     <div class="panel-body">
                        <?php echo $product->product_desc; ?>
                     </div>
                  </div>
               </div>


THIS AND THE PART OF THE ADDRESSING INFO TAB YOU MUST INCLUDE ON YOUR TEMPLATE.

<div class="item panel panel-default">
                  <div class="accordion-title panel-heading">
                     <h4 class="panel-title">
                        <a>Additional info</a>
                     </h4>
                  </div>
                  <div class="accordion-content">
                     <div class="panel-body">
                        <?php echo shopFunctionsF::renderVmSubLayout('customfields', array('product'=>$this->product, 'position'=>'normal')); ?>

                        <!-- Product Packaging -->
                        <?php $product_packaging = ''; ?>
                        <?php if ($this->product->product_box) { ?>
                           <div class="product-box">
                              <?php echo vmText::_('COM_VIRTUEMART_PRODUCT_UNITS_IN_BOX') .$this->product->product_box; ?>
                           </div>
                        <?php } ?>
                               
                               
                        <?php echo shopFunctionsF::renderVmSubLayout('customfields', array('product'=>$this->product, 'position'=>'onbot')); ?>
                              <?php echo shopFunctionsF::renderVmSubLayout('customfields', array('product'=>$this->product, 'position'=>'related_products', 'class'=> 'product-related-products', 'customTitle' => true )); ?>
                        <?php echo shopFunctionsF::renderVmSubLayout('customfields', array('product'=>$this->product, 'position'=>'related_categories', 'class'=> 'product-related-categories')); ?>
                     

                           
                            </div>
         </div>
                  </div>


TO ME NOT INTERESTED THE TAB REVIEWS.INFATTI I ELIMINATED

I TESTED TO COPY AND INCREASE THE PART OF THE CODE RELATING TO ADDITIONAL INFO, AND I CREATE ANY OTHER TAB SPECULAR, IDENTIFIED, BUT CONTAINING THE SAME IDENTICAL INFORMATION WHEN I WANT TO INSERT CUSTOMIZED FIELDS IN THE PRODUCT IN VIRTUEMART.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26201
  • Always on vacation
    • Jenkin Hill Internet
Re: ADDING TABS IN PRODUCT PAGE DETAIL
« Reply #1 on: July 10, 2017, 17:52:05 pm »
I use Regular Labs tag plugin.  https://www.regularlabs.com/extensions/tabs   Works with all Joomla content, including VM product description. It is easy to use but may not be compatible with all templates.
Kelvyn

Jenkin Hill Internet,
Keswick, Lake District

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM3.2.4 on Joomla 3.8 PHP 7.0.23

Testing VM3.2.5 on J!3.8

michybetti1085

  • Beginner
  • *
  • Posts: 2
  • A beginner
Re: ADDING TABS IN PRODUCT PAGE DETAIL
« Reply #2 on: July 11, 2017, 00:48:07 am »
Thanks, but if I wanted to use tabs as main voices and not use them in the descriptor field as I can do?