prestashop | PrestaShop module to integrate with MyParcel NL and BE | Natural Language Processing library
kandi X-RAY | prestashop Summary
kandi X-RAY | prestashop Summary
PrestaShop module to integrate with MyParcel NL and BE
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of prestashop
prestashop Key Features
prestashop Examples and Code Snippets
Community Discussions
Trending Discussions on prestashop
QUESTION
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 prestashop product page tpl file
How can i do ?
please help me
Thanks You very much in advance
structure of crud module moduletest :
...ANSWER
Answered 2022-Apr-03 at 17:03You need to select hook there data will be displayed
Than add this hook to your moduletest.php file in two places.
For example to show data on product page near price block you can use hook ProductPriceBlock
There is public function install() in yor module. It will register hook, so prestashop knows that it`s function need to be called
QUESTION
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 categories and we need to change 100's-1000's of products categories. The problem we're running into is that updateCategories usually slows down to a crawl when updating larger amounts of products 100+ and will take hours to do it.
I've checked the timings of it running on 50 products and sometimes it updates them fine and sometimes it starts slowing down immensely after 30-40.
One other thread suggested it might be an action hook triggering on updateCategories(), but even after disabling / overriding the modules with this hook (ps_mainmenu, ps_facetedsearch) it still didn't fix it.
Our shop currently has ~150 000 products and 300+ categories, the server hardware shouldn't be a problem, checked the metrics and nothing was bottlenecking it.
Would love to hear any suggestions on where the problem could be originating from, or a way to find out what's causing it myself.
Attaching an example script for bulk updating categories.
...ANSWER
Answered 2022-Mar-22 at 10:50The issue was with the cleanPositions() method in Products class, it was recalculating positions as @user3256843 mentioned in the comments, I'll be looking to override / write a different method for myself to use.
QUESTION
I'm trying to get a sql select inside an update, but always return null.
...ANSWER
Answered 2022-Mar-14 at 11:03You need to put the ifnull check on the outer query, not the inner, which can return no rows.
You can use coalesce here, such as:
QUESTION
at prestashop 1.7 how could I access Configuration::get('PS_LAST_QTIES') at core.js?
Thank you, Miguel Gibert
...ANSWER
Answered 2022-Mar-03 at 09:30I've sorted it out by passing the variable through the ProductController.php
at $this->ajaxRender(Tools::jsonEncode([
I added: 'ps_last_qties' => Configuration::get('PS_LAST_QTIES')
and then I received it at core.js: o.default.on("updatedProduct", function (e) {
and was able to use it as e.ps_last_qties
QUESTION
I am creating a module in Prestashop with Symfony but when I try to access my routes I get this error:
The controller for URI "/modules/youtuber/list" is not callable: Class "Myyoutubemc\Controller\YoutubeController"
Below is my controller
it's located in:
/modules/myyotubemc/src/controllers/youtubeController.php
ANSWER
Answered 2022-Mar-01 at 10:55You have to install composer or just dump autoload classes.
QUESTION
I build a site on prestashop with a child theme based on the classic theme. For my needs i've got a page for main categories with an hero section where i display the main category name, the cover image of the category, the sub-categories and a description. (see on the attached image)
Now i need to keep this section like that when i go to the sub-category page. Keep the title, image, sub-categories, etc. Just the content must change.
For now there is my code to display this hero section, located in the layout-left-column.tpl (to be before all the main content and after the header) :
...ANSWER
Answered 2022-Feb-28 at 14:42[UPDATE] Problem Solved
I finaly solved my problème with this topic : Prestashop subcategory parent
And with adaptations :
In a custom module class where i create a function :
QUESTION
I have a prestashop shop that uses social login. And a few days ago when the customer tries to log in this message appears.
You cannot login to this application because it does not comply with Google's OAuth 2.0 policy.
If you are the developer of the app, please register the redirect URI in the Google Cloud Console.
I have edited the redirect address, as I didn't have a secure link, I had the same address, but http instead of https.
I changed the address a few days ago, but I still get the same message and the old, unsecured address.
The message when changing the url indicated that it could take minutes or hours, but it has been several days and the address has not been updated.
Any idea? Thanks!
...ANSWER
Answered 2022-Feb-21 at 10:59While using Google OAuth for OpenID login, you have 2 levels of configuring your redirect URI.
- Configure the allowed redirect URIs in your OAuth credentials screen in the Google cloud console.
- Configure the same redirect URI in your application which sends the authorization request. Your authorization request should comprise of the same redirect URI.
As you mentioned, you might have updated your OAuth credential redirect URIs in console, but your app might be sending authorization response with the old URL itself. So, it will get rejected.
And yes, make sure the URI is an exact match. AFAIK, even a trailing slash can create problems.
QUESTION
I'm new in prestashop and there is a thing that i don't understand.
I need to add a function that get a file CSV and stock all in a array. This function will be added in a exixsting Class in this path "/modules/sdevmanomano/classes/MyClass.php" Now i have to test the new function, and it the end of the class (out of the {}), i did a var_dump of my object.method(). When i go at the adress of file in my browser, i get nothing. (i m in the correct path). Why? Exemple:
...ANSWER
Answered 2022-Feb-16 at 12:37Assuming you would want to use your php script outside a PrestaShop session within the module context, here is how you could require the PrestaShop configuration when on a stand-alone php script:
QUESTION
Any method to read Prestashop Cookies from Javascript ?
...ANSWER
Answered 2022-Feb-15 at 17:56You can get Cookie content in PHP and set into a template as JS variable.
You assign with PHP
QUESTION
What I want to accomplish is for the form to change as the user changes the form type from the radio.
Standard basically has 2 selects (one classic and a fancier one, made with ng-select) and custom has a simple classic text input.
I am trying to change the form's functionality dynamically as the form type changes using the radio.
Besides trying to use formBuilder.group, I also tried using .setValidators on the individual inputs, but the result is the same: when I change the radio and the custom_channel_name input is shown i get this console error "Error: Cannot find control with name: 'custom_channel_name'"
What am I doing wrong and how do I properly handle reactive forms in this fashion?
What I have so far looks like this: https://i.imgur.com/n24mKs7.png , https://i.imgur.com/FfCgXFX.png
[ component.html ]
...ANSWER
Answered 2022-Jan-27 at 18:25Documentation to the rescue! here is the official link to creating dynamic forms: https://angular.io/guide/reactive-forms#creating-dynamic-forms
basically you need formArray instead of formGroup for all the controls that are going to be conditionally visible on UI, read the docs and if it becomes difficult to understand then let me know I'll create a demo.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install prestashop
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page