Questions tagged [prestashop]

PrestaShop is a free and open-source e-commerce storefront/shopping cart solution based on PHP, the Smarty templating engine, Symfony and MySQL.

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

Coupon Logic Prestashop 8.0

How can I add an additional field to each coupon in the system? Prestashop 8.0 + I tried creating a module, but the fields are not showing up in the panel. I can't find anything about it in the ...
Alexander's user avatar
0 votes
1 answer
35 views

PHP Zip extension is not available in windows 10 with XAMPP

I have a problem with php 8.2.4 in XAMPP xampp-windows-x64-8.2.4-0-VS16-installer with ZIP_Extension for windows 10. I have a .dll package downloaded, in the php.ini file at ;extension=zip I removed ...
Fruitcake_Gary's user avatar
1 vote
2 answers
22 views

Hide out of stock products via cron job in Prestashop

I'm running the code bellow via cron jobs in order to disable out-of-stock products from been displayed on my web site. Could anyone who knows the prestashop's database structure helps me to add an ...
Chris's user avatar
  • 55
0 votes
0 answers
9 views

How can I restore an old shopping cart in the user's session for user editing?

I'm developing an e-commerce application with Prestashop 8.1, and I want to implement a feature where users can retrieve and edit their previous shopping carts. I'd like to load their old cart into ...
Clement Ards's user avatar
0 votes
1 answer
19 views

PrestaShop Server Error (DEV SITE): This site can’t be reached. The connection was reset

I'm currently facing an issue that has been bothering me for the past few days. Here's the situation: I've set up a '/dev/' folder to make changes to my PrestaShop website. I've recently updated PS to ...
catpeealt4's user avatar
0 votes
1 answer
18 views

Upload product on Prestashop store using API with payload in JSON

