Jump to content

[Ask] Show product with 4 column at the categories


Recommended Posts

to delete pictures for subcategories: category.tpl 

and remove this code:
 

					<a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}" class="img">
						{if $subcategory.id_image}
							<img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html'}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />
						{else}
							<img src="{$img_cat_dir}default-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />
						{/if}
					</a>
  • Like 1
Link to comment
Share on other sites

 

to delete pictures for subcategories: category.tpl 

and remove this code:

 

					<a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'htmlall':'UTF-8'}" title="{$subcategory.name|escape:'htmlall':'UTF-8'}" class="img">
						{if $subcategory.id_image}
							<img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html'}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />
						{else}
							<img src="{$img_cat_dir}default-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" />
						{/if}
					</a>

 

oke, 1 problem solved,.. thanks vekia

and then how to set 3 column become 4 column ? :)

Link to comment
Share on other sites

omg i missed fact that you use prestashop 1.6 not 1.5

my bad, sorry

 

inside product-list.tpl file you've got something like

{if $page_name !='index' && $page_name !='product'}
	{assign var='nbItemsPerLine' value=3}
        {assign var='nbItemsPerLineTablet' value=2}
        {assign var='nbItemsPerLineMobile' value=3}
    {else}
    	{assign var='nbItemsPerLine' value=4}
        {assign var='nbItemsPerLineTablet' value=3}
        {assign var='nbItemsPerLineMobile' value=2}
    {/if}

to change number of items, just change values of these options

  • Like 2
Link to comment
Share on other sites

omg i missed fact that you use prestashop 1.6 not 1.5

my bad, sorry

 

inside product-list.tpl file you've got something like

{if $page_name !='index' && $page_name !='product'}
	{assign var='nbItemsPerLine' value=3}
        {assign var='nbItemsPerLineTablet' value=2}
        {assign var='nbItemsPerLineMobile' value=3}
    {else}
    	{assign var='nbItemsPerLine' value=4}
        {assign var='nbItemsPerLineTablet' value=3}
        {assign var='nbItemsPerLineMobile' value=2}
    {/if}

to change number of items, just change values of these options

 

 

oke no problem  :)

i set the nbItemsPerLine values to 5, but nothing happen at http://aerishsub.web.id/index.php?id_category=21&controller=category&id_lang=1

whats wrong?

Link to comment
Share on other sites

prefereces >performance

there is an option to turn on "force compile"

 

where i change the value?

i set

{if $page_name !='index' && $page_name !='product'}
{assign var='nbItemsPerLine' value=3}
{assign var='nbItemsPerLineTablet' value=2}
{assign var='nbItemsPerLineMobile' value=3}
 
to
 
{if $page_name !='index' && $page_name !='product'}
{assign var='nbItemsPerLine' value=4}
{assign var='nbItemsPerLineTablet' value=2}
{assign var='nbItemsPerLineMobile' value=3}
 
but this is the result
 
 
Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...
×
×
  • Create New...