• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

"properties should not be accessed directly" issue during WooCommerce 3.0 checkout

phpwordpressobjectwoocommercecheckout


PHP Snippet 1:

    $OrderID= ( WC()->version < '2.7.0' ) ? $order->id : $order->get_id();
    $shipping_country   = (  WC()->version < '2.7.0' ) ? $order->shipping_country : $order->get_shipping_country();

Related Snippets

How to run a shell as root from php (apache)

Query Optimization, changing the queries in the loop into a single processing query

Woocommerce Edit Message "An account is already registered with your email address. Please log in."

Laravel 5.2: Unable to locate factory with name [default]

Filter WooCommerce related products by Polylang language

Vimeo API: how to save a vimeo into a subfolder?

How to disable widget block editor of WordPress?

Get WooCommerce products from specific category

WordPress Subquery returns more than 1 row on SELECT

unable to load your default controller on Codeigniter

Return new collection without modifying original collection

how to create html table in php

Codeigniter, Severity: error --> Exception: Too few arguments to function, admin dashboard shows HTTP error 500

Move a child array to parent array and change parent/child name

LARAVEL: How to fetch id dynamically in a query builder?

About Contact Privacy policy Terms and conditions