• 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

woocommerce change position of price

"Mixed content blocked" when running an HTTP AJAX operation in an HTTPS page

Limit login attempts in Laravel 5.7

Zig-zag scan an N x N array

Form Validation and Submission to database

Manage independently the decimal number of the price of each product [duplicate]

Add restriction to WooCommerce coupons by allowed user ID

Mysqli multi query error

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

How to redirect to another page after n seconds in wordpress without using javascript?

Live search query using JS and PHP for QA forum

How do I set the maximum php memory limit

Send Outlook 2010 email using PHP

woocommerce get_order_report_data to show order_item_id

PHP7 CLI attempts to load xdebug twice - "Cannot load Xdebug - it was already loaded"

About Contact Privacy policy Terms and conditions