News:

Support the VirtueMart project and become a member

Main Menu

Remove Manufacturer Sort (SOLVED)

Started by rosen4o, November 05, 2011, 15:27:07 PM

Previous topic - Next topic

rosen4o

I want to remove Manufacturer sort from category display but I can't find where is located.

MobiVM

Hi,

Can you provide screenshot?

Best Regards,
Trivedi kartik.
Native mobile Apps for VirtueMart! Visit http://www.ivmstore.com

rosen4o

It's right from product sort

[attachment cleanup by admin]

MobiVM

Hello,

You need to change in below file:-

components/com_virtuemart/views/productdetails/tmpl/default.php


make comment at below code:-


Quote<?php // Manufacturer of the Product
            if(VmConfig::get('show_manufacturer', 1) && !empty($this->product->virtuemart_manufacturer_id)) { ?>
            <div class="manufacturer">
            <?php
               $link = JRoute::_('index.php?option=com_virtuemart&view=manufacturer&virtuemart_manufacturer_id='.$this->product->virtuemart_manufacturer_id.'&tmpl=component');
               $text = $this->product->mf_name;

               /* Avoid JavaScript on PDF Output */
               if (strtolower(JRequest::getWord('output')) == "pdf"){
                  echo JHTML::_('link', $link, $text);
               } else { ?>
                  <span class="bold"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_DETAILS_MANUFACTURER_LBL') ?></span><a class="modal" rel="{handler: 'iframe', size: {x: 700, y: 550}}" href="<?php echo $link ?>"><?php echo $text ?></a>
            <?PHP } ?>
            </div>
            <?php } ?>
<?php echo $this->product->mf_logo; ?>
         </div>

Best Regards,
Trivedi kartik.
Native mobile Apps for VirtueMart! Visit http://www.ivmstore.com

PRO

MobiVM, he is talking about the dropbox on the category page

OP: its able to be turned off in the newest version.

rosen4o

Yes there is option in config of the new version 2.0.0-RC-2M.
But didn't work.

PRO

did you "update or install tables if necessary"   ?

rosen4o


rosen4o

If you can't disable show manyfacturers on browse page you can go to

/administrator/components/com_virtuemart/models/product.php

And you can comment line 1375 and 1376

pbconcept

Quote from: rosen4o on November 14, 2011, 18:32:42 PM
If you can't disable show manyfacturers on browse page you can go to

/administrator/components/com_virtuemart/models/product.php

And you can comment line 1375 and 1376


You should do it also on line 1377.

;)