Jump to content

Display product list in custom module like in a category - Prestashop 1.7


Recommended Posts

Hi guys,
I am currently working on a custom module for Prestashop 1.7. My goal is to display a product list where the each product has an add to cart button, the products combinations as select list and a textarea that they can add if the want send additional information. 
So far I can retrieve products (name, description, price, ...) with this:

  $id_category = 42;
        $products = Product::getProducts(Context::getContext()->language->id, 0, null, 'id_product', 'ASC', $id_category);

I don't have a clue how can I add the products combinations as a select option and add a custom textarea so for customers to send additional information regarding the product.

Could someone please help me or guide me to get this working. 

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...