From 0600594b03a9d5ccda9659d38598b693810ba4de Mon Sep 17 00:00:00 2001 From: Dmitrii Fediuk Date: Thu, 16 May 2024 03:30:37 +0100 Subject: [PATCH] 0.4.3 --- Payload/OQI.php | 9 ++++----- composer.json | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Payload/OQI.php b/Payload/OQI.php index f0e3de5..e533bbf 100644 --- a/Payload/OQI.php +++ b/Payload/OQI.php @@ -1,6 +1,5 @@ df_product_att_val_s($p, 'brand', null) + 'brand' => df_product_att_val($p, 'brand') # 2020-01-30 «Blankets & Throws» # 2020-02-01 String. # «The category this item is listed under in your business. @@ -28,7 +27,7 @@ static function p($i):array {$p = df_product($i); /** @var P $p */return [ ,'category' => df_csv_pretty(df_category_names($p)) # 2020-01-30 «Texas Tea» # 2020-02-01 String. «The color of the item.» - ,'color' => df_product_att_val_s($p, 'color', null) + ,'color' => df_product_att_val($p, 'color') # 2020-02-01 String. «ISO-4217 currency code for the price». ,'currency_code' => df_oqi_currency_c($i) # 2020-02-01 Integer. @@ -42,7 +41,7 @@ static function p($i):array {$p = df_product($i); /** @var P $p */return [ ,'item_id' => $i['product_id'] # 2020-01-30 «Slanket» # 2020-02-01 String. «Name of the item's manufacturer.» - ,'manufacturer' => df_product_att_val_s($p, 'manufacturer', null) + ,'manufacturer' => df_product_att_val($p, 'manufacturer') # 2020-01-29 «The Slanket Blanket-Texas Tea» # 2020-02-01 String. # «The item's name, e.g., "Men's Running Springblade Drive Shoes, US10"» @@ -56,7 +55,7 @@ static function p($i):array {$p = df_product($i); /** @var P $p */return [ # 2020-02-01 Integer. «Quantity of the item» ,'quantity' => df_oqi_qty($i) # 2020-02-01 String. «The size of the item.» - ,'size' => df_product_att_val_s($p, 'size', null) + ,'size' => df_product_att_val($p, 'size') # 2020-01-30 «004834GQ» # 2020-02-01 String. «If the item has a Stock-keeping Unit ID (SKU), provide it here.» ,'sku' => $i->getSku() diff --git a/composer.json b/composer.json index 6a039e3..58765eb 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "mage2pro/sift" - ,"version": "0.4.2" + ,"version": "0.4.3" ,"description": "Sift integration with Magento 2" ,"type": "magento2-module" ,"homepage": "https://github.com/mage2pro/sift" @@ -11,7 +11,7 @@ "homepage": "https://www.upwork.com/fl/mage2pro", "role": "Developer" }] - ,"require": {"mage2pro/core": ">=10.2.1", "mage2pro/phone": ">=1.1.0"} + ,"require": {"mage2pro/core": ">=10.9.6", "mage2pro/phone": ">=1.1.0"} ,"autoload": {"files": ["registration.php"], "psr-4": {"Dfe\\Sift\\": ""}} ,"keywords": [ "eCommerce"