Jump to content

Product page problem


fitin

Recommended Posts

Hello, i have problem with homepage which is my category page. After enter at https://www.fit-in.pl i got products and thats allright but problem is with sorting my products on homepage. When i choose in options sort by alphabetic it works only for all other pages like https://fit-in.pl/54-mezczyznahttps://fit-in.pl/36-kobietahttps://fit-in.pl/21-start . Is there any way to get it works at my homepage? If its impossible, how to change my homepage to this one > https://fit-in.pl/21-start

I dont know if i wrote this good and you will know what i need. I got one more question how to change quantity of my products.

There are 3 visible products on page but i want 4.

Thanks guys for help.

Edited by fitin (see edit history)
Link to comment
Share on other sites

You have to manually sort the products in your top level category (root or home). The home featured module does have its own sorting.
Use backoffice - catalog - products.

Then select filter for top level category. Sort by position. Use drag and drop on position column to re-areange.

 

See post #4

Edited by Scully (see edit history)
Link to comment
Share on other sites

My initial post assumed you are using the module homefeatured for the homepage. But it doesn't seem so after more investigation.

Usually sort settings should be effective in any category list.

 

Long story in short:

I would ask the theme deleloper. It's always hard to guess how a theme is working in detail and hence a solution might be depending on your setup.

 

And one hint:

Your title refers to "Product page" but the following post does not refer to products but categories insted.

Your initial post is very "messy" and badly formatted, the links look very confusing.

 

Try to be a bit more careful with postings. It might help the helpers.

Edited by Scully (see edit history)
Link to comment
Share on other sites

Grid is correct but Quantity as term is rubbish in this context.

 

You have to consider that your theme displays between 1 and 3 or eventually also 4 columns with products. It all depends on the screen size. On my 1200 x 1920 pixel screen I can see 3 columns. With current setup you wouln't have enough space for 4. If you want to change you have to adapat the corresponding CSS file or files. Yes, it might concern more than one file. The most important might be product.css somewhere in your themes directory. And the change might not be easy because several items in its size or font might needed to change.

Edited by Scully (see edit history)
Link to comment
Share on other sites

In file product-list.tpl i got like this:

{if isset($products) && $products}
	{*define number of products per line in other page for desktop*}
	{if $page_name !='product'}
		{assign var='nbItemsPerLine' value=3}
		{assign var='nbItemsPerLineTablet' value=2}
		{assign var='nbItemsPerLineMobile' value=2}
	{else}
		{assign var='nbItemsPerLine' value=4}
		{assign var='nbItemsPerLineTablet' value=4}
		{assign var='nbItemsPerLineMobile' value=2}
	{/if}
	{*define numbers of product per line in other page for tablet*}
	{assign var='nbLi' value=$products|@count}
	{math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines}
	{math equation="nbLi/nbItemsPerLineTablet" nbLi=$nbLi nbItemsPerLineTablet=$nbItemsPerLineTablet assign=nbLinesTablet}
	<!-- Products list -->
	<ul{if isset($id) && $id} id="{$id}"{/if} class="product_list grid row{if isset($class) && $class} {$class}{/if}">
	{assign var='is' value=0}
    {foreach from=$products item=product name=products}        
        {if true || isset($ybcDev) && $ybcDev && isset($tc_dev_mode) && $tc_dev_mode && isset($tc_layout_products) && $tc_layout_products && in_array($product.id_product,$tc_layout_products) || !isset($ybcDev) || isset($ybcDev) && !$ybcDev || !isset($tc_layout_products) || isset($tc_layout_products) && !$tc_layout_products}
		{math equation="(total%perLine)" total=$smarty.foreach.products.total perLine=$nbItemsPerLine assign=totModulo}
		{math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineTablet assign=totModuloTablet}
		{math equation="(total%perLineT)" total=$smarty.foreach.products.total perLineT=$nbItemsPerLineMobile assign=totModuloMobile}
		{if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if}
		{if $totModuloTablet == 0}{assign var='totModuloTablet' value=$nbItemsPerLineTablet}{/if}
		{if $totModuloMobile == 0}{assign var='totModuloMobile' value=$nbItemsPerLineMobile}{/if}
        {assign var='is' value=$is+1}

maybe i need to change something here?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...