Questions tagged [prestashop-1.6]

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
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
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
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
1

votes
0

answer
135

Views

Some font-awesome not showing on Prestashop 1.6

I'm new using Prestashop 1.6. I'm facing with this issue. I can't see some font-awesome icons, as you can see on attach, (probably due to modules activated and then disactivated). I think issue is on global.css: div.star:after{ content: 'f005' } when i change this by chrome console in: div.star:aft...
Luciano
1

votes
0

answer
119

Views

PrestaShop module front controller

My prestashop module has couple of moduleFrontControllers and everything seems to work fine, but: PrestaShop >= v1.6.1.20 (PHP >= 5.6.37) on my local dev_platform and on production test platform - everything works fine. Couple of clients use it without any problems too. (example front controller url...
maciey_b
1

votes
2

answer
49

Views

Command FOR EACH ROW in mysql

Help me please.I want to create trigger in mysql server but server wrote me SQL query: Documentation CREATE TRIGGER `dis_out_of_stock` AFTER UPDATE ON `ps_stock_available` FOR EACH ROW begin UPDATE `ps_product_shop` SET active=0 WHERE id_product IN (SELECT id_product FROM `ps_stock_available` WHE...
Pavel Mišík
1

votes
1

answer
22

Views

Prestashop 1.6 Amount Tampering While Check Out

I have a shopping cart built in Prestashop 1.6 and I have integrated HDFC Payment Gateway in it . After an security audit the bank told me 'The test found one high-risk vulnerability (i.e. Amount Tampering)'. Resolution- Kindly maintain the session. I had not coded anything as Prestashop 1.6 is in...
Report Gladiatech
0

votes
0

answer
3

Views

Prestashop helperList reset filter not working

In prestashop 1.6.1.23, in a custom module, I have a form with a list created via HelperList $helper = new HelperList(); $helper->identifier = 'id_product'; $helper->table_id = 'js-product-list'; $helper->title = 'ProductList'; $helper->table = $table_nam...
j.kaspar
1

votes
3

answer
3.2k

Views

Prestashop how do i set a module for a single cms page?

I have a module named 'video gallery'. I want it to set for a cms page 'video' only . The cms page id is '12' . I have tried {if $cms->id == 12} in video_gallery.tpl doesnt work. Someone please help me thank you!
user1708597
1

votes
1

answer
4.2k

Views

Tabbed Content on Product Pages in prestashop

I've been trying to change the new 1.6 product.tpl to use tabbed content (similar to the default 1.5 theme), so that 'More Info', 'Data Sheet', 'Volume Discounts' etc each appears with a clickable tab that reveals the content. I'm not sure why this wasn't included? Would it mess up the responsivenes...
Prathamesh mhatre
1

votes
1

answer
420

Views

prestashop 1.6 backoffice consuming to much bandwidth

my prestashop 1.6 website is consuming to much bandwidth of my server. I track down the problem and it looks like it is the back office that is causing it. how can i fix this? do i have to disable any module?
Aljon Ngo
1

votes
1

answer
1.5k

Views

Overriding in module not working in prestashop

I am new to prestashop and developing a module to change behaviour of checkout process. As i am new, i am first overriding IndexController.php file in my module directory to just test the overriding mechanism in prestashop. The directory structure, i have followed, to override controller file as:...
user2393886
1

votes
1

answer
669

Views

PrestaShop - eCommerce software + Git Workflow

I was wondering if there are any PrestaShop users out there that have a good git workflow between local and production. I would like to know if anyone has tips for log files, etc etc Any help would be greatly appreciated. Cheers
BigJobbies
1

votes
1

answer
1.2k

Views

Retrieve info from additional field to product list

I'm using this free module sample to add new video url field to the product. Everything works fine, I can see new data in product.tpl, but I cant get data to product-list.tpl what is very important to me, I want to add play button to each product. I found that for this purpose I have to use hookActi...
DeividasJJ
1

votes
1

answer
2.4k

Views

Detect Prestashop Temp & Plugins

I have a question about PrestaShop. How can i detect which template and plugin/modules are using in a PrestShop site? For example this site. I couldnt find the details on source code (for template name, it writes kva; but i think its a fake name. i dont think they use full custom template) Thank yo...
user3283814
1

votes
2

answer
169

Views

categories from prestashop theme aren't displaing the corect names

I recently bought a prestashop theme. The theme is great but i have a problem. I've created the categories and they are displayed on the left column but on the top are displayed different names. i just can't find those names and I don't know what to do. here is a print screen: Those aren't my catego...
Rares Biris
1

votes
1

answer
1.2k

Views

Adding product type in prestashop add product page

Iam new to prestashop ,iam trying to add new product type in addition to Standard product,Virtual product ,Pack of existing products Added this in informations.tpl file < div class='radio'> {l s='Digital product (services, booking, downloadable products, etc.)'} i want to save this in new column is...
Rex Rex
1

votes
1

answer
1k

Views

Search products by price range, using default block search

Did someone know what have I to do, to make a possible search products by price range? I know, that Block Layered can filter by it, but it only works in specified category.
piterek
1

votes
1

answer
430

Views

Prestashop - Retrieve searched products results to custom module

I need to retrieve the ($search['result']) from SearchController.php in my module when user has performed a prestashop search result. My code is the next public function hookActionSearch($params) { $my_var = $this->context->smarty; //1st test $my_var = $this->context->controller; //2nd test $my_var...
JaviMetal
1

votes
1

answer
1.3k

Views

Prestashop 1.6: Pass new field value from checkout to order

I'm struggling to pass an additional field value from checkout process to order, but have no luck. Maybe somebody can help me? I've created input on checkout page, where the user enters a value. I need to write this value to new column in order, when the checkout is complete. I've extended ps_order...
Mykhailo
1

votes
1

answer
702

Views

How can I force module's install() function to copy files to override folder?

I'm creating a module which includes a new version of list_footer.tpl which exists in presta\admin1234\themes\default\template\helpers\list\list_footer.tpl So basically all I want from my module is to copy my list_footer.tpl to presta\override folder. Question is, how should I write the install() fu...
van_folmert
1

votes
1

answer
141

Views

Increase the maximum number of thumbnails per category

In the category management, AdminCategories, I can only upload 3 thumbnails. I want to increase the maximum number which is allowed. In addition I also want to increase the maximum file size. I don't found the solution in the method renderForm() in AdminCategoriesController.php
manupi26
1

votes
1

answer
3.3k

Views

How to use HelperList in prestashop

A learn to write module in Prestashop. And i need to use HelperList,but have problems with it. With HelperForm all ok. public function displayList() { $this->fields_list = array( 'id_email' => array( 'title' => $this->l('id_email'), 'width' => 140, 'type' => 'int', ), 'email' => array( 'title' => $t...
Vlad Mazur
1

votes
1

answer
606

Views

How to override footer.tpl in prestashop 1.6 back office?

I want to override 'footer.tpl' template file in the back office of prestashop 1.6 and remove the social network links from it. how can i do this? is it possible to do this using modules?
Amarilla
1

votes
1

answer
515

Views

map a website structure

I'd like to code my own website based on an existing opensource CMS (PrestaShop). There is some nice functionalities but also a bunch of code I won't need for my website (a simple B2B catalog with no fancy stuff). The CMS uses PHP (very different from what I learned 15 years ago) and .tpl files. I'm...
JackLinkers
1

votes
1

answer
1.6k

Views

prestashop 1.4 to 1.6 image missing issue

I've upgraded a Prestashop site manually from 1.4 to 1.6.I can get the category images to appear but not the product images. My product path on the old 1.4 site takes the following route .../img/p/11-638-home.jpg but version 1.6 is asking for Original image is missing or empty (/.../.../../img/p/1/1...
Balachandran
1

votes
2

answer
214

Views

Prestashop capitalize customer address

I need to capitalize all user data in Prestashop 1.6 - I've managed to get it done for name, etc. but I don't know where I can do this for the address. My guess is AddressController's processSubmitAddress() method, but I cannot find where does it take the input, so I can strotupper() that. Thanks f...
Baxet
1

votes
2

answer
895

Views

Prestashop attributes

I want to add product with many attributes in Prestashop (more then 4 select fields and each of them has 100 variants). But in the end it turns out that creates a lot of combinations (100^4=100000000 combination). How can I make an attributes without creating combinations? Make them independent from...
TechTG
1

votes
2

answer
2.1k

Views

Prestashop : Set shipping for all products in a category

I'm sorry if the question has already been asked, I allows me to create a post for I have not found an answer on Google. I wonder if it is possible, with PrestaShop 1.6.0.9, to setting a default shipping cost for all products in a category. example: I have 50 items in a category. I would change the...
MOWebCreation
1

votes
1

answer
2.3k

Views

Different prices for multiple countries in PrestaShop

I need to set up a store in PrestaShop 1.6 where the prices are different for every delivery country. Could someone point me to the correct approach of setting such a request? My current idea is to set up for each country a new shop in MultiStore, but having 107 countries is too time-consuming. Is t...
rosuandreimihai
1

votes
1

answer
243

Views

Object Oriented PHP issues using a class, involving PrestaShop module

What I want to accomplish I am altering a PrestaShop module that currently uses a form submitted by a user to generate files to be a stand alone CRON job. The module works perfectly in the back office, and involves nothing more than a user clicking a button; a repetitive task that should instead be...
Goose
1

votes
1

answer
419

Views

PrestaShop (1.6) move login button [closed]

Can you tell me how change login button position to the same row where the cart is? I don't want to destroy my tpl files.
joryl
1

votes
1

answer
318

Views

gem installed, but still get: error file to import not found or unreadable: compass

I am trying to compile .scss files of a Prestashop template locally using grunt-contrib-sass. It is configured as following: sass: { dist: { files: [{ expand: true, cwd: '_theme/themes/swat-theme/sass', src: ['*.scss'], dest: '../css', ext: '.css' }] } }, but I get the following error message: error...
1

votes
1

answer
905

Views

prestashop: Display method results in JSON

I'm going to develop a method inside my Prestashop module to fetch list of products and return the result as JSON. I have no problem to get list of products however I don't know to use which hooks and how to return JSON result instead of returning back to a Prestashop page.
VSB
1

votes
1

answer
1.4k

Views

Prestashop shipping cost depending of country

I'm working on upgrading my e-shop on Prestashop. I want to edit shipping (carrier) cost depending of what country this will be sent. In theory I want to put price for delivery = 1 in backoffice and then in code edit this depending of country/weight or other options. I think I find out function whic...
Aleksandr_A
1

votes
1

answer
171

Views

Prestashop - Bankwire file difference

Is anyone can explain what is the difference between payment_return.tpl(path ../bankwire/views/templates/hook/payment_return.tpl) and payment_execution.tpl (path ../bankwire/views/templates/front/payment_execution.tpl ) ? Why in payment_execution.tpl I can see CART/ORDER variables(such as country...
Aleksandr_A
1

votes
3

answer
98

Views

Show $params array('{item}' =>…)

Need some help. Have this code in PaymentModule.php in Prestashop: $params = array( '{voucher_amount}' => Tools::displayPrice($voucher->reduction_amount, $this->context->currency, false), '{voucher_num}' => $voucher->code, '{firstname}' => $this->context->customer->firstname, '{lastname}' => $this->...
Aleksandr_A
1

votes
1

answer
1.6k

Views

Prestashop - different prices for different ZONES

I have a case, using PrestaShop 1.6, that each product has a different price in each zone. Current solution: Set price for zone like a specific price per country for each country in zone - this surely works, but is quite unfortunate because: number of products * number of countries in zone = pretty...
jave.web

View additional questions