Jump to content

i need category wise product listing


Recommended Posts

I am just starting with fresh install have most things configured getting ready to start listing product. Question is where is and how do I set in order for all Catigories,sub catigories, and items to list automatically in alphabetical and order ?

Link to comment
Share on other sites

Thanks EI Patrons like i have some of the categories and i need all the category wise product listing is display on my home page block wise like category 1, category 2

 

you want this to display in your menu yes? if so are you using the default theme?....can you please supply a url to your site?

Link to comment
Share on other sites

EI patron i have got one module but my issue remain same i need specific category and his product list on my home page

 

that's my code can you help it.....................

 

{if $jquery == 0}

{if $categories}

<div id="CategoriePlus">

{foreach from=$categories item=categorie name=cats}

{assign var='categoryLink' value=$link->getcategoryLink($categorie.id, $categorie.link_rewrite)}

<div class="CatPlus" {if $smarty.foreach.cats.last}id="last_item"{/if}>

<span class="title"><a href="{$categoryLink}">{$categorie.titre}</a></span>

{if $displaycatimg == 1}<a href="{$categoryLink}">

<img src="{$img_cat_dir}{$categorie.id}-medium.jpg" alt="{$categorie.titre}" title="{$categorie.titre}" id="categoryImage" /></a>{/if}

{if $categorie.prod && $displayprod ==1}

{foreach from=$categorie.prod item=produc}

{assign var='getproductLink' value=$link->getproductLink($produc.id, $produc.link_rewrite)}

<span class="prod">

{if $produc.on_sale && $produc.show_price}

<span class="on_sale">{l s='On sale!'}</span>

{elseif isset($produc.reduction_price) && $produc.reduction_price}

{* <span class="discount">-{$produc.reduction_price}{if $produc.reduction_type == 'percentage'}%{else}€{/if}</span><br /> *}

<span class="discount"> {if $produc.reduction_type == 'percentage'}{$produc.reduction_price}% {else} -{math equation='(x/y)*z' x=$produc.reduction_price y=$produc.price z=100 format="%.0f"}% {/if}</span><br />

{/if}

<a href="{$getproductLink}"><img src="{$link->getImageLink($produc.link_rewrite, $produc.id_image, 'home_default')}" alt="{$produc.titre}" width="80px" height="80px" /></a><br />

 

<a href="{$getproductLink}">{$produc.titre}</a><br />

 

{if $displayprice == 1} <span class="price">{l s='Price' mod='homecategoriesplus'}:{convertPrice price=$produc.price} {if $priceDisplay == 2} {l s='+Tx' mod='homecategoriesplus'} HT{l s='-Tx' mod='homecategoriesplus'}{/if}</span><br />{/if}

{if $displaybtn == 1}

{if $allow_buy_when_out_of_stock OR ($produc.quantity AND $produc.quantity > 0)}

<a class="exclusive ajax_add_to_cart_button" rel="ajax_id_product_{$produc.id}" href="{$base_dir}cart.php?qty=1&id_product={$produc.id}&add" title="{l s='Add to cart' mod='homecategoriesplus'}">{l s='Add to cart' mod='homecategoriesplus'}</a>{/if}

{/if}

</span>

 

 

{/foreach}

{/if}

{if isset($categorie.subs) && $displaycat == 1}

<ul>

{foreach from=$categorie.subs item=subcategorie key=i name=foo}

{assign var='scategoryLink' value=$link->getcategoryLink($subcategorie.id, $subcategorie.link_rewrite)}

<li><a href="{$scategoryLink}">{$subcategorie.titre}</a>

{if $displaysubcatimg == 1}<a href="{$scategoryLink}"><img src="{$img_cat_dir}{$subcategorie.id}-medium.jpg" alt="{$subcategorie.titre}" title="{$subcategorie.titre}" id="categoryImage" /></a>{/if}

</li>

{foreachelse}

 

{/foreach}

</ul>

{/if}

{if $displaysub7 == 1} <a href="{$categoryLink}" class="tocat">{l s='See all products' mod='homecategoriesplus'} >></a>{/if}

</div>

{foreachelse}

{l s='Price' mod='Ooooopss, no category'}

{/foreach}

</div>

<br style="clear:both" />

{/if}

{else}

<br style="clear:both" />

<div class="main">

<div id="mi-slider" class="mi-slider">

{foreach from=$categories item=categorie name=cats}

{if isset($categorie.subs) && $displaycat == 1}<ul>

 

{foreach from=$categorie.subs item=subcategorie key=i name=foo}

{assign var='scategoryLink' value=$link->getcategoryLink($subcategorie.id, $subcategorie.link_rewrite)}

<li><a href="{$scategoryLink}"><img src="{$img_cat_dir}{$subcategorie.id}-medium.jpg" alt="{$subcategorie.titre}" title="{$subcategorie.titre}" id="categoryImage" />{$subcategorie.titre}</a></li>

 

{/foreach}

</ul>{/if}

{/foreach}

 

<nav>

{foreach from=$categories item=categorie name=cats}

{assign var='categoryLink' value=$link->getcategoryLink($categorie.id, $categorie.link_rewrite)}

<a href="{$categoryLink}">{$categorie.titre}</a>

{/foreach}

</nav>

</div>

</div>

 

{if $jquerylink == 1}<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>{/if}

<script src="modules/homecategoriesplus/js/modernizr.custom.63321.js"></script>

<script src="modules/homecategoriesplus/js/jquery.catslider.js"></script>

<script>{literal}

$(function() {

 

$( '#mi-slider' ).catslider();

 

});{/literal}

</script>

<link rel="stylesheet" type="text/css" href="modules/homecategoriesplus/css/style.css" />

{/if}

Link to comment
Share on other sites

×
×
  • Create New...