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.
5,651
questions
0
votes
0
answers
5
views
Prestashop 1.7.7.2 - Product variations Images dont change not completly
I'm using Prestashop version 1.7.8.5
I've update the tpl all replacing with
"product-cover-thumbnails.tpl"
// line 28 {if $product.cover}
// replace by {if $product.default_image}
It's work ...
0
votes
1
answer
12
views
Pass variable from custom hook to TPL file
I have created a custom module. Which simply registers a hook, whose only function is to obtain a list of products of a specific category.
The hook works perfectly. Then I call it from a TPL file, it ...
1
vote
1
answer
16
views
PrestaShop/Smarty change {$image. based on filter $q=Color-Black -- please
I am kind of new on PrestaShop and I would like to learn more about Smarty templates and .tpl files.
I have a problem with changing {$image.bySize.home_default.url} inside products.tpl
I'll try to ...
0
votes
1
answer
18
views
Bad Price WIthout Tax after adding specific price PrestaShop
I'm having issue with calculation of price without tax, when I put price without discount it counts okay, because I made some changes in presta core, for example if I put product with price of 4,5 tax ...
0
votes
2
answers
28
views
PRESTASHOP - Link to redirect after login
hello
I need to make a link that sends to the login page. As soon as the person has logged in, he/she should be redirected to another page (of his/her account for example).
I was using this link ...
1
vote
1
answer
19
views
Update order details in prestashop rest api
I need to update shipping details of an order using rest api in Prestashop. I need to update Tracking no, Tracking company name etc. from rest API.
I searched a lot for this but didn't find any API. ...
0
votes
1
answer
35
views
Admin login don't redirect to panel
I import a project on my local but I don’t have an access to the admin panel. I enter the right id/password, but after this, it's redirect me to the login page again with an url with params like this :...
0
votes
1
answer
22
views
How to retrieve the values of the checkboxes 'Available carriers' that we check
In order to reproduce a list of checkboxes like the one of the 'available carriers' in the Delivery section of the product page in the admin which allows to record the product-carrier associations, I ...
0
votes
0
answers
33
views
Prestashop - Fatal php error after upgrade vendor
I've seen this question already made other times, but it seems that in my case the fixes I've found are not enough.
I've just followed the manual upgrade guide from Prestashop for version 1.7.7.8, but ...
0
votes
1
answer
26
views
Get order list filtered by greater than by specific order id in Prestashop rest API
I am newer in Prestashop,
I need to get the order list in which orders should be greater than a specific order_id using Rest API. Let suppose there are 100 orders and I need to fetch all the orders ...
2
votes
1
answer
39
views
How do I 410 a pattern of toxic Prestashop URLS?
I've been trying to 410 a pattern of a few thousands toxics URLS that got indexed by Google for one of my clients. I want every urls of the website that contain ?% to send a 410 response code so they ...
0
votes
0
answers
35
views
Prestashop product stock and product combinations doesn't match
On ours Prestashop shop we have some issue. After adding product with combination and after it sold out combinations still have 10 items in stock when main product stock on product list have 0 product ...
1
vote
1
answer
23
views
Problem in message section in orders of product prestashop 1.7
Somebody know in what phisical file in prestashop 1.7.5 (TPL) appear the message sections of product orders? i need modificate the line where show the message (red circle) because don't appear good ...
1
vote
0
answers
38
views
Prestashop webservice specific_prices problem
I'm trying to add a specific price with web services, but it gives me an error. Why?
ERROR: This call to PrestaShop Web Services failed and returned an
HTTP status of 500.
try {
$webService = $...
1
vote
0
answers
13
views
How to override OrderDiscountForViewing class prestashop 1.7.8.3
I have a problem with override class src\Core\Domain\Order\QueryResult\OrderDiscountForViewing.php
I need to override this class and add custom property coupon code.
How to do this?
class ...
1
vote
0
answers
7
views
Prestashop - Increasing Amount in Dropdown Shopping Cart
I am using ps_shopping cart module. I want to show increase and decrease amount button in dropdown shopping cart like below.
I copied codes from shopping cart page to dropdown cart. I showed it. ...
1
vote
0
answers
29
views
Prestashop bin/console do not show output
We are working on prestashop 1.7.5.1 / Php 7.3.
Website is working well. But we are not able to get bin/console output.
Command like php bin/console list -vvv has no output...
Any idea how we could ...
1
vote
4
answers
55
views
How to remove validation lastname from prestashop 1.7.8.3 backoffice
I have a question how to remove validation from LastName inside client address edit. I need to allow numbers inside this field.
I found here thread Prestashop : Remove Lastname Field Rules Validation ...
1
vote
0
answers
21
views
Problelm with adding product to cart in latest created accounts Prestashop - AJAX 500 ERROR
I was searching a answer to my problem for hours and i can't figure out what's going on.
I have w shop on Prestashop (ilashop.pl) and the latest created accounts can't add products to cart after ...
1
vote
1
answer
21
views
manipulate products array in actionPresentOrder hook in Prestashop 1.7.8.x
I'm attempting to manipulate thr products array in the actionPresentOrder hook as follows:
public function hookActionPresentOrder($params)
{
foreach ($params['presentedOrder']['products'] as &$...
0
votes
1
answer
32
views
Display of product attributes the same attributes group into two sections
I would like to divide the display of product attributes into two sections (front). Create two arrays, one with attributes with "premium" in the name and the other with the rest. Or sort ...
0
votes
2
answers
43
views
TinyMCE - Custom Button for inserting a specific template
I am using Prestashop. I have made several templates. Is it possible to prepare a button that will insert the selected template?
For example, I have 4 templates and I want to make 4 buttons.
the first ...
0
votes
3
answers
59
views
Prestashop cache won't clean
Currently I'm working with the newest prestashop version (1.7.x) and the theme called Leo Fashion Store. I'm trying to edit CSS file, however, as soon as I make the edit, changes won't show. It does ...
0
votes
0
answers
20
views
How to override method getDiscountsAction inside OrderController Prestashop 1.7.8
I have a question there is a way to override method getDiscountsAction(int $orderId) inside src/PrestaShopBundle/Controller/Admin/Sell/Order/OrderController.php?
I have overriden OrderController with ...
1
vote
2
answers
86
views
front controller of my module doesn't work neither shows any changes or validates order in prestashop1.7
I'm implementing external payment gateway. But Front controller does not show any changes in the frontoffice. Atleast it should throw some error(so it would be easy to understand) but instead it shows ...
0
votes
1
answer
56
views
How to show custom notifications or error message at admin panel for prestashop 1.7.7.7?
Hi,
I've been trying a lot of options to manage an exception and show an error at admin panel but nothing seems to work.
I'm at the postProcess method of a custom module. After the user sends a csv ...
0
votes
0
answers
21
views
Quick start installtion for prestashop
we have some issues to create a prestashop quickstart package, we change many files but not getting any success, we request you any author available on this platform who has already done this process, ...
0
votes
0
answers
22
views
Prestashop, lost the cache
i programming a module for prestashop 1.7.6.2 and try to use the cache, the problem is that this cache is not working, the idea is get the data from an api and save the data in cache, if this data ...
0
votes
0
answers
39
views
The payment screen total value does not matches with the total order amount in cart in prestashop 1.7
I'm implementing external payment gateway in PrestaShop 1.7. But the payment screen amount does not update or matches the cart value in total. It keeps on showing the value which i passed in the ...
0
votes
0
answers
32
views
Prestashop API: Internal server error 500 when creating a new category
I'm trying to create a new category through Prestashop API. Acually it works (a new category is created) but I receive an internal server error 500. No additional information (no body), only error 500....
0
votes
0
answers
35
views
Prestashop 1.7 - Create a custom sorting method and subsequent display of the products in the categories of the site
I created a new sorting method for products with the "getAvailableSortOrders"
private function getAvailableSortOrders(){
return [
(new SortOrder('product','priority','asc'))-&...
0
votes
0
answers
23
views
How to call several methods of a class instance?
I would like to execute two functions of a class, during the same instantiation.
I need two tasks to run at the same time.
See here :
First file : manage_stock_service.php
<?php
require_once ...
0
votes
0
answers
29
views
When I click on admin category menu , it redirects to admin login page prestashop 1.7.6
I logged in to the PrestaShop admin and goes to the category menu but after some time it logged me out because of session/inactivity.
It redirects me to admin login page with redirect category ...
0
votes
1
answer
27
views
How to create Quickstart Installation package for prestashop 1.7?
I want to create Prestashop theme quickstart package, But I did not found any way.
For more details..
I want to deliver to my client the template, that I have designed on my localhost.
And client can ...
0
votes
0
answers
27
views
Prestashop 1.7.7.7 - List theme & modules translation strings
I've been trying to make a module that will translate missing translation strings in modules and theme using an external translation service. The problem is I am not able to retrieve a full list of ...
1
vote
1
answer
46
views
Prestashop currentLocale is null in module
When I try to call in my module Context::getContext()->currentLocale->formatPrice($price, $currency); or $this->context->currentLocale->formatPrice($price, $currency); code fails ...
0
votes
0
answers
35
views
fix php parameter called intl extension during prestashop installation
I am going to install Prestashop. When the system compatibility step is under the required PHP parameters header, an error is displayed saying "Intl extension is not loaded." Can anyone help ...
1
vote
1
answer
67
views
How can we escape all double quotes in prestashop?
I'm using prestashop as a cms and i want to display specific products on a page.
I found a module to do so by writing for example this line of code : [ph-product-cms id="1"] which will be ...
-1
votes
1
answer
81
views
Display Data from database other table to Prestashop 1.7.7.6 Product Page WITHOUT module in PHP
Display Data from database other table to Prestashop Product Page - Prestashop 1.7.7.6 WITHOUT module in PHP
Hello everyone
How can i display data from other table database in Prestashop Product Page -...
0
votes
1
answer
143
views
Display Data from database table of module to Prestashop Product Page - Prestashop 1.7.7.6
I find in internet a CRUD module (create, read, update, delete) and it works very well in backoffice of Prestashop 1.7.7.6
And now I want to select data from module table and display in front office ...
0
votes
2
answers
61
views
Show text for specific customer group in Prestashop 1.7
I would like to show the text in the basket for customer in groups with the ID number 4, 6, 7,
8,
In cart-summary.tpl file I write
{if $logged}{if $customer.id_default_group|in_array:[4, 6, 7, 8]}Test{...
0
votes
2
answers
43
views
Different records in tables "cart_product" and "order_detail"
We have a customer who, as a note, has a lot of daily orders.
The issue is that he punctually receives orders that have different records in the cart and order detail (tables "cart_product" ...
-1
votes
1
answer
42
views
Prestashop Custom Registration
I am new to Prestashop. I have solid PHP experience. I would like to know how to add customer groups on customer registration page manually or how to add custom fields. I have tried to search ways to ...
0
votes
1
answer
84
views
PRESTASHOP 1.7 Delete .html and category from URL
How to delete .html and category from URL?
NOW: {category:/}{id}{-:id_product_attribute}-{rewrite}{-:ean13}.html
I need: {id}{-:id_product_attribute}-{rewrite}{-:ean13}
Presta 1.7
PHP 7.2
0
votes
1
answer
31
views
Prestashop updateCategories() inconsistent times, works almost instantly sometimes and sometimes it slows to a crawl
Has anyone had any issue with using Prestashop's Product class updateCategories() before for updating lots of products categories at once? We're using this to map supplier categories to our own ...
1
vote
0
answers
26
views
Store data automatically at the end of checkout with OPC prestashop
I need to find a solution for the checkout with OnePageCheckoutPs.
When a user logged add data, like delivery and invoice, he must not force to click on the 'Update' button for store the datas but it ...
1
vote
1
answer
58
views
Prestashop container can't display css and js on front page
So i'am working with a containerazed Prestashop running with a db and phpmyadmin, in a docker-compose file. Everything works fine in the back of the shop but the front, the css and js isn't loaded at ...
1
vote
1
answer
49
views
IFNULL doesn't works my_sql
I'm trying to get a sql select inside an update, but always return null.
UPDATE ps_stock_available sa
SET sa.reserved_quantity = (
SELECT IFNULL(SUM(od.product_quantity - od....
2
votes
2
answers
149
views
Prestashop custom module routing issue after update to 1.7.8.4
I just updated a PrestaShop website from 1.7.8.3 to 1.7.8.4, everything worked fine, but I'm havine 404 errors on custom module routes.
On module install I register routes like:
$this->registerHook(...
1
vote
1
answer
35
views
PhP Fatal Error: Cannot use string offset as an array when i add values to a json
i have a JSon Array, and i would like to add (not edit) values, but when i try to add it, i get a fatal error.
Here is my code:
Error happens on the first $ext_data['order']['lang_iso']=$lang->...