• 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

Laravel whole batch is cancelled if one Job fails

Hi, I am making a contact form thingy, and my php isn't working any reason why?

How to properly set "0000-00-00 00:00:00" as a DateTime in PHP

(Cache::lock()) -> get() -- Under what conditions does it return false?

Prestashop cUrl Login

How to redirect to another page and call a Function there on Angular ng-click

phpunit - testing is painfully slow

Remove product downloads section in woocommerce email notifications

Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255

Put content of wordpress page inside div

PHP array, move keys and values to new array, but mix it up

printing all running session variable in laravel 5.1

Smarty: undefined extension class 'Smarty_Internal_Method_Get_Template_Vars'

No definition found for function in vendor vscode

woocommerce change position of price

About Contact Privacy policy Terms and conditions