Post by Sokonomi » Mon Apr 16, 2018 2:17 am

For some reason my post from earlier disappeared without explanation, so here it is again;

I am looking for an extension that allows me to generate a product carousel based on a tag. For older versions there are tons of modules that do this, but for this version unfortunately it hasn't caught up yet. Ive tried having a crack at converting an older module myself, but the coding differences are just too much for me to chew.

Does anyone know how I can get products with a certain tag to be neatly displayed in a module?
Essentially I just want to have "product/search&tag=<var>" shoved into a slideshow or carousel or something.

Active Member

Posts

Joined
Sun Sep 30, 2012 4:52 am

Post by xxvirusxx » Mon Apr 16, 2018 4:00 pm

What older modules?
Post a link

Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm

Post by Sokonomi » Mon Apr 16, 2018 4:11 pm

This one turns the featured list into a carousel. Not quite tag filtered content but it certainly is a start.
This one and this one lets you display latest and special, so there is a filter mechanic present.

There was also one that simply let you enter a search string, but I cant seem to find it anymore.

Unfortunately all of em are older and thus .tlp based, and converting them to twig and making them compatible with whatever things have changed in 3.x is quite the undertaking I think?

Active Member

Posts

Joined
Sun Sep 30, 2012 4:52 am

Post by xxvirusxx » Mon Apr 16, 2018 4:33 pm

After finish converting a module, I will try to convert that both module wich have oc 2 version.

LE. Start working :)

LE. Maybe someone will convert this code:

Code: Select all

         <?php
          $span = 12/$itemscolumn;
          $pages = array_chunk( $products, $itemspage);
         ?>
                     <?php foreach ($products as $i => $product ) {  $i=$i+1;?>
                    <?php if( $itemspage > 1 & $i%$itemspage== 1 ) {  ?>
                      <div>
                    <?php } ?>
and this code:

Code: Select all

<?php echo utf8_substr( strip_tags($product['description']),0,58);?>
and this code:

Code: Select all

                <?php if( $itemspage>1 & ( $i%$itemspage == 0 || $i==count($products)) ) { ?>
                      </div>
                    <?php } ?>  
              <?php } //endforeach; ?>

Attachments

Screenshot_2018-04-16_13-14-23.png

Screenshot_2018-04-16_13-14-23.png (66.75 KiB) Viewed 60 times


Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Who is online

Users browsing this forum: No registered users and 7 guests