Skip to content

Commit

Permalink
Merge pull request #58 from wuunder/development
Browse files Browse the repository at this point in the history
fix deprecated functions
TimD90 authored Apr 19, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents fb962b0 + 4c90017 commit f863f3b
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -8,6 +8,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).

## Released

## [2.7.24](https://github.com/wuunder/wuunder-webshopplugin-woocommerce/tag/2.7.24) - 2022-04-19

### Fixed
- Replaced deprecated WC functions

## [2.7.23](https://github.com/wuunder/wuunder-webshopplugin-woocommerce/tag/2.7.23) - 2022-04-14

### Fixed
2 changes: 1 addition & 1 deletion includes/checkout.php
Original file line number Diff line number Diff line change
@@ -148,7 +148,7 @@ function wcwp_get_order_weight($order_id)
if (sizeof($items) > 0) {
foreach ($items as $item) {
// Create the product
$product = $order->get_product_from_item($item);
$product = $item->get_product();
// Set item weight
$weight = $product->get_weight();
$weight_unit = get_option('woocommerce_weight_unit');
4 changes: 2 additions & 2 deletions includes/wcwuunder-create.php
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ public function __construct()
$this->version_obj = array(
'product' => 'Woocommerce extension',
'version' => array(
'build' => '2.7.23',
'build' => '2.7.24',
'plugin' => '2.0'),
'platform' => array(
'name' => 'Woocommerce',
@@ -493,7 +493,7 @@ public function wcwp_get_order_items($order_id)
$images[] = $image[0];

// Create the product
$product = $order->get_product_from_item($item);
$product = $item->get_product();

// Set the variation
if (isset($item['variation_id']) && $item['variation_id'] > 0) {
4 changes: 2 additions & 2 deletions woocommerce-wuunder.php
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
* Plugin Name: Wuunder for-woocommerce
* Plugin URI: https://wearewuunder.com/wuunder-voor-webshops/
* Description: Wuunder shipping plugin
* Version: 2.7.23
* Version: 2.7.24
* Author: Wuunder
* Author URI: http://wearewuunder.com
*/
@@ -57,7 +57,7 @@ class Woocommerce_Wuunder {
public static $plugin_path;
public static $plugin_basename;

const VERSION = '2.7.23';
const VERSION = '2.7.24';

public function __construct() {

0 comments on commit f863f3b

Please sign in to comment.