Skip to content

Commit

Permalink
0.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed May 16, 2024
1 parent b9342a0 commit 0600594
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions Payload/OQI.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php
namespace Dfe\Sift\Payload;
use Magento\Catalog\Model\Category as C;
use Magento\Catalog\Model\Product as P;
use Magento\Quote\Model\Quote\Item as QI;
use Magento\Sales\Model\Order\Item as OI;
Expand All @@ -20,15 +19,15 @@ static function p($i):array {$p = df_product($i); /** @var P $p */return [
# 2020-02-22
# "Provide an ability to choose a custom attribute for the brand information":
# https://github.com/mage2pro/sift/issues/16
'brand' => 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.
# e.g., "kitchen appliance", "menswear > pants".»
,'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.
Expand All @@ -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"»
Expand All @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 0600594

Please sign in to comment.