Jump to content

Different Home homepage (best sales)


Recommended Posts

Hello,

 

a short question.

How can I tell Prestashop it should start with

 

www.domain.com/best-sales

 

instead of

 

www.domain.com

 

Or should I just use a htaccess redirect?

In the older versions, I just wrote "/best-sales" in the "base directory" field and it worked fine.

Link to comment
Share on other sites

Hi Pow,

Do you mean you actually just want to display some products on your home page, instead of a 'redirect' to mydomain.com/bestsales or so?

If so, You can use the home featured module for this, where you can choose a selection of products you want to add to your home page. The products can be chosen by adding the products to the "Home" category. They then will be added to the home featured list on the front page. (In the module configuration, you can set how many products you want to show).

 

Is this an option for you? If not, please elaborate a little what you need exactly. 

pascal

Link to comment
Share on other sites

Hi Pow,

Do you mean you actually just want to display some products on your home page, instead of a 'redirect' to mydomain.com/bestsales or so?

If so, You can use the home featured module for this, where you can choose a selection of products you want to add to your home page. The products can be chosen by adding the products to the "Home" category. They then will be added to the home featured list on the front page. (In the module configuration, you can set how many products you want to show).

 

Is this an option for you? If not, please elaborate a little what you need exactly. 

pascal

 

Hi,

 

thank you.

No, I don't want the simple "{$HOOK_HOME}", I want the complete layout with right/left etc.

 

I want to display a special site like "best-sales.php" or "new-products.php". This has the best layout with all modules etc.

 

Thx

 

 

--edit--

 

I also tried to change the index.tpl from

 

{$hook_home}

 

to

 

{capture name=path}{l s='New products'}{/capture}

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

<h1>{l s='New products'}</h1>

{if $products}

    {include file="$tpl_dir./product-sort.tpl"}

    {include file="$tpl_dir./product-list.tpl" products=$products}

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

{else}

    <p class="warning">{l s='No new products.'}</p>

{/if}

 

But (of course) this does'nt work :(

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

Ok, so if I understand you well, you want the home page (www.yourdomain.com) with normal left and right column, but the center column should have products in the layout of the new products page (i.e. the page that shows when clicking "all products" in the new products block in the (default) right column.

The problem is here, that the new products (or product list of any category for that matter) is done by a 'controller', which selects the products, paginates them etc. You cannot just put this controller inside the home page in a column, like a module. (It controls the whole page.)

 

So, to come closest to what you want, you can best create a custom module which you CAN hang in the home page.

The code is probably close to a module like home featured, but with the layout of products like the layout of "new products" (1 product per row, with description etc.)

 

For completeness sake:

Which products do you want to show here? Any X amount of products from a specific category? A random selection of products, etc? Would you like to be able to limit the amount of products shown here?

 

I would love to have a look at it, but at the moment quite busy. I'm not sure if either you are able to develop a module like this yourself, if other people have better ideas, or know of a (paid?) module which does exactly this etc. and how much in a hurry you are.

 

Let me know what you think of the story above,

pascal

Link to comment
Share on other sites

Ok, so if I understand you well, you want the home page (www.yourdomain.com) with normal left and right column, but the center column should have products in the layout of the new products page (i.e. the page that shows when clicking "all products" in the new products block in the (default) right column.

The problem is here, that the new products (or product list of any category for that matter) is done by a 'controller', which selects the products, paginates them etc. You cannot just put this controller inside the home page in a column, like a module. (It controls the whole page.)

 

So, to come closest to what you want, you can best create a custom module which you CAN hang in the home page.

The code is probably close to a module like home featured, but with the layout of products like the layout of "new products" (1 product per row, with description etc.)

 

For completeness sake:

Which products do you want to show here? Any X amount of products from a specific category? A random selection of products, etc? Would you like to be able to limit the amount of products shown here?

 

I would love to have a look at it, but at the moment quite busy. I'm not sure if either you are able to develop a module like this yourself, if other people have better ideas, or know of a (paid?) module which does exactly this etc. and how much in a hurry you are.

 

Let me know what you think of the story above,

pascal

 

 

Thank you for your response.

 

But why is it so complicated to start with a different page then HOME?

 

I do not want to install/code a module, when the function "best sales" is already available :)

Link to comment
Share on other sites

×
×
  • Create New...