Modified Sourcode for Extension "Filtering Products by Manufacturer"

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart ThemeModified Sourcode for Extension "Filtering Products by Manufacturer"

This topic has been marked as not a support question.

Hello together,

here is the modified source code for integration of this extension:
http://www.opencart.com/index.php?route=extension/extension/info&extension_id=3328

Maybe it can be useful for somebody else. It took me a few minutes to make it running in same look and feel like the sort function of shoppica.

Search for this code in shoppica/template/product/category.tpl:

<span class="s_label"><?php echo $text_sort; ?></span>

And insert this code BEFORE:

<span class="s_label"><?php echo $text_manufacturer; ?></span>
<div id="listing_sort" class="s_switcher">
  <?php if ($curr_manufacturer == FALSE) { ?>
    <span class="s_selected"><?php echo $all_manufacturers['text']; ?></span>
  <?php } ?>
  <?php foreach ($manufacturers as $manufacturer_s): ?>
    <?php if ($curr_manufacturer == $manufacturer_s['id']): ?>
      <span class="s_selected"><?php echo $manufacturer_s['name']; ?></span>
    <?php endif; ?> 
  <?php endforeach; ?>
  <ul class="s_options" style="display: none;">
    <?php if ($curr_manufacturer != FALSE) { ?>
      <li><a href="<?php echo $all_manufacturers['href']; ?>"><?php echo $all_manufacturers['text']; ?></a></li>
    <?php } ?> 
    <?php foreach ($manufacturers as $manufacturer_s): ?>
      <?php if ($curr_manufacturer != $manufacturer_s['id']): ?>
        <li><a href="<?php echo $manufacturer_s['href']; ?>"><?php echo $manufacturer_s['name']; ?></a></li>
      <?php endif; ?>
    <?php endforeach; ?>
  </ul>
</div>

Kind regards,
Patrick

  • This reply was modified 4488 days ago by  pattab.
  • This reply was modified 4488 days ago by  pattab.
 pattab
January 6, 2012 at 4:50 pm #4950

I really like this extension, I made the changes and still did not work. help me with this.

January 9, 2012 at 2:51 pm #5042

Have you done all other manual changes like in the installation instructions of the extension? This information here is just a replacement for step 11 in the manual. Everything else stays the same.

 pattab
January 9, 2012 at 3:40 pm #5046

Thank you for your contribution

February 16, 2012 at 4:55 pm #6237

You can also modify the file: shoppica/template/product/search.tpl with the above code from pattab to give your customers the full experience from that excellent extension.

March 3, 2012 at 11:20 pm #6749
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.