I am trying to create a product on Prestashop and using JSON formatted payload but getting error 500. It is not supporting the JSON formatted payload. Is there any way to upload the products using ...
Siddharth Srivastava's user avatar
-1 votes
0 answers
36 views

Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` jscomposer [duplicate]

I installed prestashop theme and it occurs. How to fix it? Fatal error: Unparenthesized a ? b : c ? d : e is not supported. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) in /share/...
Kamil Juchniewicz's user avatar
1 vote
1 answer
14 views

Cyberoffice module from Dolibarr

I have recently added a functionality developed by myself that consists on setting a caducity check on passwords for Dolibarr so they expire in 90 days. After developing through the different parts of ...
José Manuel Ruiz Ruiz's user avatar
1 vote
2 answers
32 views

How do we rename composer package namespaces?

I have two modules (myModuleA and myModuleB) on a PrestaShop website that are using different version of the library phpoffice\phpspreadsheet. The problem is that when I call a method from phpoffice\...
Nero_Advents's user avatar
0 votes
0 answers
20 views

CRITICAL ERROR PRESTASHOP smartyexception [closed]

I have a problem on my website in Prestashop, I don't know what I touched via ftp or when updating a module, but I get these 2 errors. 1 - Uncaught exception: cannot load template 'file:controllers/...
El Pesadillas's user avatar
-3 votes
1 answer
15 views

Prestashop - Invoice adress change

I am trying to solve one problem in prestashop 1.7, the eshop generates invoices with a delivery address where the company ID is also displayed, but only "123456789" is displayed, but I need ...
Standa Vilím's user avatar
0 votes
0 answers
31 views

Set-Cookie header not setting a cookie with SameSite=None attribute

I'm trying to make a request from a client located on the domain a.com to a server running PrestaShop on the domain b.com. My goal is to obtain a cookie containing an authentication token. Although I ...
SpritS's user avatar
  • 3
1 vote
0 answers
52 views

Add new field on checkout

I have created my own module that displays an additional field in the last step on checkout page. I want to validate it when the user press the order button, if the field is empty, I want to return an ...
jasierok's user avatar
0 votes
1 answer
33 views

Prestashop Web Services API - React Native

I'm trying to make a query to receive data from the database with PrestaShop API (with react native ). I read the documentation of this and tried to adjust the given code to what I need. I created my ...
Nicolas's user avatar
  • 107
0 votes
0 answers
31 views

PRESTASHOP 8.1 - Uncaught Error: Syntax error, unrecognized expression

I have a problem with PrestaShop 8.1. I have imported my product list into Prestashop as I usually do, using a file created in Excel or sublime text - encoded CVS (ISO-8859-1 --from-code=UTF-8) and ...
Andrea's user avatar
  • 11
0 votes
0 answers
22 views

Fatal Error Uncaught ValueError: Path cannot be empty in... Prestashop

Fatal error: Uncaught ValueError: Path cannot be empty in /Applications/XAMPP/xamppfiles/htdocs/inconceptco/classes/PrestaShopAutoload.php:259 Stack trace: #0 /Applications/XAMPP/xamppfiles/htdocs/...
Duedyn Carrillo's user avatar
-2 votes
1 answer
42 views

Prestashop_8.1.1 local installation issue

I'm try to install the package on my computer with Wamp (PHP 8.2.0) The installation stops at last step (creation of parameter files, at 0%) with http Error 500 Please help me! I tried to downgrade ...
Ophélie Renaud's user avatar
0 votes
1 answer
16 views

How to create custom Product Type in PrestaShop 8+?

So this is my question. I did a little research on this, but unfortunately I did not find anything. I want my module to add a new product type to prestashop's built-in 4 types. How can i do this ...
NukDokPlex's user avatar
0 votes
1 answer
25 views

make prestashop store in a django subdomain

good afternoon everyone, I have my website made with django (python app), hosted in the domain www.cannareis.com.ar. but I want to add a virtual store using prestashop. Thanks to my hosting provider, ...
Fausto Fernandez's user avatar
0 votes
0 answers
25 views

Lowest and highest product prices from combinations (Prestashop)

I made Product object override with lowest_price and highest_price fields and I want to get these prices according to product combinations and specificPrice included. I tried to get them with Product::...
everydayisalegday's user avatar
0 votes
1 answer
28 views

How can i fix Notice: Trying to access array offset on value of type null prestashop 1.7.8.8

Im working on prestashop 1.7.8.8 with theme bos nature, Im trying to fix a template issue but i cant see whats happening here. The template when i see it in front office is showing the code below: ...
Arturo Vasquez's user avatar
0 votes
0 answers
26 views

Wishlist block prestashop

Is there a version of wishlist bock compatible with PrestaShop 1.7.5.2? Thanks I tried to download from Market Place, but it was not possible. It seems that the version 1.7.5.2 is not supported. In ...
sisterstwice's user avatar
0 votes
1 answer
45 views

Prestashop admin redirection tokken

I have a custom module on Prestashop and I need to do a link to redirect to the product edit page, but can't find the way to get a token. I tried options with Tools class, but it's not working for me. ...
Ashot's user avatar
  • 3
0 votes
0 answers
21 views

How can I make a description of some sort appear if a certain attribute is selected on the product detail page

I am new to prestashop but I am trying to make a tiny description appear after someone clicks on a certain select type attribute. I have tried to do an if statement to select the one attribute that I ...
Alfonso Ramos's user avatar
1 vote
0 answers
38 views

How to add Google Tag Manager to Prestashop v. 1.7.7

I added the script code to the head in layout-both-columns.tpl with {literal} tags and the noscript right under the body id="{$page.page_name}" class="{$page.body_classes|classnames}&...
OWS's user avatar
  • 11
0 votes
0 answers
16 views

500 Server Error when starting local server with MAMP [duplicate]

i have this problem for some time now. I made a host called "pro-takuma" with MAMP, database imported from a dump export from plesk and project from bitbucket created with prestashop. When I ...
Grumpy Cat's user avatar
0 votes
0 answers
117 views

(Docker) Prestashop 8.1 FPM with Nginx - 504 Gateway Timeout

I am trying to get Prestashop 8.1 running on Docker as my dev environment, but I can't succeed. First I tried the prestashop:latest image with Apache web server and used Nginx as a SSL Proxy to run it ...
exepowered's user avatar
0 votes
1 answer
25 views

How to access id_order in hook hookDisplayOrderPreview (order preview on orders list in BO)

I see that id_order is not available in $params public function hookDisplayOrderPreview(array $params) { $id_cart = $params['id_cart']; $orderID = (int)$params['id_order']; /* $...
ButcherFromHell's user avatar
0 votes
1 answer
41 views

Uncaught TypeError: Cannot read properties of undefined (reading 'defaults') in creating Fancybox

I did add javascript for creating fancybox from the page, it did create but not to all what needed to do and have this error. This is my HTML code <script src="https://code.jquery.com/jquery-...
Антон Шупенюк's user avatar
0 votes
0 answers
34 views

Fancybox isn`t working only shows background

