Jump to content

[solved] How to create a new page in Prestashop 1.5.3


Recommended Posts

Hello,

 

I want to create a new page in prestashop. Exactly a new type page.

 

This type of page will display a text and a list of specific products with specific feature.

 

I have seen in "SEO and URL" page types exist and can create new pages from another page.

 

I have also seen that in the database tables are related to these pages:

 

ps_page

ps_pagenotfound

ps_page_type

ps_page_viewed

 

Someone has already created a new page?

 

Can explain me that what files I have to create and what things I have to change in the database?

 

Thanks!

Link to comment
Share on other sites

Thanks Nemo1, I read this post looking for Google. But the idea of ​​creating a module not seen totally right. In addition to creating my page I want to assign a completely new URL without any pattern. This post was my plan B in case of not succeeding developing my controller.

 

For now I solved it by creating a new controller and the dispatcher set up the url for that new controller. (I'm still developing all my controller options). If I'm not satisfied with my final solution, I'll use the solution posed in the articles.

 

Thank you very much for the help Nemo1!

Link to comment
Share on other sites

  • 5 months later...
  • 9 months later...

Hi Nemo

 

I tried your tutorial and it worked on PS 1.6, unfortunately I cant display the products images. Where exactly to I need to paste this code?

 

/* Retrieving product images */
 
foreach ($products as $key => $product) {
    foreach ($products as $key => $product) {
        $products[$key]['id_image'] = Product::getCover($product['id_product'])['id_image'];
    }
}
 
 
 
Whenever I paste it before this lines
 
$this->context->smarty->assign(array(
        'products' => $products,
        'homeSize' => Image::getSize('home_default')
    ));
    $this->setTemplate('allproducts.tpl');
 
 
it gives me a blank page. Kindly help me.
 
Thank you.
 
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...