woocommerce | source ecommerce platform built on WordPress | Ecommerce library

 by   woocommerce PHP Version: nightly License: No License

kandi X-RAY | woocommerce Summary

kandi X-RAY | woocommerce Summary

woocommerce is a PHP library typically used in Web Site, Ecommerce, Wordpress applications. woocommerce has no bugs, it has no vulnerabilities and it has medium support. You can download it from GitHub.

If you have a patch or have stumbled upon an issue with WooCommerce core, you can contribute this back to the code. Please read our contributor guidelines for more information how you can do this.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              woocommerce has a medium active ecosystem.
              It has 8588 star(s) with 10795 fork(s). There are 590 watchers for this library.
              There were 10 major release(s) in the last 12 months.
              There are 2054 open issues and 21018 have been closed. On average issues are closed in 42 days. There are 156 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of woocommerce is nightly

            kandi-Quality Quality

              woocommerce has 0 bugs and 0 code smells.

            kandi-Security Security

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

            kandi-License License

              woocommerce does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              woocommerce releases are available to install and integrate.
              woocommerce saves you 144298 person hours of effort in developing the same functionality from scratch.
              It has 160195 lines of code, 6815 functions and 1144 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed woocommerce and discovered the below as its top functions. This is intended to give you an instant insight into woocommerce implemented functionality, and help decide if they suit your requirements.
            • Query the report data .
            • Prepare a product object for saving .
            • Save product meta data .
            • Render the helper output .
            • Get sales report .
            • Set product meta data .
            • Get order report data .
            • Adds a product to the cart .
            • Register taxonomies .
            • Get the database schema .
            Get all kandi verified functions for this library.

            woocommerce Key Features

            No Key Features are available at this moment for woocommerce.

            woocommerce Examples and Code Snippets

            No Code Snippets are available at this moment for woocommerce.

            Community Discussions

            QUESTION

            Add custom column with customer total spent on WooCommerce admin orders list
            Asked 2022-Feb-19 at 08:09

            We have a lot of returning customers so I'm trying to display user lifetime value (LTV - SUM of all past orders) on WooCommerce admin orders list to quickly identifiy best users.

            But I don't even know if that is possible. I have a custom column to see if it's returning buyers or not, but don't have idea where to start for LTV.

            My code for marking returned buyers:

            ...

            ANSWER

            Answered 2022-Feb-19 at 08:01

            You can use the get_total_spent() function, which return how much money a customer has spent

            So you get:

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

            QUESTION

            How to hide products from the products shortcode 'woocommerce_shortcode_products_query' using product ids
            Asked 2022-Feb-05 at 21:07

            I am using the woocommerce products shortcode to show some related products on a product page.

            The product shortcode is as follows:

            ...

            ANSWER

            Answered 2022-Feb-05 at 21:07

            You would need to use the 'post__not_in' argument of the WP_Query.

            So your code would be something like this:

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

            QUESTION

            Show product categories in a new column on WooCommerce "My account" orders table
            Asked 2022-Jan-31 at 14:38

            I want to add a custom column, to display the product categories on the orders history table in wooCommerce

            I found how to add a custom column but I can't seem to display the taxonomy's product linked to the order in this column.

            For this example, I had just 1 product, but if I can display more than one tax, it will be better.

            This is what I found (from : skyverge blog) to add a new column:

            ...

            ANSWER

            Answered 2022-Jan-31 at 14:38

            With your current code you can add a column between the existing columns, however:

            • The woocommerce_my_account_my_orders_columns filter is deprecated since WooCommerce 2.6.0. and replaced with woocommerce_account_orders_columns
            • The part to add content in the column is missing

            To add content you can use the woocommerce_my_account_my_orders_column_{$column_id} hook, where $column_id need to be replaced by order-category in this particular case

            So you get:

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

            QUESTION

            Change currency symbol in WooCommerce emails notifications
            Asked 2022-Jan-16 at 11:03

            I am struggeling by changing the currency symbol in WooCommerce email notifications.

            Everywhere you can see the € currency, but as far as you open the emails, you find, that the currency there is £.

            I tried to add this function using Snipets:

            ...

            ANSWER

            Answered 2022-Jan-16 at 11:03

            This should fix the issue:

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

            QUESTION

            Trying to use Sheets as db to update prices in WooCommerce
            Asked 2022-Jan-13 at 02:14

            So I'm trying to use a single sheet as a price db to update prices in WooCommerce through the Woo API, using fetch. It works, my problem is that it apparently works depending on the size of the dataset? I'm not sure because I can't understand the error.

            UPDATED CODE

            ...

            ANSWER

            Answered 2022-Jan-13 at 02:14
            Modification points:
            • In your situation, it seems that the values of sku of container is not existing in the values of sku of data_obj. I thought that the reason for your issue might be due to this.
            • As a script for checking this, you can use const res = container.filter(e => !data_obj[e.sku]) for your script. In this case, [ { sku: 'L4943-0ULT', id: 3195, price: '5083.33' } ] is returned. When this value is searched from your sample Spreadsheet, l4943-0ult is found. In this case, the character case is different. By this, your issue occurs. I resulted in the reason of your issue is due to this.

            When this issue was removed, how about the following modification?

            From:

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

            QUESTION

            How to display a custom message during WooCommerce checkout to customers who previously purchase products with order status of 'processing'
            Asked 2022-Jan-03 at 13:18

            I will like to display a message on the checkout page notifying the customers that they have purchased this product in the past (the product they are about to purchase), but this message should only run if these conditions are met.

            1. Customer must be logged in
            2. User role is administrator or customer
            3. previously purchased product should still have order status of 'processing.'

            So far, I have been able to get the first 2 conditions working fine:

            ...

            ANSWER

            Answered 2022-Jan-03 at 10:36

            according to this article:

            you can implement such a login as below :

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

            QUESTION

            Get an element of a struct array by attribute value in a Golang template
            Asked 2021-Dec-27 at 22:27

            I want to display the value of a certain WooCommerce product custom attribute in a Golang template.

            ...

            ANSWER

            Answered 2021-Dec-27 at 22:27

            There is no simple way to do this with templates. You have to first find the entry you need, and then look at its contents

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

            QUESTION

            How to define an icon for a custom product data tab in WooCommerce
            Asked 2021-Dec-19 at 17:15

            I have created a custom product data tab in WooCommere using:

            ...

            ANSWER

            Answered 2021-Dec-19 at 17:15

            html-product-data-panel.php is not a template file. So NEVER EDIT PLUGIN FILES! When WooCommerce gets updated, it overwrites the installation with any new updates included in the release. If the core has been chopped up and modified beforehand, it’ll wipe out those changes.

            That means big sections of the installation will just stop working. Modifying the core can have all kinds of unintended consequences, like preventing updates from working correctly, further screwing up an installation.

            Even worse is the potential to introduce unintended security vulnerabilities. Messing with core files could easily introduce a hole allowing hackers to take over a site.

            The icon is assigned via CSS:

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

            QUESTION

            Woocommerce how to redirect a custom end point on my-account page
            Asked 2021-Dec-17 at 16:27

            It's the continue of my previous question

            Woocommerce how to exclude the child pages (endpoints) of myaccount from the template redirect hook?

            The login-register form has to be shown only like popup, so I've made redirect, to avoid default my-account page for not logged users. I use that code to make redirect from my-account page itself, and to exclude 'lost-password' from that rule, to make possible for non-logged users to renew their passwords.

            ...

            ANSWER

            Answered 2021-Dec-17 at 16:12

            You've got those redirect rules mixed up! Try the following snippet:

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

            QUESTION

            WooCommerce extend product search by custom product data field
            Asked 2021-Dec-17 at 08:36

            I'm currently trying to extend the WooCommerce product search so that the search uses my custom field I've created within the general product data section:

            ...

            ANSWER

            Answered 2021-Dec-17 at 08:36

            I think I have found a way after some testing. First, I've debugged the WC function where the action gets applied, but changed my approach since I was making no progress. I've now extended the post search via the given WordPress filter:

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

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

            Vulnerabilities

            The WooCommerce plugin before 4.7.0 for WordPress allows remote attackers to view the status of arbitrary orders via the order_id parameter in a fetch_order_status action.
            WooCommerce before 3.6.5, when it handles CSV imports of products, has a cross-site request forgery (CSRF) issue with resultant stored cross-site scripting (XSS) via includes/admin/importers/class-wc-product-csv-importer-controller.php.

            Install woocommerce

            You can download it from GitHub.
            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

            WooCommerce DocumentationWooCommerce Developer DocumentationWooCommerce Code ReferenceWooCommerce REST API Docs
            Find more information at:

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

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/woocommerce/woocommerce.git

          • CLI

            gh repo clone woocommerce/woocommerce

          • sshUrl

            git@github.com:woocommerce/woocommerce.git

          • 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 woocommerce

            FlexSlider

            by woocommerceJavaScript

            storefront

            by woocommercePHP

            action-scheduler

            by woocommercePHP

            wc-api-php

            by woocommercePHP

            woocommerce-blocks

            by woocommerceTypeScript