Newest prestashop Questions

Q&A for professional and enthusiast programmers

How to work with 2 category templates in prestashop 1.6

I want to have 2 template categories in prestashop. I think it's possible in controller category if ($category->id == 3){ $this->setTemplate(_PS_THEME_DIR_.'category2.tpl'); } else { $this-&...

Prestashop show tax rule name

I want to show the tax rule name (example: 21% Incl.) on the prestashop checkout page. Is there a way to do this? I only found the following prefix: {$display_tax_label|escape:'html':'UTF-8'} But ...

PrestaShop template edit [on hold]

I want to show products in homepage. How i show "home featured","BestSeller etc.in homepage? Do you have suggestion? Shortly i dont want use have been tab system. Bu i want show only content all ...

Prestashop keeps redirecting to old domain

I want to install a local replica of a Prestashop site, but when I enter local domain, it keeps redirecting me to old domain. I downloaded files, downloaded and imported database, updated settings to ...

Error: “Err Too Many Redirect” Prestashop 1.7

I get the ERR_TOO_MANY_REDIRECTS error just modules and products page on the prestashop admin panel. When i try to connect pages url is contain ...security/compromised.... I was changed the all ...

block layered filter/category filter into manufacturers page in prestashop

I have enabled the Layered Navigation module and make the position first in displayleft column, its working fine in category page,but not showing in manufacture page. I need same left column/filter in ...

Using long running Cron Jobs with Prestashop and Cloudflare CDN

So I've got Cloudflare and Prestashop running together to improve load times however a side effect of the CDN is that my cronjobs can only run for a maximum of 90 seconds. Any longer and Cloudflare ...

Remove question mark from URL query

Is there any way I can remove the question mark from URL using Mod_Rewrite like this?: domain.com/controller-name?parameter/parameter/parameter to change question mark after controller-name to slash ...

Prestashop 1.7 webservice login customer

