PrestaShop | PrestaShop is the universal open-source software platform to build your e-commerce solution | Ecommerce library

 by   PrestaShop PHP Version: 8.1.0-rc.1 License: Non-SPDX

kandi X-RAY | PrestaShop Summary

kandi X-RAY | PrestaShop Summary

PrestaShop is a PHP library typically used in Web Site, Ecommerce, Nodejs applications. PrestaShop has no bugs, it has no vulnerabilities and it has medium support. However PrestaShop has a Non-SPDX License. You can download it from GitHub.

PrestaShop is an Open Source e-commerce web application, committed to providing the best shopping cart experience for both merchants and customers. It is written in PHP, is highly customizable, supports all the major payment services, is translated in many languages and localized for many countries, has a fully responsive design (both front and back office), etc. See all the available features. This repository contains the source code of PrestaShop, which is intended for development and preview only. To download the latest stable public version of PrestaShop (currently, version 1.7), please go to the download page on the official PrestaShop site.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              PrestaShop has a medium active ecosystem.
              It has 7275 star(s) with 4631 fork(s). There are 466 watchers for this library.
              There were 3 major release(s) in the last 12 months.
              There are 2524 open issues and 11472 have been closed. On average issues are closed in 237 days. There are 183 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of PrestaShop is 8.1.0-rc.1

            kandi-Quality Quality

              PrestaShop has 0 bugs and 0 code smells.

            kandi-Security Security

              PrestaShop has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              PrestaShop code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              PrestaShop has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              PrestaShop releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              It has 1740682 lines of code, 22790 functions and 9247 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed PrestaShop and discovered the below as its top functions. This is intended to give you an instant insight into PrestaShop implemented functionality, and help decide if they suit your requirements.
            • Import one product
            • Validate an order
            • Sends an email .
            • Show Kpi
            • Change order state
            • Returns the neutral value for a cart item .
            • Remove a product .
            • Map LocaleData to a LocaleData object .
            • Return the shipping cost for the package .
            • Initialize form back
            Get all kandi verified functions for this library.

            PrestaShop Key Features

            No Key Features are available at this moment for PrestaShop.

            PrestaShop Examples and Code Snippets

            No Code Snippets are available at this moment for PrestaShop.

            Community Discussions

            QUESTION

            Display Data from database table of module to Prestashop Product Page - Prestashop 1.7.7.6
            Asked 2022-Apr-03 at 17:03

            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:03

            You 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

            1. There is public function install() in yor module. It will register hook, so prestashop knows that it`s function need to be called

            Source https://stackoverflow.com/questions/71725143

            QUESTION

            Prestashop updateCategories() inconsistent times, works almost instantly sometimes and sometimes it slows to a crawl
            Asked 2022-Mar-22 at 10:50

            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:50

            The 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.

            Source https://stackoverflow.com/questions/71527861

            QUESTION

            IFNULL doesn't works my_sql
            Asked 2022-Mar-22 at 10:24

            I'm trying to get a sql select inside an update, but always return null.

            ...

            ANSWER

            Answered 2022-Mar-14 at 11:03

            You 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:

            Source https://stackoverflow.com/questions/71466632

            QUESTION

            How can I access Configuration::get('PS_LAST_QTIES') at core.js?
            Asked 2022-Mar-03 at 09:30

            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:30

            I'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

            Source https://stackoverflow.com/questions/71265896

            QUESTION

            Prestashop module with Symfony cant find the controller
            Asked 2022-Mar-01 at 10:55

            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:55

            QUESTION

            Prestashop: Get parent category informations from the sub-category page
            Asked 2022-Feb-28 at 14:46

            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)

            hero section

            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 :

            Source https://stackoverflow.com/questions/71255278

            QUESTION

            Days to update Error 400: redirect_uri_mismatch?
            Asked 2022-Feb-21 at 12:48

            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:59

            While 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.

            Source https://stackoverflow.com/questions/71202530

            QUESTION

            How check if new function is working on prestashop
            Asked 2022-Feb-16 at 12:37

            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:37

            Assuming 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:

            Source https://stackoverflow.com/questions/71128606

            QUESTION

            Access Prestashop cookies from JavaScript
            Asked 2022-Feb-15 at 17:56

            Any method to read Prestashop Cookies from Javascript ?

            ...

            ANSWER

            Answered 2022-Feb-15 at 17:56

            You can get Cookie content in PHP and set into a template as JS variable.

            You assign with PHP

            Source https://stackoverflow.com/questions/71124508

            QUESTION

            Why does *ngIf seem to break my reactive form? How do I handle conditional Inputs and validation in Angular?
            Asked 2022-Jan-27 at 18:25

            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:25

            Documentation 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.

            Source https://stackoverflow.com/questions/70879569

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install PrestaShop

            If you downloaded the source code from GitHub, read our guide on installing PrestaShop for development. If you intend to install a production shop, make sure to download the latest version from our download page, then read the install guide for users.

            Support

            For technical information (core, module and theme development, performance...), head on to PrestaShop DevDocs. If you want to learn how to use PrestaShop 1.7, read our User documentation.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Ecommerce Libraries

            saleor

            by saleor

            saleor

            by mirumee

            spree

            by spree

            reaction

            by reactioncommerce

            medusa

            by medusajs

            Try Top Libraries by PrestaShop

            prestashop-icon-font

            by PrestaShopCSS

            docker

            by PrestaShopShell

            PrestaShop-modules

            by PrestaShopPHP

            docs

            by PrestaShopScala