I did try to create a simple fancybox did add some libraries but they only created background without the fancybox. This is my html code ` <link rel="stylesheet" href="/...
Антон Шупенюк's user avatar
0 votes
2 answers
23 views

parameter id_country require prestashop webservice

I try to create address of prestashop using webservice, but even though I put the id_country to some value it still return parameter \"id_country\" required. I am using Prestashop 1.7.8.9. ...
Chanrithisak Phok's user avatar
0 votes
0 answers
25 views

Variants dont show their individual reference numbers

In my product settings I can choose individual reference numbers for my variant. But on the product pages in my shop theres always only the main reference number of the product which does not change ...
J. Poeller's user avatar
0 votes
0 answers
26 views

During CSV import in Prestashop, an empty image is generated, despite thumbnail regeneration being enabled

I have a weird problem. During the CSV file import using PrestaShop's default function (attempting to import a product), I enable the 'Regenerate thumbnails' option. Despite this, after importing, an ...
Krop's user avatar
  • 1
0 votes
0 answers
52 views

Create a Module for prestashop 8.1.1

I want to make a module in prestashop 8.1 that creates a new field at the time of registration and at the time of payment without login send this information to the database in a column in the ...
Henrique Barbosa Sampaio's user avatar
0 votes
2 answers
57 views

Prestashop Stripe is not defined

I try to implement Stripe module in my Prestashop project. After installation and configuration in the back-office, I dont get the Stripe form in my order page. However I get a JS error like: Uncaught ...
Malek Ben el ouafi's user avatar
0 votes
0 answers
14 views

Find unique identifier of CSS Stylesheet in Prestashop registered with addCSS()

I am working on a module custom module for a specific website that helps with render-blocking resources. This module unregisters render-blocking files using unregisterStylesheet, then registers them ...
Robert Temiro's user avatar
0 votes
0 answers
30 views

Pagination issues with the grid component from Prestashop

Here is my issue, I'm currently developping a module for prestashop, I am using two grid components to render grids for datas that I inserted inside a table I created for my module . I am using ...
william jaulin's user avatar
0 votes
0 answers
44 views

cannot read properties of undefined (reading 'defaults')

I did want to create front controll to Prestashop, I did get this error "bottom-65be1913.js:389 Uncaught TypeError: Cannot read properties of undefined (reading 'defaults')" when I tried to ...
Антон Шупенюк's user avatar
1 vote
0 answers
25 views

Purpose of the "class_stub" File in PHP Cache for PrestaShop Development

As a developer working with PrestaShop, I've come across a file named "class_stub" in the cache directory of my application. This file contains class declarations that follow this pattern: ...
Clement Ards's user avatar
0 votes
1 answer
30 views

How do i prevent Prestashop from placing analytics cookies?

I am setting up a Prestashop webshop. When I check what cookies my shop uses I get (1) PHPSESSID and (2) Prestashop-* (iubenda). The second one is an analytics cookie and by using it I will have to be ...
Lienhoeft's user avatar
1 vote
1 answer
67 views

Add code what worked in prestashop 1.6 in Prestashop 8

I had in prestashop order list backoffice a code showning the estimated date of delivery. It worked in PS 1.6.X but in Prestashop 8 AdminOrdersControllers.php was changed and now i dont know how add ...
Edgar's user avatar
  • 35
0 votes
0 answers
21 views

Prestashop add login with gmail in website

how can give clients the autoristation to create account and login with their gmail account in my PrestaShop website without using modules? i didn't try any thing yet and i need to fix this problem ...
AYA ATYQ's user avatar
0 votes
0 answers
30 views

Prestashop custom module tpl getting html encoded

I have created my first custom prestashop(v8) module. For some reason the tpl file is getting html encoded in the website frontend. I inspected the site code and noticed the tpl file content is ...
Rick Roy's user avatar
  • 1,666
0 votes
0 answers
22 views

Unnecessary www to non-www redirect when accessing the website

I have a problem with some additional redirect being added when just accessing the website. Here's the example: But all i need is to www redirect to www/ie/. And for some reason, non-www redirect ...
Roman Selin's user avatar
0 votes
0 answers
22 views

Display problem - Prestashop 1.7.8. multiple article HTML tags in same owl-item

Hello I have problem widh Prestashop. I created a store with Prestashop 1.7.8.7, I used "ebusiness" theme of Prestahero. I have a problem with my owl-carousel because there are two products ...
user22274741's user avatar
0 votes
1 answer
21 views

Webservice API: POST /combinations/ returns "parameter "id_product" required" even though it is present

POST /combinations/ returns <?xml version="1.0" encoding="UTF-8"?> <prestashop xmlns:xlink="http://www.w3.org/1999/xlink"> <errors> <error> <...
Zintex's user avatar
  • 1
0 votes
1 answer
71 views

Cannot install custom module in prestashop

I am new in Prestashop module development. I am trying to build amy first prestashop module[ref: Here is my code.I did everything as in that tutorial writes https://devdocs.prestashop-project.org/8/...
Антон Шупенюк's user avatar
0 votes
1 answer
99 views

Login to customer account with PrestaShop Webservice API

I'm working on integrating PrestaShop with a React application, and I need to authenticate customers and obtain their authentication tokens programmatically. Is it possible to login to a customer ...
SpritS's user avatar
  • 3
2 votes
1 answer
64 views

`composer require prestashop/prestashop` installs, but is missing some folders

I am trying to install Prestashop via composer require prestashop/prestashop:^8 in an effort to separate my custom code from the Prestashop core code. My intention is to have only my own ...
ᴍᴇʜᴏᴠ's user avatar

1
2 3 4 5
118