Skip to content

Tag: prestashop

Add multiple images to product in prestashop

I would like to add several images in my product, the problem is that I don’t know how to do it, because for the moment I can only add one image via url! If someone has the solution or documentation, I would be interested! Thanks ! My code : Answer

Prestashop – Add multiple categories to a product

I’m trying to add more categories in my product but once created, the product keeps only the id_cetegory_default. My code : Result : Thanks in advance! Answer You need to call updateCategories function to add product into multiple categories. So once your product get saved; you can call this funtion. Fo…

How to add payment fee to cart in Prestashop?

I want to add payment fee to cart with a product created for payment fees. But when i add to cart the product for fee then i use $cart->getOrderTotal(), it doesn’t show the real price with fee. It shows the order total as product price without fee. I use SpecificPrice class for this action. And i thi…

Prestashop 1.7 module front controller 404

I am developing a Prestashop 1.7 module and I have a problem with the Front Controller Module. When I try to access the page I get a 404 error. Here are the files : modules/cbd_calculator/cbd_calculator.php modules/cbd_calculator/controller/front/display.php : modules/cbd_calculator/views/templates/front/disp…

How to render Html with smarty

I’m trying to render my raw HTML with smarty. The original text contains spaces and text returns, but when displayed, HTML is shown as plain text. Also, I tried to add {$brand.description|strip_tags:’UTF-8′} as a filter for my string. But it’s only deleting my HTML. How can my smarty t…