pow Posted September 23, 2013 Share Posted September 23, 2013 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 More sharing options...
PascalVG Posted September 23, 2013 Share Posted September 23, 2013 Maybe this helps, http://stackoverflow.com/questions/5609911/php-redirect-cookie-to-show-first-time-visitors-a-beta-page My 2 cents, pascal Link to comment Share on other sites More sharing options...
pow Posted September 23, 2013 Author Share Posted September 23, 2013 Maybe this helps, http://stackoverflow.com/questions/5609911/php-redirect-cookie-to-show-first-time-visitors-a-beta-page My 2 cents, pascal Thank you, but this is almost to much - I just don't want the typical home-design. I want a category (best sales, new products...) shown. Link to comment Share on other sites More sharing options...
PascalVG Posted September 24, 2013 Share Posted September 24, 2013 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 More sharing options...
pow Posted September 24, 2013 Author Share Posted September 24, 2013 (edited) 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 September 24, 2013 by pow (see edit history) Link to comment Share on other sites More sharing options...
PascalVG Posted September 24, 2013 Share Posted September 24, 2013 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 More sharing options...
pow Posted September 24, 2013 Author Share Posted September 24, 2013 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 More sharing options...
PascalVG Posted September 24, 2013 Share Posted September 24, 2013 If you ALWAYS want your maindomain.com index page go to maindomain.com/bestsales, that can easily be done in some redirect in .htacess or so. But then you never can go back to the real homepage. That's why I suggested the first solution... Link to comment Share on other sites More sharing options...
Recommended Posts