Jump to content

Custom product carousels?


Bluedrake42

Recommended Posts

Hi, I was just looking at the featured, newest, and popular product carousels on the front page. I looked through the theme html files, and I see where the carousels are made. I was wondering... is it possible to make a carousel for a specific product category? That would be infinitely useful.

<section class='ipsSpacer_top'>
{{if count( \IPS\nexus\Package\Item::featured() )}}
	<div class='ipsBox'>
		<h2 class='ipsType_sectionTitle'>{lang="featured_products"}</h2>
		<div class='ipsPad'>
			<div class='ipsCarousel ipsClearfix' data-ipsCarousel data-ipsCarousel-showDots>
				<ul class='cNexusCarousel cNexusCategory_grid ipsClearfix' data-role="carouselItems">
					{{foreach \IPS\nexus\Package\Item::featured() as $package}}
						{template="packageBlock" group="store" params="$package, TRUE, TRUE"}
					{{endforeach}}
				</ul>
				<span class='ipsCarousel_shadow ipsCarousel_shadowLeft'></span>
				<span class='ipsCarousel_shadow ipsCarousel_shadowRight'></span>
				<a href='#' class='ipsCarousel_nav ipsHide' data-action='prev'><i class='fa fa-chevron-left'></i></a>
				<a href='#' class='ipsCarousel_nav ipsHide' data-action='next'><i class='fa fa-chevron-right'></i></a>
			</div>
		</div>
	</div>
{{endif}}

If there is some kindof call for product categories, like a "{{if count( \IPS\nexus\Package\Item::category1() )}}" or something... that would be pretty infinitely useful. I'm actually surprised something like this doesn't already exist within the adminCP.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...