Questions tagged [prestashop]

1

votes
0

answer
72

Views

Prestashop Paypal module

I have a Prestashop v1.6.1.3 and I installed Paypal official module from Prestashop (v3.11.4). This module appears broken on screen and completely inoperative. It seems like javascript is broken, this is a screen capture of it. I don detect any javascript or PHP errors on logs, more than this one on...
K. Weber
1

votes
1

answer
331

Views

Prestashop language redirection not working

As I understand when adding multiple languages the root URL should automatically redirect to the browser's language, or the default language. http://example.com should redirect to http://example.com/fr/ for French for example. On localhost it works, there is a 301 (or 302) returned . But when I try...
andrei
1

votes
0

answer
158

Views

import csv with empty title or description in Prestashop

I have a csv file with over 10,000 products but when i try to import i get the below error Property Product->description is not valid Property Product->name is not valid So when i checked those products in the csv, they dont have a description or title. Since there are over 10000 products its very d...
LiveEn
1

votes
0

answer
236

Views

Which Prestashop file do i modify to change the form method and form action of the search function?

I have just installed the latest version of Prestashop with the default theme named classic. I want to change the way the search function works. Eg. change it from get to post, and change the form action to a different location, change the type of button etc. I have attempted to modify the following...
jonny b
1

votes
2

answer
380

Views

PrestaShop 1.7 - search products by tag

