ltsecurityinc安防产品在线商城代码
This commit is contained in:
+390
@@ -0,0 +1,390 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
namespace Magento\AdvancedPricingImportExport\Model\Export;
|
||||
|
||||
use Magento\AdvancedPricingImportExport\Model\Export\AdvancedPricing as ExportAdvancedPricing;
|
||||
use Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricing as ImportAdvancedPricing;
|
||||
use Magento\Catalog\Api\ProductRepositoryInterface;
|
||||
use Magento\Catalog\Model\Product;
|
||||
use Magento\Framework\App\Filesystem\DirectoryList;
|
||||
use Magento\Framework\Exception\NoSuchEntityException;
|
||||
use Magento\Framework\Filesystem;
|
||||
use Magento\Framework\Filesystem\Directory\Write;
|
||||
use Magento\ImportExport\Model\Export\Adapter\Csv as ExportAdapterCsv;
|
||||
use Magento\ImportExport\Model\Import;
|
||||
use Magento\ImportExport\Model\Import\Source\Csv as ImportSourceCsv;
|
||||
use Magento\TestFramework\Helper\Bootstrap;
|
||||
use Magento\TestFramework\Indexer\TestCase;
|
||||
|
||||
/**
|
||||
* Test for \Magento\AdvancedPricingImportExport\Model\Export\AdvancedPricing
|
||||
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||
*/
|
||||
class AdvancedPricingTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var ExportAdvancedPricing
|
||||
*/
|
||||
protected $model;
|
||||
|
||||
/**
|
||||
* @var \Magento\Framework\ObjectManagerInterface
|
||||
*/
|
||||
protected $objectManager;
|
||||
|
||||
/**
|
||||
* @var Filesystem
|
||||
*/
|
||||
protected $fileSystem;
|
||||
|
||||
/**
|
||||
* @var Write
|
||||
*/
|
||||
private $directory;
|
||||
|
||||
// @codingStandardsIgnoreStart
|
||||
public static function setUpBeforeClass(): void
|
||||
{
|
||||
$db = Bootstrap::getInstance()
|
||||
->getBootstrap()
|
||||
->getApplication()
|
||||
->getDbInstance();
|
||||
if (!$db->isDbDumpExists()) {
|
||||
throw new \LogicException('DB dump does not exist.');
|
||||
}
|
||||
$db->restoreFromDbDump();
|
||||
|
||||
parent::setUpBeforeClass();
|
||||
}
|
||||
|
||||
// @codingStandardsIgnoreEnd
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->objectManager = Bootstrap::getObjectManager();
|
||||
$this->fileSystem = $this->objectManager->get(Filesystem::class);
|
||||
$this->directory = $this->fileSystem->getDirectoryWrite(DirectoryList::VAR_IMPORT_EXPORT);
|
||||
$this->model = $this->objectManager->create(ExportAdvancedPricing::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @magentoAppArea adminhtml
|
||||
* @magentoDbIsolation disabled
|
||||
* @magentoAppIsolation enabled
|
||||
* @magentoDataFixture Magento/Catalog/_files/product_simple.php
|
||||
*/
|
||||
public function testExport()
|
||||
{
|
||||
$productRepository = $this->objectManager->create(ProductRepositoryInterface::class);
|
||||
$index = 0;
|
||||
$ids = [];
|
||||
$origPricingData = [];
|
||||
$skus = ['simple'];
|
||||
while (isset($skus[$index])) {
|
||||
$ids[$index] = $productRepository->get($skus[$index])
|
||||
->getId();
|
||||
$origPricingData[$index] = $this->objectManager->create(Product::class)
|
||||
->load($ids[$index])
|
||||
->getTierPrices();
|
||||
$index++;
|
||||
}
|
||||
|
||||
$csvfile = uniqid('importexport_') . '.csv';
|
||||
|
||||
$exportContent = $this->exportData($csvfile);
|
||||
$this->assertDiscountTypes($exportContent);
|
||||
|
||||
$this->importData($csvfile);
|
||||
|
||||
while ($index > 0) {
|
||||
$index--;
|
||||
$newPricingData = $this->objectManager->create(Product::class)
|
||||
->load($ids[$index])
|
||||
->getTierPrices();
|
||||
$this->assertEquals(count($origPricingData[$index]), count($newPricingData));
|
||||
$this->assertEqualsOtherThanSkippedAttributes($origPricingData[$index], $newPricingData, []);
|
||||
}
|
||||
|
||||
$this->removeImportedProducts($skus);
|
||||
}
|
||||
|
||||
/**
|
||||
* Assert for correct tier prices discount types.
|
||||
*
|
||||
* @param string $exportContent
|
||||
* @return void
|
||||
*/
|
||||
private function assertDiscountTypes($exportContent)
|
||||
{
|
||||
$this->assertStringContainsString(
|
||||
'2.0000,8.000000,Fixed',
|
||||
$exportContent
|
||||
);
|
||||
$this->assertStringContainsString(
|
||||
'10.0000,50.00,Discount',
|
||||
$exportContent
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @magentoAppArea adminhtml
|
||||
* @magentoDbIsolation disabled
|
||||
* @magentoAppIsolation enabled
|
||||
* @magentoConfigFixture current_store catalog/price/scope 1
|
||||
* @magentoDataFixture Magento/AdvancedPricingImportExport/_files/product_with_second_website.php
|
||||
*/
|
||||
public function testExportMultipleWebsites()
|
||||
{
|
||||
$productRepository = $this->objectManager->create(ProductRepositoryInterface::class);
|
||||
$index = 0;
|
||||
$ids = [];
|
||||
$origPricingData = [];
|
||||
$skus = ['AdvancedPricingSimple 1', 'AdvancedPricingSimple 2'];
|
||||
while (isset($skus[$index])) {
|
||||
$ids[$index] = $productRepository->get($skus[$index])
|
||||
->getId();
|
||||
$origPricingData[$index] = $this->objectManager->create(Product::class)
|
||||
->load($ids[$index])
|
||||
->getTierPrices();
|
||||
$index++;
|
||||
}
|
||||
|
||||
$csvfile = uniqid('importexport_') . '.csv';
|
||||
|
||||
$exportContent = $this->exportData($csvfile);
|
||||
$this->assertStringContainsString(
|
||||
'"AdvancedPricingSimple 2",test,"ALL GROUPS",3.0000,5.0000',
|
||||
$exportContent
|
||||
);
|
||||
$this->importData($csvfile);
|
||||
|
||||
while ($index > 0) {
|
||||
$index--;
|
||||
$newPricingData = $this->objectManager->create(Product::class)
|
||||
->load($ids[$index])
|
||||
->getTierPrices();
|
||||
$this->assertEquals(count($origPricingData[$index]), count($newPricingData));
|
||||
$this->assertEqualsOtherThanSkippedAttributes($origPricingData[$index], $newPricingData, []);
|
||||
}
|
||||
$this->removeImportedProducts($skus);
|
||||
}
|
||||
|
||||
/**
|
||||
* Export and Import of Advanced Pricing with different Price Types.
|
||||
*
|
||||
* @magentoDataFixture Magento/Catalog/_files/two_simple_products_with_tier_price.php
|
||||
* @return void
|
||||
*/
|
||||
public function testExportImportOfAdvancedPricing(): void
|
||||
{
|
||||
$simpleSku = 'simple';
|
||||
$secondSimpleSku = 'second_simple';
|
||||
$csvfile = $this->directory->getAbsolutePath(uniqid('importexport_') . '.csv');
|
||||
$exportContent = $this->exportData($csvfile);
|
||||
$this->assertStringContainsString(
|
||||
\sprintf('%s,"All Websites [USD]","ALL GROUPS",10.0000,3.00,Discount', $secondSimpleSku),
|
||||
$exportContent
|
||||
);
|
||||
$this->assertStringContainsString(
|
||||
\sprintf('%s,"All Websites [USD]",General,5.0000,95.000000,Fixed', $simpleSku),
|
||||
$exportContent
|
||||
);
|
||||
$this->updateTierPriceDataInCsv($csvfile);
|
||||
$this->importData($csvfile);
|
||||
|
||||
/** @var ProductRepositoryInterface $productRepository */
|
||||
$productRepository = $this->objectManager->create(ProductRepositoryInterface::class);
|
||||
$firstProductTierPrices = $productRepository->get('simple')->getTierPrices();
|
||||
$secondProductTierPrices = $productRepository->get('second_simple')->getTierPrices();
|
||||
|
||||
$this->assertSame(
|
||||
['0', '1'],
|
||||
[
|
||||
$firstProductTierPrices[0]->getExtensionAttributes()->getWebsiteId(),
|
||||
$firstProductTierPrices[0]->getCustomerGroupId(),
|
||||
]
|
||||
);
|
||||
|
||||
$this->assertEqualsWithDelta(
|
||||
['5.0000', '90.000000'],
|
||||
[
|
||||
$firstProductTierPrices[0]->getQty(),
|
||||
$firstProductTierPrices[0]->getValue(),
|
||||
],
|
||||
0.1
|
||||
);
|
||||
|
||||
$this->assertSame(
|
||||
['0', \Magento\Customer\Model\Group::CUST_GROUP_ALL],
|
||||
[
|
||||
$secondProductTierPrices[0]->getExtensionAttributes()->getWebsiteId(),
|
||||
$secondProductTierPrices[0]->getCustomerGroupId(),
|
||||
]
|
||||
);
|
||||
|
||||
$this->assertEqualsWithDelta(
|
||||
['5.00', '10.0000'],
|
||||
[
|
||||
$secondProductTierPrices[0]->getExtensionAttributes()->getPercentageValue(),
|
||||
$secondProductTierPrices[0]->getQty(),
|
||||
],
|
||||
0.1
|
||||
);
|
||||
|
||||
$this->removeImportedProducts([$simpleSku, $secondSimpleSku]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update tier price data in CSV.
|
||||
*
|
||||
* @param string $csvfile
|
||||
* @return void
|
||||
*/
|
||||
private function updateTierPriceDataInCsv(string $csvfile): void
|
||||
{
|
||||
$csvNewData = [
|
||||
0 => [
|
||||
0 => 'sku',
|
||||
1 => 'tier_price_website',
|
||||
2 => 'tier_price_customer_group',
|
||||
3 => 'tier_price_qty',
|
||||
4 => 'tier_price',
|
||||
5 => 'tier_price_value_type',
|
||||
],
|
||||
1 => [
|
||||
0 => 'simple',
|
||||
1 => 'All Websites [USD]',
|
||||
2 => 'General',
|
||||
3 => '5',
|
||||
4 => '90',
|
||||
5 => 'Fixed',
|
||||
],
|
||||
2 => [
|
||||
0 => 'second_simple',
|
||||
1 => 'All Websites [USD]',
|
||||
2 => 'ALL GROUPS',
|
||||
3 => '10',
|
||||
4 => '5',
|
||||
5 => 'Discount',
|
||||
],
|
||||
];
|
||||
|
||||
$this->updateCsvFile($csvfile, $csvNewData);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $csvFile
|
||||
* @return string
|
||||
*/
|
||||
private function exportData($csvFile)
|
||||
{
|
||||
$writer = Bootstrap::getObjectManager()->create(ExportAdapterCsv::class, ['fileSystem' => $this->fileSystem]);
|
||||
|
||||
$this->model->setWriter($writer);
|
||||
$exportContent = $this->model->export();
|
||||
$this->assertNotEmpty($exportContent);
|
||||
|
||||
$driver = $this->directory->getDriver();
|
||||
$driver->filePutContents($this->directory->getAbsolutePath($csvFile), $exportContent);
|
||||
|
||||
return $exportContent;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $csvFile
|
||||
*/
|
||||
private function importData($csvFile)
|
||||
{
|
||||
/** @var ImportAdvancedPricing $importModel */
|
||||
$importModel = $this->objectManager->create(ImportAdvancedPricing::class);
|
||||
$source = $this->objectManager->create(
|
||||
ImportSourceCsv::class,
|
||||
[
|
||||
'file' => $csvFile,
|
||||
'directory' => $this->directory
|
||||
]
|
||||
);
|
||||
$errors = $importModel->setParameters(
|
||||
[
|
||||
'behavior' => Import::BEHAVIOR_APPEND,
|
||||
'entity' => 'advanced_pricing'
|
||||
]
|
||||
)->setSource(
|
||||
$source
|
||||
)->validateData();
|
||||
|
||||
$this->assertTrue(
|
||||
$errors->getErrorsCount() == 0,
|
||||
'Advanced Pricing import error, imported from file:' . $csvFile
|
||||
);
|
||||
$importModel->importData();
|
||||
}
|
||||
|
||||
private function assertEqualsOtherThanSkippedAttributes($expected, $actual, $skippedAttributes)
|
||||
{
|
||||
foreach ($expected as $key => $value) {
|
||||
if (in_array($key, $skippedAttributes)) {
|
||||
continue;
|
||||
} else {
|
||||
$this->assertEquals(
|
||||
$value,
|
||||
$actual[$key],
|
||||
'Assert value at key - ' . $key . ' failed'
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Cleanup test by removing imported product.
|
||||
*
|
||||
* @param string[] $skus
|
||||
* @return void
|
||||
*/
|
||||
private function removeImportedProducts(array $skus): void
|
||||
{
|
||||
/** @var ProductRepositoryInterface $productRepository */
|
||||
$productRepository = $this->objectManager->create(ProductRepositoryInterface::class);
|
||||
$registry = $this->objectManager->get(\Magento\Framework\Registry::class);
|
||||
/** @var ProductRepositoryInterface $productRepository */
|
||||
$registry->unregister('isSecureArea');
|
||||
$registry->register('isSecureArea', true);
|
||||
|
||||
foreach ($skus as $sku) {
|
||||
try {
|
||||
$productRepository->deleteById($sku);
|
||||
} catch (NoSuchEntityException $e) {
|
||||
// product already deleted
|
||||
}
|
||||
}
|
||||
|
||||
$registry->unregister('isSecureArea');
|
||||
$registry->register('isSecureArea', false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Appends csv data to the file
|
||||
*
|
||||
* @param string $filePath
|
||||
* @param array $csv
|
||||
* @return void
|
||||
*/
|
||||
private function updateCsvFile(string $filePath, array $csv): void
|
||||
{
|
||||
$driver = $this->directory->getDriver();
|
||||
$driver->deleteFile($filePath);
|
||||
$fileResource = $driver->fileOpen($filePath, 'w');
|
||||
|
||||
foreach ($csv as $dataRow) {
|
||||
$driver->filePutCsv($fileResource, $dataRow);
|
||||
}
|
||||
|
||||
$driver->fileClose($fileResource);
|
||||
}
|
||||
}
|
||||
+501
@@ -0,0 +1,501 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
namespace Magento\AdvancedPricingImportExport\Model\Import;
|
||||
|
||||
use Magento\Catalog\Api\ProductRepositoryInterface;
|
||||
use Magento\Catalog\Test\Fixture\SelectAttribute;
|
||||
use Magento\Framework\App\Filesystem\DirectoryList;
|
||||
use Magento\Framework\Filesystem;
|
||||
use Magento\ImportExport\Model\Import;
|
||||
use Magento\ImportExport\Model\Import\ErrorProcessing\ProcessingErrorAggregatorInterface;
|
||||
use Magento\ImportExport\Model\Import\Source\Csv;
|
||||
use Magento\Store\Model\StoreManagerInterface;
|
||||
use Magento\TestFramework\Helper\Bootstrap;
|
||||
use Magento\Catalog\Api\Data\ProductTierPriceInterfaceFactory;
|
||||
use Magento\Catalog\Api\Data\ProductTierPriceExtensionFactory;
|
||||
use Magento\TestFramework\Fixture\DataFixture;
|
||||
use Magento\TestFramework\Fixture\AppArea;
|
||||
|
||||
/**
|
||||
* @magentoAppArea adminhtml
|
||||
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||
*/
|
||||
class AdvancedPricingTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @var \Magento\CatalogImportExport\Model\Import\Product
|
||||
*/
|
||||
protected $model;
|
||||
|
||||
/**
|
||||
* @var \Magento\Framework\ObjectManagerInterface
|
||||
*/
|
||||
protected $objectManager;
|
||||
|
||||
/**
|
||||
* @var \Magento\Framework\Filesystem
|
||||
*/
|
||||
protected $fileSystem;
|
||||
|
||||
/**
|
||||
* Expected Product Tier Price mapping with data
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $expectedTierPrice;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
|
||||
$this->fileSystem = $this->objectManager->get(\Magento\Framework\Filesystem::class);
|
||||
$this->model = $this->objectManager->create(
|
||||
\Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricing::class
|
||||
);
|
||||
$this->expectedTierPrice = [
|
||||
'AdvancedPricingSimple 1' => [
|
||||
[
|
||||
'customer_group_id' => \Magento\Customer\Model\Group::CUST_GROUP_ALL,
|
||||
'value' => '300.000000',
|
||||
'qty' => '10.0000',
|
||||
'percentage_value' => null
|
||||
],
|
||||
[
|
||||
'customer_group_id' => '1',
|
||||
'value' => '11.000000',
|
||||
'qty' => '11.0000',
|
||||
'percentage_value' => null
|
||||
],
|
||||
[
|
||||
'customer_group_id' => '3',
|
||||
'value' => '14.000000',
|
||||
'qty' => '14.0000',
|
||||
'percentage_value' => null
|
||||
],
|
||||
[
|
||||
'customer_group_id' => \Magento\Customer\Model\Group::CUST_GROUP_ALL,
|
||||
'value' => 160.5,
|
||||
'qty' => '20.0000',
|
||||
'percentage_value' => '50.00'
|
||||
]
|
||||
],
|
||||
'AdvancedPricingSimple 2' => [
|
||||
[
|
||||
'customer_group_id' => \Magento\Customer\Model\Group::CUST_GROUP_ALL,
|
||||
'value' => '1000000.000000',
|
||||
'qty' => '100.0000',
|
||||
'percentage_value' => null
|
||||
],
|
||||
[
|
||||
'customer_group_id' => '0',
|
||||
'value' => '12.000000',
|
||||
'qty' => '12.0000',
|
||||
'percentage_value' => null
|
||||
],
|
||||
[
|
||||
'customer_group_id' => '2',
|
||||
'value' => '13.000000',
|
||||
'qty' => '13.0000',
|
||||
'percentage_value' => null
|
||||
],
|
||||
[
|
||||
'customer_group_id' => \Magento\Customer\Model\Group::CUST_GROUP_ALL,
|
||||
'value' => 327.0,
|
||||
'qty' => '200.0000',
|
||||
'percentage_value' => '50.00'
|
||||
]
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @magentoDataFixture Magento/AdvancedPricingImportExport/_files/create_products.php
|
||||
* @magentoAppArea adminhtml
|
||||
*/
|
||||
public function testImportAddUpdate()
|
||||
{
|
||||
// import data from CSV file
|
||||
$pathToFile = __DIR__ . '/_files/import_advanced_pricing.csv';
|
||||
$errors = $this->doImport($pathToFile, DirectoryList::ROOT, Import::BEHAVIOR_APPEND, true);
|
||||
$this->assertEquals(0, $errors->getErrorsCount(), 'Advanced pricing import validation error');
|
||||
$this->model->importData();
|
||||
|
||||
/** @var \Magento\Catalog\Model\ResourceModel\Product $resource */
|
||||
$resource = $this->objectManager->get(\Magento\Catalog\Model\ResourceModel\Product::class);
|
||||
$productIdList = $resource->getProductsIdsBySkus(array_keys($this->expectedTierPrice));
|
||||
/** @var \Magento\Catalog\Model\Product $product */
|
||||
$product = $this->objectManager->create(\Magento\Catalog\Model\Product::class);
|
||||
foreach ($productIdList as $sku => $productId) {
|
||||
$product->load($productId);
|
||||
$tierPriceCollection = $product->getTierPrices();
|
||||
$this->assertCount(4, $tierPriceCollection);
|
||||
$index = 0;
|
||||
/** @var \Magento\Catalog\Model\Product\TierPrice $tierPrice */
|
||||
foreach ($tierPriceCollection as $tierPrice) {
|
||||
$this->checkPercentageDiscount($tierPrice, $sku, $index);
|
||||
$this->assertEquals(0, $tierPrice->getExtensionAttributes()->getWebsiteId());
|
||||
$tierPriceData = $tierPrice->getData();
|
||||
unset($tierPriceData['extension_attributes']);
|
||||
$this->assertContains($tierPriceData, $this->expectedTierPrice[$sku]);
|
||||
$index ++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Check percentage discount type.
|
||||
*
|
||||
* @param \Magento\Catalog\Model\Product\TierPrice $tierPrice
|
||||
* @param string $sku
|
||||
* @param int $index
|
||||
* @return void
|
||||
*/
|
||||
private function checkPercentageDiscount(
|
||||
\Magento\Catalog\Model\Product\TierPrice $tierPrice,
|
||||
$sku,
|
||||
$index
|
||||
) {
|
||||
$this->assertEquals(
|
||||
(int)$this->expectedTierPrice[$sku][$index]['percentage_value'],
|
||||
(int)$tierPrice->getExtensionAttributes()->getPercentageValue()
|
||||
);
|
||||
$tierPrice->setData('percentage_value', $tierPrice->getExtensionAttributes()->getPercentageValue());
|
||||
}
|
||||
|
||||
/**
|
||||
* @magentoAppArea adminhtml
|
||||
* @magentoDbIsolation enabled
|
||||
* @magentoAppIsolation enabled
|
||||
* @magentoDataFixture Magento/Catalog/_files/product_simple.php
|
||||
*/
|
||||
public function testImportDelete()
|
||||
{
|
||||
$productRepository = $this->objectManager->create(
|
||||
\Magento\Catalog\Api\ProductRepositoryInterface::class
|
||||
);
|
||||
$index = 0;
|
||||
$ids = [];
|
||||
$origPricingData = [];
|
||||
$skus = ['simple'];
|
||||
while (isset($skus[$index])) {
|
||||
$ids[$index] = $productRepository->get($skus[$index])->getId();
|
||||
$origPricingData[$index] = $this->objectManager->create(\Magento\Catalog\Model\Product::class)
|
||||
->load($ids[$index])
|
||||
->getTierPrices();
|
||||
$index++;
|
||||
}
|
||||
|
||||
$csvfile = uniqid('importexport_') . '.csv';
|
||||
|
||||
/** @var \Magento\AdvancedPricingImportExport\Model\Export\AdvancedPricing $exportModel */
|
||||
$exportModel = $this->objectManager->create(
|
||||
\Magento\AdvancedPricingImportExport\Model\Export\AdvancedPricing::class
|
||||
);
|
||||
$exportModel->setWriter(
|
||||
\Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(
|
||||
\Magento\ImportExport\Model\Export\Adapter\Csv::class,
|
||||
['fileSystem' => $this->fileSystem]
|
||||
)
|
||||
);
|
||||
$exportContent = $exportModel->export();
|
||||
$this->assertNotEmpty($exportContent);
|
||||
|
||||
$directory = $this->fileSystem->getDirectoryWrite(DirectoryList::VAR_IMPORT_EXPORT);
|
||||
$directory->getDriver()->filePutContents($directory->getAbsolutePath($csvfile), $exportContent);
|
||||
|
||||
$errors = $this->doImport($csvfile, DirectoryList::VAR_IMPORT_EXPORT, Import::BEHAVIOR_DELETE, true);
|
||||
|
||||
$this->assertTrue(
|
||||
$errors->getErrorsCount() == 0,
|
||||
'Advanced Pricing import error, imported from file:' . $csvfile
|
||||
);
|
||||
$this->model->importData();
|
||||
|
||||
while ($index > 0) {
|
||||
$index--;
|
||||
$newPricingData = $this->objectManager->create(\Magento\Catalog\Model\Product::class)
|
||||
->load($ids[$index])
|
||||
->getTierPrices();
|
||||
$this->assertCount(0, $newPricingData);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @magentoDataFixture Magento/AdvancedPricingImportExport/_files/create_products.php
|
||||
* @magentoAppArea adminhtml
|
||||
*/
|
||||
public function testImportReplace()
|
||||
{
|
||||
// import data from CSV file
|
||||
$pathToFile = __DIR__ . '/_files/import_advanced_pricing.csv';
|
||||
$errors = $this->doImport($pathToFile, DirectoryList::ROOT, Import::BEHAVIOR_REPLACE, true);
|
||||
|
||||
$this->assertEquals(0, $errors->getErrorsCount(), 'Advanced pricing import validation error');
|
||||
$this->model->importData();
|
||||
|
||||
/** @var \Magento\Catalog\Model\ResourceModel\Product $resource */
|
||||
$resource = $this->objectManager->get(\Magento\Catalog\Model\ResourceModel\Product::class);
|
||||
$productIdList = $resource->getProductsIdsBySkus(array_keys($this->expectedTierPrice));
|
||||
/** @var \Magento\Catalog\Model\Product $product */
|
||||
$product = $this->objectManager->create(\Magento\Catalog\Model\Product::class);
|
||||
foreach ($productIdList as $sku => $productId) {
|
||||
$product->load($productId);
|
||||
$tierPriceCollection = $product->getTierPrices();
|
||||
$this->assertCount(4, $tierPriceCollection);
|
||||
$index = 0;
|
||||
/** @var \Magento\Catalog\Model\Product\TierPrice $tierPrice */
|
||||
foreach ($tierPriceCollection as $tierPrice) {
|
||||
$this->checkPercentageDiscount($tierPrice, $sku, $index);
|
||||
$this->assertEquals(0, $tierPrice->getExtensionAttributes()->getWebsiteId());
|
||||
$tierPriceData = $tierPrice->getData();
|
||||
unset($tierPriceData['extension_attributes']);
|
||||
$this->assertContains($tierPriceData, $this->expectedTierPrice[$sku]);
|
||||
$index ++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @magentoAppArea adminhtml
|
||||
* @magentoDbIsolation enabled
|
||||
* @magentoAppIsolation enabled
|
||||
* @magentoConfigFixture current_store catalog/price/scope 1
|
||||
* @magentoDataFixture Magento/AdvancedPricingImportExport/_files/create_products.php
|
||||
* @param array $dbData
|
||||
* @param array $importData
|
||||
* @param string $importBehavior
|
||||
* @param array $invalidRows
|
||||
* @dataProvider importValidationDuplicateWithSameBaseCurrencyDataProvider
|
||||
*/
|
||||
public function testImportValidationDuplicateWithSameBaseCurrency(
|
||||
array $dbData,
|
||||
array $importData,
|
||||
string $importBehavior,
|
||||
array $invalidRows
|
||||
) {
|
||||
$this->createTierPrices($dbData);
|
||||
$pathToFile = $this->generateImportFile($importData);
|
||||
$errors = $this->doImport($pathToFile, DirectoryList::VAR_DIR, $importBehavior);
|
||||
$rows = $errors->getRowsGroupedByErrorCode(['duplicateTierPrice'], [], false);
|
||||
$this->assertEquals($invalidRows, $rows['duplicateTierPrice'] ?? []);
|
||||
}
|
||||
|
||||
/**
|
||||
* @magentoAppArea adminhtml
|
||||
* @magentoDbIsolation enabled
|
||||
* @magentoAppIsolation enabled
|
||||
* @magentoConfigFixture current_store catalog/price/scope 1
|
||||
* @magentoConfigFixture base_website catalog/price/scope 1
|
||||
* @magentoConfigFixture base_website currency/options/base EUR
|
||||
* @magentoDataFixture Magento/AdvancedPricingImportExport/_files/create_products.php
|
||||
* @param array $dbData
|
||||
* @param array $importData
|
||||
* @param string $importBehavior
|
||||
* @param array $invalidRows
|
||||
* @dataProvider importValidationDuplicateWithDifferentBaseCurrencyDataProvider
|
||||
*/
|
||||
public function testImportValidationDuplicateWithDifferentBaseCurrency(
|
||||
array $dbData,
|
||||
array $importData,
|
||||
string $importBehavior,
|
||||
array $invalidRows
|
||||
) {
|
||||
$this->createTierPrices($dbData);
|
||||
$pathToFile = $this->generateImportFile($importData);
|
||||
$errors = $this->doImport($pathToFile, DirectoryList::VAR_DIR, $importBehavior);
|
||||
$rows = $errors->getRowsGroupedByErrorCode(['duplicateTierPrice'], [], false);
|
||||
$this->assertEquals($invalidRows, $rows['duplicateTierPrice'] ?? []);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array[]
|
||||
*/
|
||||
public function importValidationDuplicateWithSameBaseCurrencyDataProvider(): array
|
||||
{
|
||||
return require __DIR__ . '/_files/import_validation_duplicate_same_currency_data_provider.php';
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array[]
|
||||
*/
|
||||
public function importValidationDuplicateWithDifferentBaseCurrencyDataProvider(): array
|
||||
{
|
||||
return require __DIR__ . '/_files/import_validation_duplicate_diff_currency_data_provider.php';
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $directoryCode
|
||||
* @param string $file
|
||||
* @param string $behavior
|
||||
* @param bool $validateOnly
|
||||
* @return ProcessingErrorAggregatorInterface
|
||||
* @throws \Magento\Framework\Exception\FileSystemException
|
||||
* @throws \Magento\Framework\Exception\LocalizedException
|
||||
*/
|
||||
private function doImport(
|
||||
string $file,
|
||||
string $directoryCode = DirectoryList::ROOT,
|
||||
string $behavior = Import::BEHAVIOR_APPEND,
|
||||
bool $validateOnly = false,
|
||||
string $entity = 'advanced_pricing'
|
||||
): ProcessingErrorAggregatorInterface {
|
||||
/** @var Filesystem $filesystem */
|
||||
$filesystem = $this->objectManager->create(Filesystem::class);
|
||||
$directory = $filesystem->getDirectoryWrite($directoryCode);
|
||||
$source = $this->objectManager->create(
|
||||
Csv::class,
|
||||
[
|
||||
'file' => $file,
|
||||
'directory' => $directory
|
||||
]
|
||||
);
|
||||
$errors = $this->model->setSource($source)
|
||||
->setParameters(
|
||||
[
|
||||
'behavior' => $behavior,
|
||||
'entity' => $entity
|
||||
]
|
||||
)
|
||||
->validateData();
|
||||
if (!$validateOnly && !$errors->getAllErrors()) {
|
||||
$this->model->importData();
|
||||
}
|
||||
|
||||
return $errors;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $tierPrices
|
||||
*/
|
||||
private function createTierPrices(array $tierPrices)
|
||||
{
|
||||
$productRepository = $this->objectManager->create(ProductRepositoryInterface::class);
|
||||
$tierPriceFactory = $this->objectManager->get(ProductTierPriceInterfaceFactory::class);
|
||||
$tpExtensionAttributesFactory = $this->objectManager->get(ProductTierPriceExtensionFactory::class);
|
||||
$storeManager = $this->objectManager->get(StoreManagerInterface::class);
|
||||
$productTierPrices = [];
|
||||
foreach ($tierPrices as $price) {
|
||||
$sku = $price['sku'];
|
||||
$websiteId = 0;
|
||||
$websiteCode = $price['website_id'];
|
||||
$percentageValue = $price['percentage_value'] ?? null;
|
||||
unset($price['sku'], $price['website_id'], $price['percentage_value']);
|
||||
if ($websiteCode !== 0) {
|
||||
$websiteId = $storeManager->getWebsite($websiteCode)->getId();
|
||||
}
|
||||
$tierPriceExtensionAttributes = $tpExtensionAttributesFactory->create();
|
||||
$tierPriceExtensionAttributes->setWebsiteId($websiteId);
|
||||
$tierPriceExtensionAttributes->setPercentageValue($percentageValue);
|
||||
$productTierPrices[$sku][] = $tierPriceFactory->create(['data' => $price])
|
||||
->setExtensionAttributes($tierPriceExtensionAttributes);
|
||||
}
|
||||
|
||||
foreach ($productTierPrices as $sku => $prices) {
|
||||
$product = $productRepository->get($sku, true, null, true);
|
||||
$product->setTierPrices($prices);
|
||||
$productRepository->save($product);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $data
|
||||
* @return string
|
||||
*/
|
||||
private function generateImportFile(array $data): string
|
||||
{
|
||||
$fields = [
|
||||
'sku',
|
||||
'tier_price_website',
|
||||
'tier_price_customer_group',
|
||||
'tier_price_qty',
|
||||
'tier_price',
|
||||
'tier_price_value_type',
|
||||
];
|
||||
$objectManager = Bootstrap::getObjectManager();
|
||||
/** @var Filesystem $filesystem */
|
||||
$filesystem = $objectManager->get(Filesystem::class);
|
||||
$varDir = $filesystem->getDirectoryWrite(DirectoryList::VAR_DIR);
|
||||
$tmpFilename = uniqid('test_import_advanced_pricing_') . '.csv';
|
||||
$stream = $varDir->openFile($tmpFilename, 'w+');
|
||||
$stream->lock();
|
||||
$stream->writeCsv($fields);
|
||||
$emptyRow = array_fill_keys($fields, '');
|
||||
foreach ($data as $row) {
|
||||
$row = array_replace($emptyRow, $row);
|
||||
$stream->writeCsv($row);
|
||||
}
|
||||
$stream->unlock();
|
||||
$stream->close();
|
||||
return $varDir->getAbsolutePath($tmpFilename);
|
||||
}
|
||||
|
||||
/**
|
||||
* For checking if correct add and update count are being displayed after importing file having 100+ records
|
||||
*/
|
||||
#[
|
||||
DataFixture(
|
||||
SelectAttribute::class,
|
||||
[
|
||||
'attribute_code' => 'size',
|
||||
'default_frontend_label' => 'Size',
|
||||
'scope' => 'global',
|
||||
'options' => [28,29,30,31,32,33,34,36,38]
|
||||
],
|
||||
'attr1'
|
||||
),
|
||||
DataFixture(
|
||||
SelectAttribute::class,
|
||||
[
|
||||
'attribute_code' => 'colors',
|
||||
'default_frontend_label' => 'Colors',
|
||||
'scope' => 'global',
|
||||
'options' => ["Red","Green","Yellow","Blue","Orange"]
|
||||
]
|
||||
),
|
||||
AppArea('adminhtml')
|
||||
]
|
||||
public function testImportAddUpdateCounts()
|
||||
{
|
||||
$this->model = $this->objectManager->create(\Magento\CatalogImportExport\Model\Import\Product::class);
|
||||
|
||||
// Import product data from CSV file
|
||||
$productFilePath = __DIR__ . '/_files/import_catalog_product.csv';
|
||||
$errors = $this->doImport(
|
||||
$productFilePath,
|
||||
DirectoryList::ROOT,
|
||||
Import::BEHAVIOR_ADD_UPDATE,
|
||||
true,
|
||||
'catalog_product'
|
||||
);
|
||||
print_r($errors->getAllErrors());
|
||||
$this->assertEquals(0, $errors->getErrorsCount(), 'Product import validation error');
|
||||
$this->model->importData();
|
||||
|
||||
$this->assertEquals(64, $this->model->getCreatedItemsCount(), 'Products create item count');
|
||||
$this->assertEquals(0, $this->model->getUpdatedItemsCount(), 'Products update item count');
|
||||
|
||||
// Import advance pricing data from CSV file
|
||||
$this->model = $this->objectManager->create(
|
||||
\Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricing::class
|
||||
);
|
||||
$pathToFile = __DIR__ . '/_files/import_advanced_pricing_for_additional_attributes_products.csv';
|
||||
$errors = $this->doImport($pathToFile, DirectoryList::ROOT, Import::BEHAVIOR_APPEND, true);
|
||||
print_r($errors->getAllErrors());
|
||||
$this->assertEquals(0, $errors->getErrorsCount(), 'Advanced pricing import validation error');
|
||||
$this->model->importData();
|
||||
|
||||
$this->assertEquals(127, $this->model->getCreatedItemsCount(), 'Advance pricing create count1');
|
||||
$this->assertEquals(0, $this->model->getUpdatedItemsCount(), 'Advance pricing update count1');
|
||||
|
||||
// Initializing again, since old model object holds old count
|
||||
// Import advance pricing data from CSV file
|
||||
$this->model = $this->objectManager->create(
|
||||
\Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricing::class
|
||||
);
|
||||
$this->doImport($pathToFile, DirectoryList::ROOT, Import::BEHAVIOR_APPEND);
|
||||
$this->assertEquals(0, $this->model->getCreatedItemsCount(), 'Advance pricing create count2');
|
||||
$this->assertEquals(127, $this->model->getUpdatedItemsCount(), 'Advance pricing update count2');
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
sku,tier_price_website,tier_price_customer_group,tier_price_qty,tier_price,tier_price_value_type
|
||||
"AdvancedPricingSimple 1","All Websites [USD]","ALL GROUPS",10.0000,300.0000,Fixed
|
||||
"AdvancedPricingSimple 2","All Websites [USD]","ALL GROUPS",100.0000,1000000.0000,Fixed
|
||||
"AdvancedPricingSimple 1","All Websites [USD]",General,11.0000,11.0000,Fixed
|
||||
"AdvancedPricingSimple 2","All Websites [USD]","NOT LOGGED IN",12.0000,12.0000,Fixed
|
||||
"AdvancedPricingSimple 1","All Websites [USD]",Retailer,14.0000,14.0000,Fixed
|
||||
"AdvancedPricingSimple 2","All Websites [USD]",Wholesale,13.0000,13.0000,Fixed
|
||||
"AdvancedPricingSimple 1","All Websites [USD]","ALL GROUPS",20.0000,50,Discount
|
||||
"AdvancedPricingSimple 2","All Websites [USD]","ALL GROUPS",200.0000,50,Discount
|
||||
|
+128
@@ -0,0 +1,128 @@
|
||||
sku,tier_price_website,tier_price_customer_group,tier_price_qty,tier_price,tier_price_value_type
|
||||
test-sample,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-1,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-1,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-1,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-1,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Blue-34,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Blue-34,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Blue-34,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Blue-34,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Blue-36,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Blue-36,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Blue-36,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Blue-36,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Blue-38,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Blue-38,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Blue-38,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Blue-38,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Blue-39,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Blue-39,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Blue-39,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Blue-39,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Blue-42,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Blue-42,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Blue-42,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Blue-42,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Blue-44,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Blue-44,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Blue-44,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Blue-44,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Green-34,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Green-34,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Green-34,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Green-34,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Green-36,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Green-36,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Green-36,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Green-36,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Green-38,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Green-38,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Green-38,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Green-38,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Green-39,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Green-39,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Green-39,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Green-39,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Green-42,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Green-42,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Green-42,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Green-42,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Green-44,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Green-44,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Green-44,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Green-44,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Orange-34,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Orange-34,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Orange-34,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Orange-34,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Orange-36,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Orange-36,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Orange-36,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Orange-36,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Orange-38,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Orange-38,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Orange-38,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Orange-38,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Orange-39,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Orange-39,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Orange-39,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Orange-39,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Orange-42,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Orange-42,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Orange-42,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Orange-42,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Orange-44,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Orange-44,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Orange-44,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Orange-44,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Red-34,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Red-34,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Red-34,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Red-36,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Red-36,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Red-36,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Red-36,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Red-38,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Red-38,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Red-38,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Red-38,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Red-39,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Red-39,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Red-39,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Red-39,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Red-42,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Red-42,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Red-42,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Red-42,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Red-44,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Red-44,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Red-44,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Red-44,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Yellow-34,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Yellow-34,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Yellow-34,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Yellow-34,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Yellow-36,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Yellow-36,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Yellow-36,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Yellow-36,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Yellow-38,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Yellow-38,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Yellow-38,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Yellow-38,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Yellow-39,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Yellow-39,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Yellow-39,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Yellow-39,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Yellow-42,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Yellow-42,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Yellow-42,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Yellow-42,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
test-sample-Yellow-44,"All Websites [USD]","ALL GROUPS",2.0000,10.000000,Fixed
|
||||
test-sample-Yellow-44,"All Websites [USD]","ALL GROUPS",3.0000,15.00,Discount
|
||||
test-sample-Yellow-44,"All Websites [USD]",General,2.0000,10.000000,Fixed
|
||||
test-sample-Yellow-44,"All Websites [USD]",General,3.0000,15.00,Discount
|
||||
|
+65
@@ -0,0 +1,65 @@
|
||||
sku,store_view_code,attribute_set_code,product_type,categories,product_websites,name,description,short_description,weight,product_online,tax_class_name,visibility,price,special_price,special_price_from_date,special_price_to_date,url_key,meta_title,meta_keywords,meta_description,base_image,base_image_label,small_image,small_image_label,thumbnail_image,thumbnail_image_label,swatch_image,swatch_image_label,created_at,updated_at,new_from_date,new_to_date,display_product_options_in,map_price,msrp_price,map_enabled,gift_message_available,custom_design,custom_design_from,custom_design_to,custom_layout_update,page_layout,product_options_container,msrp_display_actual_price_type,country_of_manufacture,additional_attributes,qty,out_of_stock_qty,use_config_min_qty,is_qty_decimal,allow_backorders,use_config_backorders,min_cart_qty,use_config_min_sale_qty,max_cart_qty,use_config_max_sale_qty,is_in_stock,notify_on_stock_below,use_config_notify_stock_qty,manage_stock,use_config_manage_stock,use_config_qty_increments,qty_increments,use_config_enable_qty_inc,enable_qty_increments,is_decimal_divided,website_id,related_skus,related_position,crosssell_skus,crosssell_position,upsell_skus,upsell_position,additional_images,additional_image_labels,hide_from_product_page,custom_options,bundle_price_type,bundle_sku_type,bundle_price_view,bundle_weight_type,bundle_values,bundle_shipment_type,associated_skus,downloadable_links,downloadable_samples,configurable_variations,configurable_variation_labels
|
||||
test-sample-Red-34,,Default,simple,,base,test-sample-Red-34,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-red-34,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Red,size=31",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Red-36,,Default,simple,,base,test-sample-Red-36,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-red-36,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Red,size=32",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Red-38,,Default,simple,,base,test-sample-Red-38,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-red-38,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Red,size=33",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Red-39,,Default,simple,,base,test-sample-Red-39,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-red-39,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Red,size=34",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Red-42,,Default,simple,,base,test-sample-Red-42,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-red-42,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Red,size=36",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Red-44,,Default,simple,,base,test-sample-Red-44,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-red-44,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Red,size=28",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Green-34,,Default,simple,,base,test-sample-Green-34,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-green-34,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Green,size=31",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Green-36,,Default,simple,,base,test-sample-Green-36,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-green-36,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Green,size=32",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Green-38,,Default,simple,,base,test-sample-Green-38,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-green-38,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Green,size=33",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Green-39,,Default,simple,,base,test-sample-Green-39,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-green-39,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Green,size=34",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Green-42,,Default,simple,,base,test-sample-Green-42,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-green-42,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Green,size=36",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Green-44,,Default,simple,,base,test-sample-Green-44,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-green-44,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Green,size=28",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Yellow-34,,Default,simple,,base,test-sample-Yellow-34,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-yellow-34,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Yellow,size=31",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Yellow-36,,Default,simple,,base,test-sample-Yellow-36,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-yellow-36,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Yellow,size=32",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Yellow-38,,Default,simple,,base,test-sample-Yellow-38,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-yellow-38,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Yellow,size=33",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Yellow-39,,Default,simple,,base,test-sample-Yellow-39,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-yellow-39,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Yellow,size=34",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Yellow-42,,Default,simple,,base,test-sample-Yellow-42,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-yellow-42,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Yellow,size=36",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Yellow-44,,Default,simple,,base,test-sample-Yellow-44,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-yellow-44,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Yellow,size=28",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Blue-34,,Default,simple,,base,test-sample-Blue-34,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-blue-34,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Blue,size=31",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Blue-36,,Default,simple,,base,test-sample-Blue-36,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-blue-36,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Blue,size=32",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Blue-38,,Default,virtual,,base,test-sample-Blue-38,,,,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-blue-38,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Blue,size=33",,0.0000,1,0,0,1,1.0000,1,10000.0000,1,0,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Blue-39,,Default,virtual,,base,test-sample-Blue-39,,,,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-blue-39,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Blue,size=34",,0.0000,1,0,0,1,1.0000,1,10000.0000,1,0,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Blue-42,,Default,virtual,,base,test-sample-Blue-42,,,,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-blue-42,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Blue,size=36",,0.0000,1,0,0,1,1.0000,1,10000.0000,1,0,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Blue-44,,Default,virtual,,base,test-sample-Blue-44,,,,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-blue-44,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Blue,size=28",,0.0000,1,0,0,1,1.0000,1,10000.0000,1,0,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Orange-34,,Default,virtual,,base,test-sample-Orange-34,,,,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-orange-34,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Orange,size=31",,0.0000,1,0,0,1,1.0000,1,10000.0000,1,0,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Orange-36,,Default,virtual,,base,test-sample-Orange-36,,,,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-orange-36,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Orange,size=32",,0.0000,1,0,0,1,1.0000,1,10000.0000,1,0,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Orange-38,,Default,virtual,,base,test-sample-Orange-38,,,,1,"Taxable Goods","Not Visible Individually",23.000000,16.500000,5/22/22,,test-sample-orange-38,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Orange,size=33",0.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,0,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Orange-39,,Default,virtual,,base,test-sample-Orange-39,,,,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-orange-39,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Orange,size=34",,0.0000,1,0,0,1,1.0000,1,10000.0000,1,0,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Orange-42,,Default,virtual,,base,test-sample-Orange-42,,,,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-orange-42,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Orange,size=36",,0.0000,1,0,0,1,1.0000,1,10000.0000,1,0,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample-Orange-44,,Default,virtual,,base,test-sample-Orange-44,,,,1,"Taxable Goods","Not Visible Individually",23.000000,,,,test-sample-orange-44,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,,,"colors=Orange,size=28",,0.0000,1,0,0,1,1.0000,1,10000.0000,1,0,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
test-sample,,Default,configurable,,base,test-sample,,,,1,"Taxable Goods","Catalog, Search",,,,,test-sample,test-sample,test-sample,"test-sample ",,,,,,,,,"5/22/22, 11:20 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,"Use config",,,,,,,"Use config",,,0.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,"sku=test-sample-Red-34,colors=Red,size=34|sku=test-sample-Red-44,colors=Red,size=31|sku=test-sample-Red-42,colors=Red,size=32|sku=test-sample-Red-39,colors=Red,size=29|sku=test-sample-Red-38,colors=Red,size=28|sku=test-sample-Red-36,colors=Red,size=36","colors=Colors,size=Size"
|
||||
test-sample-1,,Default,configurable,,base,test-sample,,,,2,"Taxable Goods","Catalog, Search",,,,,test-sample-1,,,,,,,,,,,,"5/22/22, 11:21 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,"Use config",,,,,,,"Use config",,,0.0000,0.0000,1,0,0,1,1.0000,1,0.0000,1,0,,1,0,1,1,0.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,"sku=test-sample-Green-42,colors=Green,size=32|sku=test-sample-Green-39,colors=Green,size=29|sku=test-sample-Green-38,colors=Green,size=28|sku=test-sample-Green-36,colors=Green,size=36|sku=test-sample-Green-34,colors=Green,size=34|sku=test-sample-Green-44,colors=Green,size=31","colors=Colors,size=Size"
|
||||
new-test-sample-Red-34,,Default,simple,,base,new-test-sample-Red-34,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-red-34,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Red,size=31",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Red-36,,Default,simple,,base,new-test-sample-Red-36,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-red-36,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Red,size=32",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Red-38,,Default,simple,,base,new-test-sample-Red-38,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-red-38,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Red,size=33",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Red-39,,Default,simple,,base,new-test-sample-Red-39,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-red-39,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Red,size=34",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Red-42,,Default,simple,,base,new-test-sample-Red-42,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-red-42,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Red,size=36",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Red-44,,Default,simple,,base,new-test-sample-Red-44,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-red-44,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Red,size=28",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Green-34,,Default,simple,,base,new-test-sample-Green-34,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-green-34,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Green,size=31",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Green-36,,Default,simple,,base,new-test-sample-Green-36,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-green-36,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Green,size=32",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Green-38,,Default,simple,,base,new-test-sample-Green-38,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-green-38,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Green,size=33",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Green-39,,Default,simple,,base,new-test-sample-Green-39,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-green-39,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Green,size=34",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Green-42,,Default,simple,,base,new-test-sample-Green-42,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-green-42,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Green,size=36",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Green-44,,Default,simple,,base,new-test-sample-Green-44,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-green-44,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Green,size=28",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Yellow-34,,Default,simple,,base,new-test-sample-Yellow-34,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-yellow-34,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Yellow,size=31",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Yellow-36,,Default,simple,,base,new-test-sample-Yellow-36,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-yellow-36,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Yellow,size=32",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Yellow-38,,Default,simple,,base,new-test-sample-Yellow-38,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-yellow-38,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Yellow,size=33",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Yellow-39,,Default,simple,,base,new-test-sample-Yellow-39,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-yellow-39,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Yellow,size=34",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Yellow-42,,Default,simple,,base,new-test-sample-Yellow-42,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-yellow-42,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Yellow,size=36",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Yellow-44,,Default,simple,,base,new-test-sample-Yellow-44,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-yellow-44,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Yellow,size=28",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Blue-34,,Default,simple,,base,new-test-sample-Blue-34,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-blue-34,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Blue,size=31",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Blue-36,,Default,simple,,base,new-test-sample-Blue-36,,,1.000000,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-blue-36,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Blue,size=32",55.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Blue-38,,Default,virtual,,base,new-test-sample-Blue-38,,,,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-blue-38,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Blue,size=33",,0.0000,1,0,0,1,1.0000,1,10000.0000,1,0,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Blue-39,,Default,virtual,,base,new-test-sample-Blue-39,,,,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-blue-39,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Blue,size=34",,0.0000,1,0,0,1,1.0000,1,10000.0000,1,0,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Blue-42,,Default,virtual,,base,new-test-sample-Blue-42,,,,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-blue-42,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Blue,size=36",,0.0000,1,0,0,1,1.0000,1,10000.0000,1,0,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Blue-44,,Default,virtual,,base,new-test-sample-Blue-44,,,,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-blue-44,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Blue,size=28",,0.0000,1,0,0,1,1.0000,1,10000.0000,1,0,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Orange-34,,Default,virtual,,base,new-test-sample-Orange-34,,,,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-orange-34,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Orange,size=31",,0.0000,1,0,0,1,1.0000,1,10000.0000,1,0,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Orange-36,,Default,virtual,,base,new-test-sample-Orange-36,,,,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-orange-36,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Orange,size=32",,0.0000,1,0,0,1,1.0000,1,10000.0000,1,0,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Orange-38,,Default,virtual,,base,new-test-sample-Orange-38,,,,1,"Taxable Goods","Not Visible Individually",23.000000,16.500000,5/22/22,,new-test-sample-orange-38,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Orange,size=33",0.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,0,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Orange-39,,Default,virtual,,base,new-test-sample-Orange-39,,,,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-orange-39,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Orange,size=34",,0.0000,1,0,0,1,1.0000,1,10000.0000,1,0,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Orange-42,,Default,virtual,,base,new-test-sample-Orange-42,,,,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-orange-42,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Orange,size=36",,0.0000,1,0,0,1,1.0000,1,10000.0000,1,0,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample-Orange-44,,Default,virtual,,base,new-test-sample-Orange-44,,,,1,"Taxable Goods","Not Visible Individually",23.000000,,,,new-test-sample-orange-44,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,No,,,,,,,"Use config",,"colors=Orange,size=28",,0.0000,1,0,0,1,1.0000,1,10000.0000,1,0,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,,
|
||||
new-test-sample,,Default,configurable,,base,new-test-sample,,,,1,"Taxable Goods","Catalog, Search",,,,,new-test-sample,new-test-sample,new-test-sample,"new-test-sample ",,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,"Use config",,,,,,,"Use config",,,0.0000,0.0000,1,0,0,1,1.0000,1,10000.0000,1,1,1.0000,1,1,1,1,1.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,"sku=new-test-sample-Yellow-38,colors=Yellow,size=28|sku=new-test-sample-Yellow-39,colors=Yellow,size=29|sku=new-test-sample-Yellow-42,colors=Yellow,size=32|sku=new-test-sample-Yellow-44,colors=Yellow,size=31|sku=new-test-sample-Yellow-34,colors=Yellow,size=34|sku=new-test-sample-Yellow-36,colors=Yellow,size=36","colors=Colors,size=Size"
|
||||
new-test-sample-1,,Default,configurable,,base,new-test-sample,,,,2,"Taxable Goods","Catalog, Search",,,,,new-test-sample-1,,,,,,,,,,,,"5/23/22, 11:13 PM","5/23/22, 11:13 PM",,,"Block after Info Column",,,,"Use config",,,,,,,"Use config",,,0.0000,0.0000,1,0,0,1,1.0000,1,0.0000,1,0,,1,0,1,1,0.0000,1,0,0,0,,,,,,,,,,,,,,,,,,,,"sku=new-test-sample-Blue-39,colors=Blue,size=29|sku=new-test-sample-Blue-42,colors=Blue,size=32|sku=new-test-sample-Blue-44,colors=Blue,size=31|sku=new-test-sample-Blue-34,colors=Blue,size=34|sku=new-test-sample-Blue-36,colors=Blue,size=36|sku=new-test-sample-Blue-38,colors=Blue,size=28","colors=Colors,size=Size"
|
||||
|
+105
@@ -0,0 +1,105 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
return [
|
||||
[
|
||||
[
|
||||
],
|
||||
[
|
||||
[
|
||||
'sku' => 'AdvancedPricingSimple 1',
|
||||
'tier_price_website' => 'All Websites [USD]',
|
||||
'tier_price_customer_group' => 'ALL GROUPS',
|
||||
'tier_price_qty' => '5.0000',
|
||||
'tier_price' => '300',
|
||||
'tier_price_value_type' => 'Fixed',
|
||||
],
|
||||
[
|
||||
'sku' => 'AdvancedPricingSimple 1',
|
||||
'tier_price_website' => 'base',
|
||||
'tier_price_customer_group' => 'ALL GROUPS',
|
||||
'tier_price_qty' => '5.0000',
|
||||
'tier_price' => '25.0000',
|
||||
'tier_price_value_type' => 'Discount',
|
||||
]
|
||||
],
|
||||
\Magento\ImportExport\Model\Import::BEHAVIOR_APPEND,
|
||||
[]
|
||||
],
|
||||
[
|
||||
[
|
||||
],
|
||||
[
|
||||
[
|
||||
'sku' => 'AdvancedPricingSimple 2',
|
||||
'tier_price_website' => 'base',
|
||||
'tier_price_customer_group' => 'ALL GROUPS',
|
||||
'tier_price_qty' => '10.0000',
|
||||
'tier_price' => '450',
|
||||
'tier_price_value_type' => 'Fixed',
|
||||
],
|
||||
[
|
||||
'sku' => 'AdvancedPricingSimple 2',
|
||||
'tier_price_website' => 'All Websites [USD]',
|
||||
'tier_price_customer_group' => 'ALL GROUPS',
|
||||
'tier_price_qty' => '10.0000',
|
||||
'tier_price' => '30.0000',
|
||||
'tier_price_value_type' => 'Discount',
|
||||
]
|
||||
],
|
||||
\Magento\ImportExport\Model\Import::BEHAVIOR_APPEND,
|
||||
[]
|
||||
],
|
||||
[
|
||||
[
|
||||
[
|
||||
'sku' => 'AdvancedPricingSimple 1',
|
||||
'website_id' => 0,
|
||||
'customer_group_id' => \Magento\Customer\Model\Group::CUST_GROUP_ALL,
|
||||
'qty' => 5,
|
||||
'value' => 300,
|
||||
'percentage_value' => null
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
'sku' => 'AdvancedPricingSimple 1',
|
||||
'tier_price_website' => 'base',
|
||||
'tier_price_customer_group' => 'ALL GROUPS',
|
||||
'tier_price_qty' => '5.0000',
|
||||
'tier_price' => '25.0000',
|
||||
'tier_price_value_type' => 'Discount',
|
||||
]
|
||||
],
|
||||
\Magento\ImportExport\Model\Import::BEHAVIOR_APPEND,
|
||||
[]
|
||||
],
|
||||
[
|
||||
[
|
||||
[
|
||||
'sku' => 'AdvancedPricingSimple 2',
|
||||
'website_id' => 'base',
|
||||
'customer_group_id' => \Magento\Customer\Model\Group::CUST_GROUP_ALL,
|
||||
'qty' => 10,
|
||||
'value' => 450,
|
||||
'percentage_value' => null
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
'sku' => 'AdvancedPricingSimple 2',
|
||||
'tier_price_website' => 'All Websites [USD]',
|
||||
'tier_price_customer_group' => 'ALL GROUPS',
|
||||
'tier_price_qty' => '10.0000',
|
||||
'tier_price' => '30.0000',
|
||||
'tier_price_value_type' => 'Discount',
|
||||
]
|
||||
],
|
||||
\Magento\ImportExport\Model\Import::BEHAVIOR_APPEND,
|
||||
[]
|
||||
]
|
||||
];
|
||||
+153
@@ -0,0 +1,153 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
return [
|
||||
[
|
||||
[
|
||||
],
|
||||
[
|
||||
[
|
||||
'sku' => 'AdvancedPricingSimple 1',
|
||||
'tier_price_website' => 'All Websites [USD]',
|
||||
'tier_price_customer_group' => 'ALL GROUPS',
|
||||
'tier_price_qty' => '5.0000',
|
||||
'tier_price' => '300',
|
||||
'tier_price_value_type' => 'Fixed',
|
||||
],
|
||||
[
|
||||
'sku' => 'AdvancedPricingSimple 1',
|
||||
'tier_price_website' => 'base',
|
||||
'tier_price_customer_group' => 'ALL GROUPS',
|
||||
'tier_price_qty' => '5.0000',
|
||||
'tier_price' => '25.0000',
|
||||
'tier_price_value_type' => 'Discount',
|
||||
]
|
||||
],
|
||||
\Magento\ImportExport\Model\Import::BEHAVIOR_APPEND,
|
||||
[2]
|
||||
],
|
||||
[
|
||||
[
|
||||
],
|
||||
[
|
||||
[
|
||||
'sku' => 'AdvancedPricingSimple 2',
|
||||
'tier_price_website' => 'base',
|
||||
'tier_price_customer_group' => 'ALL GROUPS',
|
||||
'tier_price_qty' => '10.0000',
|
||||
'tier_price' => '450',
|
||||
'tier_price_value_type' => 'Fixed',
|
||||
],
|
||||
[
|
||||
'sku' => 'AdvancedPricingSimple 2',
|
||||
'tier_price_website' => 'All Websites [USD]',
|
||||
'tier_price_customer_group' => 'ALL GROUPS',
|
||||
'tier_price_qty' => '10.0000',
|
||||
'tier_price' => '30.0000',
|
||||
'tier_price_value_type' => 'Discount',
|
||||
]
|
||||
],
|
||||
\Magento\ImportExport\Model\Import::BEHAVIOR_APPEND,
|
||||
[2]
|
||||
],
|
||||
[
|
||||
[
|
||||
[
|
||||
'sku' => 'AdvancedPricingSimple 1',
|
||||
'website_id' => 0,
|
||||
'customer_group_id' => \Magento\Customer\Model\Group::CUST_GROUP_ALL,
|
||||
'qty' => 5,
|
||||
'value' => 300,
|
||||
'percentage_value' => null
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
'sku' => 'AdvancedPricingSimple 1',
|
||||
'tier_price_website' => 'base',
|
||||
'tier_price_customer_group' => 'ALL GROUPS',
|
||||
'tier_price_qty' => '5.0000',
|
||||
'tier_price' => '25.0000',
|
||||
'tier_price_value_type' => 'Discount',
|
||||
]
|
||||
],
|
||||
\Magento\ImportExport\Model\Import::BEHAVIOR_APPEND,
|
||||
[1]
|
||||
],
|
||||
[
|
||||
[
|
||||
[
|
||||
'sku' => 'AdvancedPricingSimple 2',
|
||||
'website_id' => 'base',
|
||||
'customer_group_id' => \Magento\Customer\Model\Group::CUST_GROUP_ALL,
|
||||
'qty' => 10,
|
||||
'value' => 450,
|
||||
'percentage_value' => null
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
'sku' => 'AdvancedPricingSimple 2',
|
||||
'tier_price_website' => 'All Websites [USD]',
|
||||
'tier_price_customer_group' => 'ALL GROUPS',
|
||||
'tier_price_qty' => '10.0000',
|
||||
'tier_price' => '30.0000',
|
||||
'tier_price_value_type' => 'Discount',
|
||||
]
|
||||
],
|
||||
\Magento\ImportExport\Model\Import::BEHAVIOR_APPEND,
|
||||
[1]
|
||||
],
|
||||
[
|
||||
[
|
||||
],
|
||||
[
|
||||
[
|
||||
'sku' => 'AdvancedPricingSimple 1',
|
||||
'tier_price_website' => 'All Websites [USD]',
|
||||
'tier_price_customer_group' => 'ALL GROUPS',
|
||||
'tier_price_qty' => '5.0000',
|
||||
'tier_price' => '300',
|
||||
'tier_price_value_type' => 'Fixed',
|
||||
],
|
||||
[
|
||||
'sku' => 'AdvancedPricingSimple 1',
|
||||
'tier_price_website' => 'base',
|
||||
'tier_price_customer_group' => 'ALL GROUPS',
|
||||
'tier_price_qty' => '5.0000',
|
||||
'tier_price' => '25.0000',
|
||||
'tier_price_value_type' => 'Discount',
|
||||
]
|
||||
],
|
||||
\Magento\ImportExport\Model\Import::BEHAVIOR_REPLACE,
|
||||
[2]
|
||||
],
|
||||
[
|
||||
[
|
||||
[
|
||||
'sku' => 'AdvancedPricingSimple 2',
|
||||
'website_id' => 'base',
|
||||
'customer_group_id' => \Magento\Customer\Model\Group::CUST_GROUP_ALL,
|
||||
'qty' => 10,
|
||||
'value' => 450,
|
||||
'percentage_value' => null
|
||||
]
|
||||
],
|
||||
[
|
||||
[
|
||||
'sku' => 'AdvancedPricingSimple 2',
|
||||
'tier_price_website' => 'All Websites [USD]',
|
||||
'tier_price_customer_group' => 'ALL GROUPS',
|
||||
'tier_price_qty' => '10.0000',
|
||||
'tier_price' => '30.0000',
|
||||
'tier_price_value_type' => 'Discount',
|
||||
]
|
||||
],
|
||||
\Magento\ImportExport\Model\Import::BEHAVIOR_REPLACE,
|
||||
[]
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user