Learn how to set up, customize, and expand the functionality of your WooCommerce products with our library of documentation and tutorials.
  1. Documentation /
  2. Codex

Codex

Docs

  • Check if a Payment Gateway Support Refunds, Subscriptions or Pre-orders

    Check if a payment gateway supports refunds, subscriptions or pre-orders by looking at gateway code. Simplify Commerce example In case you should search for $this->supports, as shown in the example below from the Simplify Commerce gateway: class WC_Gateway_Simplify_Commerce extends WC_Payment_Gateway { /** * Constructor */ public function __construct() { $this->id = ‘simplify_commerce’; $this->method_title = __( ‘Simplify Commerce’, ‘woocommerce’ ); $this->method_description […]

  • Configuring caching plugins

    Excluding pages from the cache Oftentimes if using caching plugins they’ll already exclude these pages. Otherwise make sure you exclude the following pages from the cache through your caching systems respective settings. Cart My Account Checkout These pages need to stay dynamic since they display information specific to the current customer and their cart Excluding […]

  • Customizing WooCommerce: Best Practices

    The best thing about WordPress and WooCommerce is code and content can be changed to suit — modify and customize your website entirely. Flexibility is one of the greatest benefits to using WooCommerce to sell online. Plugins, extensions and themes can be used to fulfill requirements, then adjusted and coded to tailor the look and […]

  • Extension Translations

    WooCommerce is beginning to translate WooCommerce.com-owned extensions into multiple languages. We will be highlighting the supported languages in a new field on each product page as well as a country flag to identify if the extension works in that location. We have plans to translate WooCommerce owned extensions in 2020 and are starting with Spanish. […]

  • SSL and HTTPS and WooCommerce

    SSL creates a secure connection between two machines or devices over the Web or an internal network, safeguarding and allowing sensitive data to be privately transmitted. An SSL certificate is issued after verifying the authenticity of a website and identity of its owner, as indicated by the ‘S’ in https. Many payment gateways require it. […]

  • Translating Our Videos

    We’ve got a large and ever growing library of videos covering just about anything we do here at Woo. From setting up WooCommerce to navigating your account on WooCommerce.com and more. The one thing we can’t do is translate these videos into every language in the world. WooCommerce is used all around the world on […]

  • Translating WooCommerce

    WooCommerce is already translated into a few languages and does come translation-ready out of the box. All that’s needed is a translation file for your language. There are several methods to create a translation, most of which are outlined in the WordPress Codex. In most cases you can contribute to the project on translate.wordpress.org. For creating […]

  • Using Webhooks

    What are Webhooks? A Webhook is an event notification sent to a URL of your choice. Users can configure them to trigger events on one site to invoke behavior on another. Webhooks are useful for integrating with third-party services and other external API that support them. Webhooks in WooCommerce Webhooks were introduced in WooCommerce 2.2 and can […]

  • WooCommerce Cookies

    A summary on cookies, and how WooCommerce uses cookies. What are cookies? Cookies are small pieces of data, stored in text files, that are stored on your computer or other device when websites are loaded in a browser. They are widely used to ‘remember’ you and your preferences, either for a single visit through a […]

  • WooCommerce REST API

    Requirements WordPress permalinks must be set to something that is easily human readable at: Settings > Permalinks. Day and name is a great default, but anything aside from Plain should work Generate API keys The WooCommerce REST API works on a key system to control access. These keys are linked to WordPress users on your […]


More in Codex

WooCommerce

The most customizable eCommerce platform for building your online business.

  • 30-day money-back guarantee
  • Support teams across the world
  • Safe and secure online payment