How to can I login customer via webservice in Prestashop 1.7 In Prestashop 1.6(In 1.7 not working): define('_COOKIE_KEY_', 'OXFQDX3YYM8MJH1RYGAQHH2LX79ZNRX'); $md5_password = md5(...

“Failed to start the session: already started by PHP” error using a CMS

I installed a CMS, named Prestashop: it runs under a specific domain, and with a specific VirtualHost configuration on Apache, on a server with other PHP applications. When I try to login in, as ...

How to sort an array by two keys and a condition

First of all, I'm sorry for this confusing title, I really don't find anything good as a title. So, I'm trying to import some categories in prestashop My array id parent 556 2 563 ...

Prestashop Add new field to transaltions/Fields.php

I want to translate alias field to tanslations/ en/fields.php file. For example, Inside fields.php file, $_FIELDS['Address_71581233bcc121fcc409ecce9317fbde'] = 'customer ID'; How to translate ...

How to get Information of Stores

I need your help How to Get the informations of the stores in Store Contacts? For example To get the categories is $categories = Category::getCategories($context->language->id); I need that ...

Multistore force www to on-www per store

For a multistore PrestaShop I have, let's say: example.com [main domain] and example.org [extra store]. It's all setup nicely, without www, but when I visit www.example.org, it brings me to example....

Prestashop Product Import (CSV) - Delete products which ID's doesn't appear in the CSV

I am using Prestashop 1.6.1.9 and I have close to 5000 products in my site, which I have imported using the Prestashop Import CSV option, in Back end. I have to update the CSV on a daily basis, to ...

Display image over text on hover

I have shop at http://prestashop.suszek.info/3-women. On the left side there is a colour. Each colour has a "podgląd" string next to it. Currently when you hover over the text, the image displays ...

Prestashop Updating Custom Product Field

I have problems with updating a Product (custom fields) in Prestashop. I followed the tutorial: http://blog.belvg.com/how-to-create-a-custom-product-tab-in-prestashop.html It works quite fine, when ...

How I get different unique number for every new payment request?

I'm developent payment plugin for PrestaShop, is there a way for get unique number for every payment request. Now I can do with cart ID, but this is unsecure, because consumer possible make request ...

Filemtime function - “stat failed for” addresses.css

I already read it so many questions and answers about it but I can't still solve my problem... "11 Jan 2017 01:04:26","/var/www/html/sf_prestashop/shop/classes/Media.php: 229", "**(Warning) ...

Product Images don't show up with Prestashop 1.6

Strange problem I encountered: When I add product images - I CAN see, my college from diferent IP - NOT. When My college adds product Images HE CAN see I - not.... Just broken image placeholder. I'...

GTM, Prestashop and Smarty {literal}

I want to add a dataLayer for GTM in my order-confirmation page on Prestashop. So like it's precise in the Smarty documentation I use {literal}, {ldelim} and {rdelim}. My script need to be dynamic ...

Where define new global variable in Prestashop

The file defines.inc.php contains multiple globals variables but if I want to define new variable which file is the best ? If I update Prestashop the file defines.inc.php is reset and I loose my ...

Property HomeSlide->position is empty at line 909 [closed]

thanks in advance to those that will try to help me I am using Prestashop 1.6.1.2 with a custom theme (the basic one "properly" edited, overloading the modules in the themes and not the Prestashop ...

Prestashop - realize cart created on external site by webservice

Im using Prestashop webservice to manage cart on external site. I can create/update/delete cart and products by API, all works fine. My next step is add "realize" button, which redirect to the main ...

Docker exits immediately after run. However, Kitematic runs without issue

I have been trying to get the Prestashop 1.6.1.9 image up and running via the CLI. If I try to execute a run command Docker will create the container but then it exits immediately. Even when I try and ...

PrestaShop webService returns unexpected HTTP status 503

I am integrating warehouse management system (which is based on PHP) with PrestaShop1.6 and I am using PrestaShop Web Service for integration. I have to make new products (which are created in ...

What is the best prestashop-way to include tpl in AdminController?

I need interacts with a .tpl file in my adminController class, but when I try to do that, this error appears Fatal error: Call to undefined method RiddlePageController::getCacheId() in /home/USER/...

prestashop carriers page loopback

I need help because I have a problem on Prestashop 1.6. I am developing an ecommerce with Prestashop. I've made the template, altough on cart and order's pages I've only changed css. As yet the cart ...

How to let the user enter height and width in prestashop?

I have to make an online shop in prestashop and I need to know how I can let the user enter the height and width and then calculate the final price. Can someone help me? Thanks

Prestashop - Display Custom Features in Layered Navigation Block

I am using Prestashop version 1.6 and I have some products that have custom features values. By default, Prestashop doesn't display them in the filter of Layered Navigation Block plugin, it only ...

user Login web service required using prestashop api

I am working on prestashop web services for my android app, i searched a lot in google, but i did not find proper document/proper explanation. Can any one please guide me how to do user login/...

Integration Facebook Pixel for Prestashop 1.6.0.9

I have got webshop on Prestashop. I have to integrate it with Google Analytics. What I have done is add GA code to GA module, but I still need to add two codes: First one is Facebook Pixel Code ...

Laptop Component customizer on prestashop? [on hold]

Hi there people! I would like to start selling some used laptops since i've got a friend that repairs them and sell them, the main idea for my store would be to give the client the possibility to ...

Prestashop login error: “Details: Error thrown: [object Object]”

In Prestashop backend login page, when I try to login I get the following message: TECHNICAL ERROR: Details: Error thrown: [object Object] Text status: parsererror Screen Picture:

Prestashop - Add column with link to an order in backoffice

I want to add a new column to a Admin Controller, but I want this column to be a link to a specific Order instead of just the ID. So far, I have this: <?php class AdminDnDPaymentsController ...

How to skip broken Images URL from Prestashop Import?

I'm importing a catalog of products into the Prestashop store, but there is a problem with the image url broken, because the product is show with a default image with interrogation sign. My idea is ...

How to add block layered filter(Layered Navigation module) to manufacturers page in prestashop

I want to add block layered filter (Layered Navigation module) and features to manufacturers products page on the left block. while selecting category menu the category/manifacture filter is showing ...

Soap call takes a lot of time

I'm working on webservice dedicated to prestashop module that takes a lot of time. The webservice return a Shipping cost on every call so if i have 4 transporters prestashop do 8 calls (4 for bloc ...

Prestashop: How to see and update customer phone numbers from administration panel?

Using Prestashop v1.6.1.4, by default it is configured to require customers to enter a phone number and that is fine, however how can I see or update this phone number from within the administrator's ...

Prestashop 1.6.1.10 order confirmation page not found

I'm Aruna , a noob :) and I recently started using prestashop to set up a online store. I have setup the site few months back and managed to link a 2checkout account as a payment gateway. After doing ...

Delete thumbnails on server of deleted product on Prestashop

when I delete a product on prestashop, in the server, the original image is deleted, but not all the thumbnails. What can I do if I want to delete all the thumbnails on the server of all the deleted ...

[Prestashop]: Code Changes in my address.tpl and errors.tpl. It doesn't updated Front-End

I Changed in my address.tpl and errors.tpl file code is not updated Front-End Office. I am not sure how this happened, but all of a sudden when I make some changes to address.tpl, it doesn't show in ...

Undefined property: stdClass::$cookie

How do I resolve this error? /var/www/html/cy_prestashop/modules/taxcloud/taxcloud.php: 1178", "(Notice) Undefined property: stdClass::$cookie"

How do I insert a value in a custom field in a table in Prestashop?

I added a custom field named "deldate" in "ps_orders" table, and I added a text box on "OPC" checkout page. Now when I click on order confirm button the value in the textbox should be saved in "...

Prestashop order status issue and cart

I am working on module for payment that integrates third party api. Some orders from api fails and I want to mark them as error with payment api message error but when I create order and OrderStatus ...

Refresh div content after click link

Prestashop v1.6 default-bootstrap theme, product-list.tpl file. I have a button add to cart and div with some smarty code: <a class="ajax_add_to_cart_button" href="...."> <div id="one">{...

Redirect old URL's to new URL pattern

Hi I want to change my current product URL structure to a new one but I want to keep my old ones working because of people who have linked to my products. How can I do this without manually creating ...

Prestashop Import CSV Error - Duplicate entry for key PRIMARY

I am trying to import a CSV containing products in Prestashop 1.6.1.9 and I get the following error: Duplicate entry '4294967295' for key 'PRIMARY'. The CSV doesn't contain a column with ID, but ...

Prestashop: Call to undefined method Language::updateModulesTranslations()

When installing in my custom module(for example sample module name) that time occur below this fatal error. How to resolve this error Anyone help me. Fatal error: Call to undefined method ...

TECHNICAL ERROR: unable to save adresses Details - prestashop new

Good day, I have a big problem (I found out that a lot of prestashop users had/have this problem and there are a lot of suggestions, I have tried everything without success) when you complete the ...
Translating... 0%