Newest prestashop Questions

Q&A for professional and enthusiast programmers

Link with parameters

I am new in prestashop (version 1.6) and I have some problem about a link. I want to add another login link with extra parameters so that I can hide registration part from connexion page. So in nav....

Unable to disable Prestashop Profiler

I am trying to disable profiler in Prestashop 1.6.1.11 Prestashop Documentation but still this process is not working for me and making my website hectic. My site Profiler image:

Add variable in order confirmation email for admin in prestashop

I'm with a project of prestashop 1.6 I need to add a variable in the order confirmation email to the admin. I also need to know if it is possible for that variable to be saved in the database with ...

Input type number in HelperForm PrestaShop

I am unable to set input type number in HelperForm PrestaShop. Only text and password types are working. When set to number type, the input box disappears. $fields_form[0]['form'] = array( '...

Curl breaking the sscript

I have such a weird problem with CURL in PHP. The thing is, i'm communicating with local database through API which returns JSON. I'm using CURL to do it and the exact way I do it, is that first all ...

Prestashop installation on server giving Internal server error 500

Having the same problem while installing the latest Prestashop on my server. So as @Agnes Tom has recommended, I changed the define.inc.php file and this is the error it´s showing up: Warning: ...

Prestashop 1.7 JS files not being added

Working on Prestashop 1.7 and updated my theme.yml file to look like the below but it doesn't add in the file. The file is in that directory but it isn't being pulled in. Any suggestions to the code? ...

The good and secure way to couple Prestashop 1.7 and Wordpress

I am building a Prestashop 1.7 e-commerce that I want too couple with wordpress for sharing header and footer at first. Both are on the same server and share the same database. I read some articles on ...

Split Mailalerts module recipients in prestashop

I need a specific list of recipients to receive stocks alerts only and another list of recipients to receive only the new order alert. What is the best way to do it? Thank you

How can I get rid of “add to cart” and “more” buttons in prestashop?

when I move my mouse cursor on top of each product there are 2 buttons that pop-up, these are: “add to cart” and ”more”. In which way can I get rid of them? I just want the possibility for my clients ...

Prestashop install error - Configure shop information

I'm installing prestashop 1.6.1.10 on ubuntu/xenial64 (vagrant). I get error on Configure shop information - An error occurred during installation... In the log I see: [Tue Feb 14 08:27:12.364749 ...

Prestashop: notice eval()'d code [8] Array to string conversion

I've been searching through this and other sites and can't solve the notice I got every time I open the back office product page. Notice on line 279 in file /home/librer16/public_html/tools/smarty/...

Prestashop - Module dev [on hold]

I am a beginner on prestashop. I am trying to do a shop of T-Shirt with custom impression. So I would like to allow user to upload his image and place it on my product. I can't buy a module to do ...

How to use correctly range type form value for my Prestashop module

In my goal to create custom module for Prestashop and I stuck in the update and get for a rangeslide form type. I wish to be able to update my range values in the ps_configuration sql table, and to ...

LiveZilla and Prestashop - not displaying on all pages

I have LiveZilla working on my site, but it's connected to the wrong hook. The chatbar only appears when i click on a menu (horizontal bar) it doesn't appear on homescreen / add to cart page or any ...

Get the page title for Prestashop 1.7

I am creating a custom template in Prestashop 1.7 and in the design there is a banner at the top of the page which will include the page title. I can't seem to pull through 1 universal smarty variable ...

Prestashop Subcategories images on top menu

In Prestashop, we can add images (thumbs) to subcategories menu if ((int)$category['level_depth'] > 1 && !$is_children) { $files = scandir(_PS_CAT_IMG_DIR_); ...

SSL Works in backend but not working in frontend, prestashop 1.7.04

7.04 Very strange issue which I have been dealing with since 2 days ago but no success. My ssl certificate works perfectly in Backend but it doesn't redirect in front-end. Even my other website which ...

weight calculation in prestashop

I have inhereted a import script for prestashop 1.6 that imports products from an xml file. I managed to fix some problems I found with it but am currently stuck on the weight calculation. There are ...

Delete hardcoded images prestashop index page

I have a slight problem with finding certain locations where I can delete certain objects hard-coded. One is the image before the title, the other one is an image right next to the slider and the last ...

Search Products in Back Office by typing for example >=3

This may sound a basic question but I may be using the wrong approach to seek an answer for this. How can I do a simple search for products in Prestashop Back-Office by using a value interval or ...

Prestashop 1.7 default theme. Where is the list view?

In prestashop 1.0-1.6 you have the option for showing the products in two different ways: "list view" and "grid view" However the default theme of the newest version (1.7) have only one option: "grid ...

Prestashop Public Stock list

I'm running Prestashop 1.6.1.7 and I'm looking for a quick way to display a product list with all various attributes and their stock levels on a page. The page would be public however it wouldn't be ...

Unable to save resource prestashop webservice

I am new to prestashop web service ,when I add new customer it says one error . RETURN HTTP BODY <?xml version="1.0" encoding="UTF-8"?> <prestashop xmlns:xlink="http://www.w3.org/1999/xlink"&...

MySQL lost connection while updating large tables

I have the following query which updates products stock for specific suppliers. UPDATE ps_stock_available AS sa INNER JOIN ps_product AS p ON p.id_product = sa.id_product SET sa....

defining page after issubmit

Im writting my first module in Prestashop. When I submit data in backoffice it loads the configuration page of my module. But I want to stay at the form. How can I achieve this? if (Tools::isSubmit('...

Prestashop product discount changes when user sign in [closed]

I'm using prestashop 1.6.1.0... The math doesn't quite add up here or am I misunderstanding something? I have a product for $413.60 - base price. I put a discount amount of $138.60 So final ...

OrderConfirmationController.php page under prestashop can execute custom module

I want add a table when front end order confirmation is done and same way when admin also can order for customer . so, is there any system in prestashop fire trigger when any order placed then module ...

Initialize jquery again after replacing list with ajax call

I have a Prestashop module to display a list of latest products from different product categories. On top of the list of products are menu links like: ALL, CATEGORY 1, CATEGORY 2, CATEGORY 3, etc. ...

Prestashop Multi store set up

I am using Prestashop 1.7 ( I don't think it will make much different from 1.6 ) I want to set up multistore across 2 different domains but they're hosted on the same server. How do I set up the 2nd ...

Prestashop 1.7 Update Error

When I try to install or update modules in Prestashop 1.7 I get the following error appear in the top right of the screen. Error Of Prestashop I have tried to login but it won't let me because of a ...

Update all products (When out of stock) Prestashop

I need to change the available for order when out stock of all products. I know is for the SQL way, but I don't know the table name, because ps_product_shop not have an option for this. and in the ...

How to fix WhiteScreen in Easyphp while installing Prestashop for the first time?

i´m new to this place and new to the hole programming stuff so please be patient. I started the try to install Prestashop on Easyphp Devserver for my own and had a few Problems i solved allready but ...

Prestashop hookActionCartSave function run 2 times?

I created a presta module and use the actionCartSave hook. But when I print string in hookActionCartSave function, it display double result I dont know why, can you explain for me that? My code: ...

Prestashop checkout Webservice JSON ionic 2 [closed]

How Can i do a prestashop checkout using Webservice? i'm developing with ionic2. I don't know where to start.

Increasing and decreasing the quantity of products in Prestashop

I want to add increasing and decreasing of quantity in my product list. This is my code in Prestashop 1.6: <script type="text/javascript">// The button to increment the product value $(...

Google AdWords Campaign doesn't show list of Products

I've searching this issue for about 2 days, so I'm really appreciate your help. First, I create account at Google Merchants Center and linked it with my site. The Product Feed is also works well ( I'...

Prestashop admin panel custom filter for comma-separated column

here my comma separated column is shops(eg. 1,2,3,4), and with the call back i am already displaying the multiple shops names. with call back i am showing the related shop-names(values shows eg. Shop1,...

PrestaShop 1.6 Back Office pagination not working correctly

Hello I'm developing PrestaShop paymnet module. I wish list all transaction and made that with Helper List class, I set paggination option, but paggination don't work correctly. At the bottom shows ...

Migrate customers to Prestashop 1.7

First of all thank you for taking a look the the problem that I'm facing today. I'm currently working on a project that includes prestashop 1.7. What I'm trying to do is as following. I want to ...

Prestashop: duplicate Invoice PDF with new tpl

How can I duplicate the Generate Invoice PDF Process in Prestashop? I want to use a different tpl file, but the rest should stay the same. Let me explain, what I already did: HTMLTemplateInvoice as ...

Add field in checkout prestashop 1.7

I need some help with my checkout in prestashop 1.7 In the first step I want to delete "social title" and the box the says "får erbjudanden från våra partners" in English -> (Receive offers from our ...

Remove ids from product and category pages URL with Pretty URL module making an issue

Need help in Prettry Url module by FME modules.. I am using that module in one of my site for removing ids from category and product pages URL and it works but some how it stops my custom modules ...

How can I restore deleted hooks in homepage?

I made a mess. On the home page of my shop I've deleted some Hooks and maybe some modules from the Live Editor (Look at the images). I don't remember which ones I deleted and now not a single product ...

Prestashop Main Menu Module

I'm using the module provided by Prestashop but when I add the 'Home' shop category it doesn't link to the page where it lists all the products. Is there a way to link to the top parent category while ...

I can't modify my store opening hours on prestashop 1.6.1.10

my problem is that when I edit the opening hours of one of my stores (preferences > store contacts > and then modify one of my 5 stores) something goes wrong. I want my shop to stay open from Monday ...

Breadcrumbs display vertical instead of Horizontal at Prestashop default theme (1.6.1.10)

Im attaching the image of how its look like, but also the link itself: http://sunray.co.il/index.php (Due to right now) .breadcrumb { padding: 8px 15px; margin-bottom: 18px; list-style:...

Prestashop 1.6 - Add credit to users

Is there any way to add credit to spend to a user's group in Prestashop 1.6? I need to give to a specific group of users $ 100 each to spend in my shop, without having to enter any discount code. i ...

Product id in javascript

I don't have much experience in js. I want to create variable productId which has got a product ID and then this variable use in $('#quantity_wanted_'+ productId +').change(); How can I do this ? &...

Prestashop - Backoffice - Add Order show address

When I am in backoffice and try to add an order and search for my customers I would like to show the customer's address in the little box. AddOrder-Search for Customer screenshot in /themes/default/...
Translating... 0%