I noticed that in PrestaShop 1.7 you can tag products. Is it possible to search for products by their tags programmatically? So for example if I wanted to find products which contain any of the ['madcow, crazydog, happyant'] tags, how do I approach it? $this->context->getProducts('tag', ['madcow, cr...
Novice Coder
1

votes
1

answer
113

Views

Smarty variable in all template

i'm creating new module for prestashop 1.6. i've registered this module (named spedizioneassicurata) on extraCarrier hook. In the install function i've public function install() {..... return parent::install() && $this->registerHook('header') && $this->registerHook('extraCarrier') && Configuration:...
Cesario Bortone
1

votes
1

answer
39

Views

How to improve the display of images?

After installing the template, there was a problem with displaying images on the listing. I will just add that everything was fine on the old template, I reloaded all the pictures, and as I upload them, they all have a dimension of 800x800 px. How can I fix this problem? Here is the image: And here...
Kazunarii
1

votes
0

answer
310

Views

What is the best way to add javascript to Prestashop 1.6

I have very strange problem. I was create a module which add javascript code to head and the codeis display. This is Merchant Review from Google. When client payed for product then this code should display a popup with question. I create a if conditions which display this code only after payment mod...
Adam Kowalski
1

votes
0

answer
215

Views

Why Prestashop's checkout template doesn't extend page.tpl?

In prestashop 1.7, the checkout template file themes/classic/templates/checkout/checkout.tpl uses its own html structure instead of extending page.tpl, like every other checkout pages (cart, order confirmation, etc). Why is that? Is there any security flaw we should be aware of? I've overriden check...
Flo
1

votes
0

answer
45

Views

Presta Accessing Products before addToCart

In Presta 1.6 there was the possibility to use the JS ajaxCart Object to add ajax functions to alter your products before they are appended to the Cart. I am trying to rediscover such an ability in Presta 1.7 where apparently the ajaxCart Object is no longer defined. Unfortunately I do not have code...
user3154108
1

votes
0

answer
252

Views

Set default combination automaticly based on stock Prestashop 1.7

i need Prestashop to: Check stock of combinations from a product. If a combination is out of stock, set default combination to a different combination which is in stock. This way the shop will not show : 'out of stock' at the product, on the category listing. Makes no sense, because the product is n...
KRMIS
1

votes
0

answer
314

Views

Prestashop 1.7 product combination price with TAXes

I'm making combinations' table on product page and I am looping through it making table out of this in short: {foreach from=$combinations key=comboid item=combination} {$combination.attributes_values.4|escape:'html':'UTF-8'} {$combination.price} {/foreach} but the price it's showing is without taxes...
Paul Mark
1

votes
1

answer
467

Views

disable a module in prestashop without admin panel

I installed HTMLbox module, in order to add ZENDESK Chat widget. After saving widget script. The page www.dulzuria.com CRASHED. I can no longer access the site, neither the admin panel. I know that in Wordpress it's enough to change the plugin name in order for the plugin not to be loaded. What is t...
Albert Sauqué
1

votes
1

answer
647

Views

Google analytics in Prestashop 1.7 admin

I'm trying to insert Google Analytics into our backoffice, does anyone have found the good file to edit or a module for this ? So far I tried with /admin/themes/templates/header.tpl but it failed sadly. Did anyone achieved to do this ?
Blue Learning
1

votes
0

answer
114

Views

WrapperTop hook not working, prestashop 1.7

I created a module that works correctly on my localhost, but when I install on my client server (same version of Prestashop, i.e 1.7), the hook 'DisplayWrapperTop' does not work (i.e when I return a .tpl file in it or if I echo something nothing shows up). I am looking for a way to debug this situat...
poutinsqqq
1

votes
1

answer
1.4k

Views

Modify the customer address form in prestashop 1.7 front office

I have configured this tpl for client addresses, the file is called 'address-form.tpl' and has the following content {block name='address_form'} {include file='_partials/form-errors.tpl' errors=$errors['']} {block name='address_form_url'} {/block} {block name='address_form_fields'} {block name='form...
edica
1

votes
0

answer
450

Views

cart always empty Prestashop 1.7.2.4

I have a cart problem. Whenever I add a product to the cart, it remains empty. (cookies, caché, have been cleaned) (www.domain.fr or domain.fr does not change a thing)(enable disable SSL don't change a thing). Products are in stock. In the back office, each time a add a product to the cart it creat...
Melo4Kids
1

votes
2

answer
1.3k

Views

Prestashop : Declaration of AdminLoginControllerCore::viewAccess() must be compatible with AdminControllerCore:

I was using prestashop on hosting with no problem. Now I started my home web server and I'm trying to get it working. I tried many different prestashop versions and reinstalled them x times.. All the time problem is that, I can Access front panel, but not the backend panel.. All the time it shows Ht...
Car Paradise
1

votes
1

answer
473

Views

Prestashop 1.7 remove (Hash) #/1-size-4 from URL

I want to remove the #/1-size-4 ( or whatever attribute is there ) from the product URL. It adds that to the product URL from anywhere and i have friendly URL's activated ( and a module to remove ids from the URL ) and i've searched all over the code to see how to remove it. Is it possible to remov...
Ciubakka
1

votes
1

answer
201

Views

Overriding a class in prestashop

I tried to create override for classOrderCore, located in /classes/order/Order.php. The result I put in /override/classes/order/Order.php with following content: class Order extends OrderCore { /** * Generates reference number. * * Overriten to have reference numbers numeric only. */ public static f...
Gomi
1

votes
2

answer
41

Views

Reference code at the and of all product name

I have a table ps_product with: ps_product ------------------------- |id_product |reference | ------------------------- |1 |c11111 | |2 |x222222 | |3 |x222222 | ------------------------- and a table ps_product_lang with: ps_product_lang -------------------------...
Mirco
1

votes
1

answer
101

Views

Prestashop $product->save() won't always save

I'm sending some data via cURL to PS SitemapController i overwrote : With that data i proceed in a custom function like that : $product = new Product($_POST['id']); $product->price = $_POST['price']; $product->wholesale_price = $_POST['wholesale_price']; $product->unity = $_POST['unity']; $product->...
dakaj
1

votes
0

answer
50

Views

PrestaShop - Changing carrier list depending on product attributes

i need to change some carrier list when product has some category id. Where should I start to achieve that. I thought about adding some global variable and modify Cart.php & Carriers.php. Or maybe the correct approach is by hooking beforeCarrier?
kermit esea
1

votes
0

answer
230

Views

TECHNICAL ERROR: unable to load form. Details: Error thrown: [object Object] Text status: parsererror

I'm sorry to bring back this old subject but I'm facing an issue that even surprises me, my PrestaShop store is throwing this error when a user wants to log in. TECHNICAL ERROR: unable to load form. Details: Error thrown: [object Object] Text status: parsererror I tried almost everything, I disable...
Tgold brain
1

votes
1

answer
91

Views

vuejs2 get return network error

I am trying to access a prestashop API with vuejs2 import axios from 'axios' export default { data () { return { get: [], errors: [] } }, created () { axios({ method: 'get', url: 'https://myprestashopsite.com/api/categories/?ws_key=J***************Z&filter[id_parent]=5&output_format=JSON' }).then(re...
1

votes
0

answer
100

Views

How to add a fee to COD payment method Prestashop?

I need to charge a fee on COD payment method but since my project has been changed many time for other programmers, im not really sure where should i apply it in source. Related post
Joel Rodrigues
1

votes
1

answer
113

Views

Prestashop WebService “limit” parameter not working as expected

I'm trying to use the limit parameter in PrestaShop's WebService. My problem is it's only half working, the number of entries to display is working fine, but the 'starting point' is not. For example: http://example.com/api/combinations?display=[id,reference]&limit=[0,500]&sort=id_ASC&ws_key=WEBSERV...
Pier
1

votes
1

answer
267

Views

Calling prestashop webservices returns "Parameter must be an array

When calling a client's prestashop webservices with the url: https://www.shop.com/api/categories?display=full' I get the following error: They switched servers and the problem was not on the old server but the new. They say, that everything is as it should be, but I suspect there might be a problem...
Dennis C
1

votes
2

answer
1.2k

Views

Prestashop 1.7 template not pass variable

I have a problem that I can not solve. in prestashop 1.7 I have a tpl file called product.tpl where inside, besides the various data, I call a file with the following code: {block name='product_buy'} {block name='product_variants'} {include file='catalog/_partials/product-variants.tpl'} {/block} {bl...
1

votes
2

answer
32

Views

Show each result on a smarty multiple lines

I am trying to display the results of a table on several lines. I have a table with a key => value. Currently my code looks like this, but only displays one value: {$i = 0} {foreach from=$features item=feature} {if isset($feature.values) && $feature.id_feature == 199} {* *} {$feature.values[$i]|esca...
Chris99391
1

votes
0

answer
75

Views

Prestashop - Uncaught ReferenceError: displayFlags is not defined

I've got a problem with prestashop while trying to add some pages to block top menu - arrows adding pages not responding. In console we have: Uncaught ReferenceError: displayFlags is not defined at index.php?controller=AdminModules&token=d04a82c3f1df7e1137115c06fec191cc&configure=blocktopmenu&tab_m...
MariuszM
1

votes
0

answer
106

Views

Paginate subcategory prestashop

I create a pagination sub category under prestashop but I encounter a difficulty. When I come to the last page, I have 2 empty pages that are added more. Here is my function in CategoryController: /** * Assigns subcategory templates variables */ protected function assignSubcategories() { // Get pagi...
CHRISCOM
1

votes
0

answer
443

Views

Prestashop Admin performance page and Information page saying not found

I am using prestashop version 1.7.3.2 Now my admin Performance page and Information page shows page not found message. How can I fix this?
Sarath E
1

votes
0

answer
35

Views

Script export information

I realize a script of export of information between two dates and I meet a small difficulty. Here is the scenario of my script: First column: Exporting sponsor names Second column: Export the number of godchildren total godfathers Third column: Total sales of the sponsors that we generate Fourth col...
Chris99391
1

votes
1

answer
79

Views

Prestashop multishop script to associate product to a secondary shop

I am building a custom script that needs to associate some already existing products to a second shop in a multishop scenario, with exactly the same data as the first shop (including pictures, features etc.). I see the 'associateTo' method to link the product object to the destination shop, so basic...
user3256843
1

votes
0

answer
407

Views

Prestashop 1.7 order details page not loading templates from layout

I'm using Prestashop 1.7.2.4. I installed a module called Universal Payment Module which is not entirely compatible with Prestashop 1.7. https://github.com/prestalab/universalpay/tree/ps17 After I select this payment option and I click on 'Order with an obligation to pay' I go to the order details p...
DavidM
1

votes
1

answer
245

Views

Facebook login redirect error Prestashop tmsociallogin

I have a problem with facebook login on Presta Shop. I am using TemplateMonster Social login plugin (tmsociallogin). It worked a few months ago but now it stopped. I am receiveng error: 'Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all...
Lucas
1

votes
0

answer
35

Views

PrestaShop Multistore API not working for additional stores

I have found this weird issue where the webservice API works correctly for the main store, but it redirects to a 404 for any added store (multistore configuration). Anybody has any idea about it? PrestaShop version 1.6.1.19 Theme Warehouse The multistore is being tested on a staging site, so maybe t...
JohnHaley
1

votes
1

answer
109

Views

Update stock_availables in Prestashop using python

I am trying to update the stock quantity on Prestashop using PrestashopApi. I have this and when I run it, it seems to remove the item from stock_availables. api = PrestashopApi('https://internalorders.vaulteksafe.com/api', 'mykey') data = {'stock_available': {'id': id, 'id_product': id_product, 'id...
robert woods
1

votes
0

answer
196

Views

Prestashop, put PHP file to product.tpl

I have a problem inserting third party module into my product.tpl file. Module itself is in separate .php file and it looks like this https://pastebin.com/zexzjjE9 I am unable to use the {php} tags since it's deprecated ant unacceptable. How could I insert this module into product page? All I can th...
The50

View additional questions