Jump to content

Categories/Sub-categories Help for potential Newbie


Recommended Posts

Hi All,

 

Apologies if this has been created in the wrong section.

 

I am interested in getting started with Prestashop and wanted to find out about the following for a website selling electronics accessories.

 

In particular to display the products to purchase once the customer has selected/reached a certain level of category/sub-category. For example, if a customer was looking for a battery for a Canon EOS 650D digital camera:

 

Customer would first choose the device type, Digital Camera. Then the manufacturer, Canon. Then Digital SLR etc...

 

Digital Camera > Canon > Digital SLR > EOS > 650D

 

So at each point only the category values are displayed for the customer to make further selection. Once they reach the desired model in this case 650D, the accessories or actual products to purchase are displayed.

 

This has to be achieve dynamically as opposed to loads of static pages.

 

Also, can all this information be uploaded by way of a product feed?

 

I would greatly appreciate if someone could shed some light as to whether this is possible in PrestaShop. If possible and not breaking forum rules, are there any sites running PrestaShop that have achieved this that I can take a look at?

 

Many Thanks in advance.

Jon

Link to comment
Share on other sites

If you use the category tree you can do that without much trouble. Set it up like that, then add this wherever you want inside the category.tpl file:

 

{include file="$tpl_dir./breadcrumb.tpl"}

 

It will show the current breadcrumbs in a more convenient spot. Or, you can even copy the html inside that, directly, and display it bigger to the customer:

<!-- Breadcrumb -->
{if isset($smarty.capture.path)}{assign var='path' value=$smarty.capture.path}{/if}
<div class="breadcrumb clearfix">
	<a class="home" href="{$base_dir}" title="{l s='Return to Home'}"><i class="icon-home"></i></a>
	{if isset($path) AND $path}
		<span class="navigation-pipe" {if isset($category) && isset($category->id_category) && $category->id_category == 1}style="display:none;"{/if}>{$navigationPipe|escape:'html':'UTF-8'}</span>
		{if !$path|strpos:'span'}
			<span class="navigation_page">{$path}</span>
		{else}
			{$path}
		{/if}
	{/if}
</div>
{if isset($smarty.get.search_query) && isset($smarty.get.results) && $smarty.get.results > 1 && isset($smarty.server.HTTP_REFERER)}
<div class="pull-right">
	<strong>
		<a href="{$smarty.server.HTTP_REFERER|escape}" name="back">
			<i class="icon-chevron-left left"></i> {l s='Back to Search results for "%s" (%d other results)' sprintf=[$smarty.get.search_query,$smarty.get.results]}
		</a>
	</strong>
</div>
{/if}
<!-- /Breadcrumb -->
Link to comment
Share on other sites

×
×
  • Create New...