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.
|
|
I really like this extension, I made the changes and still did not work. help me with this.
|
|
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.
|
|
Thank you for your contribution
|
|
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.
|
|