ltsecurityinc安防产品在线商城代码
This commit is contained in:
+114
@@ -0,0 +1,114 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
namespace Magento\ConfigurableImportExport\Model;
|
||||
|
||||
use Magento\CatalogImportExport\Model\AbstractProductExportImportTestCase;
|
||||
|
||||
class ConfigurableTest extends AbstractProductExportImportTestCase
|
||||
{
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function exportImportDataProvider(): array
|
||||
{
|
||||
return [
|
||||
'configurable-product' => [
|
||||
[
|
||||
'Magento/ConfigurableProduct/_files/product_configurable.php'
|
||||
],
|
||||
[
|
||||
'configurable',
|
||||
],
|
||||
['_cache_instance_products', '_cache_instance_configurable_attributes'],
|
||||
],
|
||||
'configurable-product-12345' => [
|
||||
[
|
||||
'Magento/ConfigurableProduct/_files/product_configurable_12345.php'
|
||||
],
|
||||
[
|
||||
'12345',
|
||||
],
|
||||
['_cache_instance_products', '_cache_instance_configurable_attributes'],
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
protected function assertEqualsSpecificAttributes(
|
||||
\Magento\Catalog\Model\Product $expectedProduct,
|
||||
\Magento\Catalog\Model\Product $actualProduct
|
||||
): void {
|
||||
/** @var \Magento\ConfigurableProduct\Model\Product\Type\Configurable $productType */
|
||||
$productType = $expectedProduct->getTypeInstance();
|
||||
$expectedAssociatedProducts = $productType->getUsedProductCollection($expectedProduct);
|
||||
$actualAssociatedProducts = iterator_to_array($productType->getUsedProductCollection($actualProduct));
|
||||
|
||||
$expectedAssociatedProductSkus = [];
|
||||
$actualAssociatedProductSkus = [];
|
||||
foreach ($expectedAssociatedProducts as $i => $associatedProduct) {
|
||||
$expectedAssociatedProductSkus[] = $associatedProduct->getSku();
|
||||
$actualAssociatedProductSkus[] = $actualAssociatedProducts[$i]->getSku();
|
||||
}
|
||||
|
||||
$this->assertEquals($expectedAssociatedProductSkus, $actualAssociatedProductSkus);
|
||||
|
||||
$expectedProductExtensionAttributes = $expectedProduct->getExtensionAttributes();
|
||||
$actualProductExtensionAttributes = $actualProduct->getExtensionAttributes();
|
||||
|
||||
$this->assertEquals(
|
||||
count($expectedProductExtensionAttributes->getConfigurableProductLinks()),
|
||||
count($actualProductExtensionAttributes->getConfigurableProductLinks())
|
||||
);
|
||||
|
||||
$expectedConfigurableProductOptions = $expectedProductExtensionAttributes->getConfigurableProductOptions();
|
||||
$actualConfigurableProductOptions = $actualProductExtensionAttributes->getConfigurableProductOptions();
|
||||
|
||||
$this->assertEquals(count($expectedConfigurableProductOptions), count($actualConfigurableProductOptions));
|
||||
|
||||
$expectedConfigurableProductOptionsToCompare = [];
|
||||
foreach ($expectedConfigurableProductOptions as $expectedConfigurableProductOption) {
|
||||
foreach ($expectedConfigurableProductOption->getOptions() as $optionValue) {
|
||||
$expectedConfigurableProductOptionsToCompare[$expectedConfigurableProductOption->getLabel()][]
|
||||
= $optionValue['label'];
|
||||
}
|
||||
}
|
||||
|
||||
$actualConfigurableProductOptionsToCompare = [];
|
||||
foreach ($actualConfigurableProductOptions as $actualConfigurableProductOption) {
|
||||
foreach ($actualConfigurableProductOption->getOptions() as $optionValue) {
|
||||
$actualConfigurableProductOptionsToCompare[$actualConfigurableProductOption->getLabel()][]
|
||||
= $optionValue['label'];
|
||||
}
|
||||
}
|
||||
|
||||
$this->assertEquals(
|
||||
count($expectedConfigurableProductOptionsToCompare),
|
||||
count($actualConfigurableProductOptionsToCompare)
|
||||
);
|
||||
|
||||
foreach ($expectedConfigurableProductOptionsToCompare as $key => $expectedOptionValues) {
|
||||
$actualOptionValues = $actualConfigurableProductOptionsToCompare[$key];
|
||||
sort($expectedOptionValues);
|
||||
sort($actualOptionValues);
|
||||
$this->assertEquals($expectedOptionValues, $actualOptionValues);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
protected function executeImportReplaceTest(
|
||||
$skus,
|
||||
$skippedAttributes,
|
||||
$usePagination = false,
|
||||
string $csvfile = null
|
||||
) {
|
||||
$skippedAttributes = array_merge($skippedAttributes, ['_cache_instance_product_set_attributes']);
|
||||
parent::executeImportReplaceTest($skus, $skippedAttributes, $usePagination, $csvfile);
|
||||
}
|
||||
}
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
namespace Magento\ConfigurableImportExport\Model\Export;
|
||||
|
||||
/**
|
||||
* @magentoAppArea adminhtml
|
||||
*/
|
||||
class RowCustomizerTest extends \PHPUnit\Framework\TestCase
|
||||
{
|
||||
/**
|
||||
* @var \Magento\ConfigurableImportExport\Model\Export\RowCustomizer
|
||||
*/
|
||||
private $model;
|
||||
|
||||
/**
|
||||
* @var \Magento\Framework\ObjectManagerInterface
|
||||
*/
|
||||
private $objectManager;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
|
||||
$this->model = $this->objectManager->create(
|
||||
\Magento\ConfigurableImportExport\Model\Export\RowCustomizer::class
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @magentoDataFixture Magento/ConfigurableProduct/_files/product_configurable.php
|
||||
*/
|
||||
public function testPrepareData()
|
||||
{
|
||||
$collection = $this->objectManager->get(\Magento\Catalog\Model\ResourceModel\Product\Collection::class);
|
||||
$select = (string)$collection->getSelect();
|
||||
$this->model->prepareData($collection, [1, 2, 3, 4]);
|
||||
$this->assertEquals($select, (string)$collection->getSelect());
|
||||
$result = $this->model->addData([], 1);
|
||||
$this->assertArrayHasKey('configurable_variations', $result);
|
||||
$this->assertArrayHasKey('configurable_variation_labels', $result);
|
||||
$this->assertEquals(
|
||||
'sku=simple_10,test_configurable=Option 1|sku=simple_20,test_configurable=Option 2',
|
||||
$result['configurable_variations']
|
||||
);
|
||||
$this->assertEquals(
|
||||
'test_configurable=Test Configurable',
|
||||
$result['configurable_variation_labels']
|
||||
);
|
||||
}
|
||||
}
|
||||
+279
@@ -0,0 +1,279 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
namespace Magento\ConfigurableImportExport\Model\Import\Product\Type;
|
||||
|
||||
use Magento\Catalog\Api\Data\ProductInterface;
|
||||
use Magento\Catalog\Api\ProductRepositoryInterface;
|
||||
use Magento\Catalog\Model\Product;
|
||||
use Magento\CatalogInventory\Api\Data\StockItemInterface;
|
||||
use Magento\CatalogInventory\Api\StockConfigurationInterface;
|
||||
use Magento\CatalogInventory\Api\StockItemRepositoryInterface;
|
||||
use Magento\Framework\App\Filesystem\DirectoryList;
|
||||
use Magento\Framework\EntityManager\EntityMetadata;
|
||||
use Magento\Framework\EntityManager\MetadataPool;
|
||||
use Magento\Framework\Filesystem;
|
||||
use Magento\Framework\ObjectManagerInterface;
|
||||
use Magento\ImportExport\Model\Import;
|
||||
use Magento\ImportExport\Model\Import\ErrorProcessing\ProcessingErrorAggregatorInterface;
|
||||
use Magento\ImportExport\Model\Import\Adapter as ImportAdapter;
|
||||
use Magento\CatalogInventory\Api\StockItemCriteriaInterfaceFactory;
|
||||
use Magento\Store\Model\Store;
|
||||
use Magento\TestFramework\Helper\Bootstrap;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @magentoAppArea adminhtml
|
||||
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||
*/
|
||||
class ConfigurableTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* Configurable product test Type
|
||||
*/
|
||||
public const TEST_PRODUCT_TYPE = 'configurable';
|
||||
|
||||
/**
|
||||
* @var \Magento\CatalogImportExport\Model\Import\Product
|
||||
*/
|
||||
protected $model;
|
||||
|
||||
/**
|
||||
* @var ObjectManagerInterface
|
||||
*/
|
||||
protected $objectManager;
|
||||
|
||||
/**
|
||||
* @var EntityMetadata
|
||||
*/
|
||||
protected $productMetadata;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->objectManager = Bootstrap::getObjectManager();
|
||||
$this->model = $this->objectManager->create(\Magento\CatalogImportExport\Model\Import\Product::class);
|
||||
/** @var MetadataPool $metadataPool */
|
||||
$metadataPool = $this->objectManager->get(MetadataPool::class);
|
||||
$this->productMetadata = $metadataPool->getMetadata(ProductInterface::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @magentoDataFixture Magento/ConfigurableProduct/_files/configurable_products.php
|
||||
*/
|
||||
public function testShouldUpdateConfigurableStockStatusIfChildProductsStockStatusChanged(): void
|
||||
{
|
||||
$sku = 'configurable';
|
||||
/** @var ProductRepositoryInterface $productRepository */
|
||||
$productRepository = $this->objectManager->get(ProductRepositoryInterface::class);
|
||||
/** @var ProductInterface $product */
|
||||
$product = $productRepository->get($sku, true, null, true);
|
||||
$stockItem = $this->getStockItem((int) $product->getId());
|
||||
$this->assertNotNull($stockItem);
|
||||
$this->assertTrue($stockItem->getIsInStock());
|
||||
|
||||
// Set all child product out of stock
|
||||
$pathToFile = __DIR__ . '/../../_files/import_configurable_child_products_stock_item_status_out_of_stock.csv';
|
||||
$errors = $this->doImport($pathToFile);
|
||||
$this->assertEquals(0, $errors->getErrorsCount());
|
||||
|
||||
$stockItem = $this->getStockItem((int) $product->getId());
|
||||
$this->assertNotNull($stockItem);
|
||||
$this->assertFalse($stockItem->getIsInStock());
|
||||
|
||||
// Set some child product in stock
|
||||
$pathToFile = __DIR__ . '/../../_files/import_configurable_child_products_stock_item_status_in_stock.csv';
|
||||
$errors = $this->doImport($pathToFile);
|
||||
$this->assertEquals(0, $errors->getErrorsCount());
|
||||
|
||||
$stockItem = $this->getStockItem((int) $product->getId());
|
||||
$this->assertNotNull($stockItem);
|
||||
$this->assertTrue($stockItem->getIsInStock());
|
||||
}
|
||||
|
||||
public function configurableImportDataProvider()
|
||||
{
|
||||
return [
|
||||
'Configurable 1' => [
|
||||
__DIR__ . '/../../_files/import_configurable.csv',
|
||||
'Configurable 1',
|
||||
['Configurable 1-Option 1', 'Configurable 1-Option 2'],
|
||||
],
|
||||
'12345' => [
|
||||
__DIR__ . '/../../_files/import_configurable_12345.csv',
|
||||
'12345',
|
||||
['Configurable 1-Option 1', 'Configurable 1-Option 2'],
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $pathToFile Path to import file
|
||||
* @param string $productName Name/sku of configurable product
|
||||
* @param array $optionSkuList Name of variations for configurable product
|
||||
* @magentoDataFixture Magento/ConfigurableProduct/_files/configurable_attribute.php
|
||||
* @magentoAppArea adminhtml
|
||||
* @magentoAppIsolation enabled
|
||||
* @dataProvider configurableImportDataProvider
|
||||
*/
|
||||
public function testConfigurableImport($pathToFile, $productName, $optionSkuList)
|
||||
{
|
||||
$errors = $this->doImport($pathToFile, Import::BEHAVIOR_APPEND);
|
||||
|
||||
$this->assertTrue($errors->getErrorsCount() == 0);
|
||||
$this->model->importData();
|
||||
|
||||
/** @var \Magento\Catalog\Model\ResourceModel\Product $resource */
|
||||
$resource = $this->objectManager->get(\Magento\Catalog\Model\ResourceModel\Product::class);
|
||||
$productId = $resource->getIdBySku($productName);
|
||||
$this->assertIsNumeric($productId);
|
||||
/** @var Product $product */
|
||||
$product = $this->objectManager->get(ProductRepositoryInterface::class)->getById($productId);
|
||||
|
||||
$this->assertFalse($product->isObjectNew());
|
||||
$this->assertEquals($productName, $product->getName());
|
||||
$this->assertEquals(self::TEST_PRODUCT_TYPE, $product->getTypeId());
|
||||
|
||||
$optionCollection = $product->getTypeInstance()->getConfigurableOptions($product);
|
||||
foreach ($optionCollection as $option) {
|
||||
foreach ($option as $optionData) {
|
||||
$this->assertContains($optionData['sku'], $optionSkuList);
|
||||
}
|
||||
}
|
||||
|
||||
$optionIdList = $resource->getProductsIdsBySkus($optionSkuList);
|
||||
foreach ($optionIdList as $optionId) {
|
||||
$this->assertArrayHasKey($optionId, $product->getExtensionAttributes()->getConfigurableProductLinks());
|
||||
}
|
||||
|
||||
$configurableOptionCollection = $product->getExtensionAttributes()->getConfigurableProductOptions();
|
||||
$this->assertCount(1, $configurableOptionCollection);
|
||||
foreach ($configurableOptionCollection as $option) {
|
||||
$optionData = $option->getData();
|
||||
$this->assertArrayHasKey('product_super_attribute_id', $optionData);
|
||||
$this->assertArrayHasKey('product_id', $optionData);
|
||||
$this->assertEquals($product->getData($this->productMetadata->getLinkField()), $optionData['product_id']);
|
||||
$this->assertArrayHasKey('attribute_id', $optionData);
|
||||
$this->assertArrayHasKey('position', $optionData);
|
||||
$this->assertArrayHasKey('extension_attributes', $optionData);
|
||||
$this->assertArrayHasKey('product_attribute', $optionData);
|
||||
$productAttributeData = $optionData['product_attribute']->getData();
|
||||
$this->assertArrayHasKey('attribute_id', $productAttributeData);
|
||||
$this->assertArrayHasKey('entity_type_id', $productAttributeData);
|
||||
$this->assertArrayHasKey('attribute_code', $productAttributeData);
|
||||
$this->assertEquals('test_configurable', $productAttributeData['attribute_code']);
|
||||
$this->assertArrayHasKey('frontend_label', $productAttributeData);
|
||||
$this->assertEquals('Test Configurable', $productAttributeData['frontend_label']);
|
||||
$this->assertArrayHasKey('label', $optionData);
|
||||
$this->assertEquals('test_configurable_custom_label', $optionData['label']);
|
||||
$this->assertArrayHasKey('use_default', $optionData);
|
||||
$this->assertArrayHasKey('options', $optionData);
|
||||
$this->assertEquals('Option 1', $optionData['options'][0]['label']);
|
||||
$this->assertEquals('Option 1', $optionData['options'][0]['default_label']);
|
||||
$this->assertEquals('Option 1', $optionData['options'][0]['store_label']);
|
||||
$this->assertEquals('Option 2', $optionData['options'][1]['label']);
|
||||
$this->assertEquals('Option 2', $optionData['options'][1]['default_label']);
|
||||
$this->assertEquals('Option 2', $optionData['options'][1]['store_label']);
|
||||
$this->assertArrayHasKey('values', $optionData);
|
||||
$valuesData = $optionData['values'];
|
||||
$this->assertCount(2, $valuesData);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @magentoDataFixture Magento/Catalog/_files/enable_reindex_schedule.php
|
||||
* @magentoDataFixture Magento/Store/_files/second_store.php
|
||||
* @magentoDataFixture Magento/ConfigurableProduct/_files/configurable_attribute.php
|
||||
* @magentoAppArea adminhtml
|
||||
* @magentoAppIsolation enabled
|
||||
* @magentoDbIsolation disabled
|
||||
*/
|
||||
public function testConfigurableImportWithMultipleStores()
|
||||
{
|
||||
$productSku = 'Configurable 1';
|
||||
$products = [
|
||||
'default' => 'Configurable 1',
|
||||
'fixture_second_store' => 'Configurable 1 Second Store'
|
||||
];
|
||||
$pathToFile = __DIR__ . '/../../_files/import_configurable_for_multiple_store_views.csv';
|
||||
$errors = $this->doImport($pathToFile, Import::BEHAVIOR_APPEND);
|
||||
|
||||
$this->assertTrue($errors->getErrorsCount() == 0);
|
||||
$this->model->importData();
|
||||
|
||||
foreach ($products as $storeCode => $productName) {
|
||||
$store = $this->objectManager->create(Store::class);
|
||||
$store->load($storeCode, 'code');
|
||||
/** @var ProductRepositoryInterface $productRepository */
|
||||
$productRepository = $this->objectManager->get(ProductRepositoryInterface::class);
|
||||
/** @var ProductInterface $product */
|
||||
$product = $productRepository->get($productSku, 0, $store->getId());
|
||||
$this->assertFalse($product->isObjectNew());
|
||||
$this->assertEquals($productName, $product->getName());
|
||||
$this->assertEquals(self::TEST_PRODUCT_TYPE, $product->getTypeId());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @magentoDataFixture Magento/Catalog/_files/enable_reindex_schedule.php
|
||||
* @magentoDataFixture Magento/Store/_files/second_store.php
|
||||
* @magentoDataFixture Magento/ConfigurableProduct/_files/configurable_attribute.php
|
||||
* @magentoDbIsolation disabled
|
||||
* @magentoAppArea adminhtml
|
||||
*/
|
||||
public function testConfigurableImportWithStoreSpecifiedMainItem()
|
||||
{
|
||||
{
|
||||
$expectedErrorMessage = 'Product with assigned super attributes should not have specified "store_view_code"'
|
||||
. ' value';
|
||||
$pathToFile = __DIR__ . '/../../_files/import_configurable_for_multiple_store_views_error.csv';
|
||||
$errors = $this->doImport($pathToFile, Import::BEHAVIOR_APPEND);
|
||||
|
||||
$this->assertTrue($errors->getErrorsCount() == 1);
|
||||
$this->assertEquals($expectedErrorMessage, $errors->getAllErrors()[0]->getErrorMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $productId
|
||||
* @return StockItemInterface|null
|
||||
*/
|
||||
private function getStockItem(int $productId): ?StockItemInterface
|
||||
{
|
||||
$criteriaFactory = $this->objectManager->create(StockItemCriteriaInterfaceFactory::class);
|
||||
$stockItemRepository = $this->objectManager->create(StockItemRepositoryInterface::class);
|
||||
$stockConfiguration = $this->objectManager->create(StockConfigurationInterface::class);
|
||||
$criteria = $criteriaFactory->create();
|
||||
$criteria->setScopeFilter($stockConfiguration->getDefaultScopeId());
|
||||
$criteria->setProductsFilter($productId);
|
||||
$stockItemCollection = $stockItemRepository->getList($criteria);
|
||||
$stockItems = $stockItemCollection->getItems();
|
||||
return reset($stockItems);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $file
|
||||
* @param string $behavior
|
||||
* @param bool $validateOnly
|
||||
* @return ProcessingErrorAggregatorInterface
|
||||
*/
|
||||
private function doImport(
|
||||
string $file,
|
||||
string $behavior = Import::BEHAVIOR_ADD_UPDATE,
|
||||
bool $validateOnly = false
|
||||
): ProcessingErrorAggregatorInterface {
|
||||
/** @var Filesystem $filesystem */
|
||||
$filesystem =$this->objectManager->create(Filesystem::class);
|
||||
$directoryWrite = $filesystem->getDirectoryWrite(DirectoryList::ROOT);
|
||||
$source = ImportAdapter::findAdapterFor($file, $directoryWrite);
|
||||
$errors = $this->model
|
||||
->setParameters(['behavior' => $behavior, 'entity' => 'catalog_product'])
|
||||
->setSource($source)
|
||||
->validateData();
|
||||
if (!$validateOnly && !$errors->getAllErrors()) {
|
||||
$this->model->importData();
|
||||
}
|
||||
return $errors;
|
||||
}
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
sku,store_view_code,attribute_set_code,product_type,name,description,short_description,weight,product_online,tax_class_name,visibility,price,url_key,display_product_options_in,map_price,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,configurable_variations,configurable_variation_labels,associated_skus
|
||||
Configurable 1-Option 1,,Default,simple,Configurable 1-Option 1,,,,1,Taxable Goods,Not Visible Individually,10,configurable-1-option-1,Block after Info Column,,"attribute_with_option=Option Label,has_options=0,quantity_and_stock_status=In Stock,required_options=0,test_configurable=Option 1",99999,0,0,0,0,1,1,0,0,0,1,,1,1,0,0,1,0,0,0,1,,,
|
||||
Configurable 1-Option 2,,Default,simple,Configurable 1-Option 2,,,,1,Taxable Goods,Not Visible Individually,10,configurable-1-option-2,Block after Info Column,,"has_options=0,quantity_and_stock_status=In Stock,required_options=0,test_configurable=Option 2",99999,0,0,0,0,1,1,0,0,0,1,,1,1,0,0,1,0,0,0,1,,,
|
||||
Configurable 1,,Default,configurable,Configurable 1,,,,1,Taxable Goods,"Catalog, Search",10,configurable-1,Block after Info Column,,"has_options=1,quantity_and_stock_status=In Stock,required_options=0",0,0,0,0,0,1,1,0,0,0,1,,1,0,0,0,1,0,0,0,1,"sku=Configurable 1-Option 1,test_configurable=Option 1|sku=Configurable 1-Option 2,test_configurable=Option 2",test_configurable=test_configurable_custom_label,
|
||||
|
+4
@@ -0,0 +1,4 @@
|
||||
sku,store_view_code,attribute_set_code,product_type,name,description,short_description,weight,product_online,tax_class_name,visibility,price,url_key,display_product_options_in,map_price,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,configurable_variations,configurable_variation_labels,associated_skus
|
||||
Configurable 1-Option 1,,Default,simple,Configurable 1-Option 1,,,,1,Taxable Goods,Not Visible Individually,10,configurable-1-option-1,Block after Info Column,,"attribute_with_option=Option Label,has_options=0,quantity_and_stock_status=In Stock,required_options=0,test_configurable=Option 1",99999,0,0,0,0,1,1,0,0,0,1,,1,1,0,0,1,0,0,0,1,,,
|
||||
Configurable 1-Option 2,,Default,simple,Configurable 1-Option 2,,,,1,Taxable Goods,Not Visible Individually,10,configurable-1-option-2,Block after Info Column,,"has_options=0,quantity_and_stock_status=In Stock,required_options=0,test_configurable=Option 2",99999,0,0,0,0,1,1,0,0,0,1,,1,1,0,0,1,0,0,0,1,,,
|
||||
12345,,Default,configurable,12345,,,,1,Taxable Goods,"Catalog, Search",10,12345,Block after Info Column,,"has_options=1,quantity_and_stock_status=In Stock,required_options=0",0,0,0,0,0,1,1,0,0,0,1,,1,0,0,0,1,0,0,0,1,"sku=Configurable 1-Option 1,test_configurable=Option 1|sku=Configurable 1-Option 2,test_configurable=Option 2",test_configurable=test_configurable_custom_label,
|
||||
|
+3
@@ -0,0 +1,3 @@
|
||||
"sku","qty","is_in_stock"
|
||||
"simple_10","0","0"
|
||||
"simple_20","100","1"
|
||||
|
+3
@@ -0,0 +1,3 @@
|
||||
"sku","qty","is_in_stock"
|
||||
"simple_10","0","0"
|
||||
"simple_20","0","0"
|
||||
|
+5
@@ -0,0 +1,5 @@
|
||||
sku,store_view_code,attribute_set_code,product_type,name,description,short_description,weight,product_online,tax_class_name,visibility,price,url_key,display_product_options_in,map_price,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,configurable_variations,configurable_variation_labels,associated_skus
|
||||
Configurable 1-Option 1,,Default,simple,Configurable 1-Option 1,,,,1,Taxable Goods,Not Visible Individually,10,configurable-1-option-1,Block after Info Column,,"attribute_with_option=Option Label,has_options=0,quantity_and_stock_status=In Stock,required_options=0,test_configurable=Option 1",99999,0,0,0,0,1,1,0,0,0,1,,1,1,0,0,1,0,0,0,1,,,
|
||||
Configurable 1-Option 2,,Default,simple,Configurable 1-Option 2,,,,1,Taxable Goods,Not Visible Individually,10,configurable-1-option-2,Block after Info Column,,"has_options=0,quantity_and_stock_status=In Stock,required_options=0,test_configurable=Option 2",99999,0,0,0,0,1,1,0,0,0,1,,1,1,0,0,1,0,0,0,1,,,
|
||||
Configurable 1,,Default,configurable,Configurable 1,,,,1,Taxable Goods,"Catalog, Search",10,configurable-1,Block after Info Column,,"has_options=1,quantity_and_stock_status=In Stock,required_options=0",0,0,0,0,0,1,1,0,0,0,1,,1,0,0,0,1,0,0,0,1,"sku=Configurable 1-Option 1,test_configurable=Option 1|sku=Configurable 1-Option 2,test_configurable=Option 2",test_configurable=test_configurable_custom_label,
|
||||
Configurable 1,fixture_second_store,Default,configurable,Configurable 1 Second Store,,,,1,Taxable Goods,"Catalog, Search",10,configurable-1,Block after Info Column,,"has_options=1,quantity_and_stock_status=In Stock,required_options=0",0,0,0,0,0,1,1,0,0,0,1,,1,0,0,0,1,0,0,0,1,,test_configurable=test_configurable_custom_label_second_store,
|
||||
|
+4
@@ -0,0 +1,4 @@
|
||||
sku,store_view_code,attribute_set_code,product_type,name,description,short_description,weight,product_online,tax_class_name,visibility,price,url_key,display_product_options_in,map_price,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,configurable_variations,configurable_variation_labels,associated_skus
|
||||
Configurable 1-Option 1,,Default,simple,Configurable 1-Option 1,,,,1,Taxable Goods,Not Visible Individually,10,configurable-1-option-1,Block after Info Column,,"attribute_with_option=Option Label,has_options=0,quantity_and_stock_status=In Stock,required_options=0,test_configurable=Option 1",99999,0,0,0,0,1,1,0,0,0,1,,1,1,0,0,1,0,0,0,1,,,
|
||||
Configurable 1-Option 2,,Default,simple,Configurable 1-Option 2,,,,1,Taxable Goods,Not Visible Individually,10,configurable-1-option-2,Block after Info Column,,"has_options=0,quantity_and_stock_status=In Stock,required_options=0,test_configurable=Option 2",99999,0,0,0,0,1,1,0,0,0,1,,1,1,0,0,1,0,0,0,1,,,
|
||||
Configurable 1,default,Default,configurable,Configurable 1,,,,1,Taxable Goods,"Catalog, Search",10,configurable-1,Block after Info Column,,"has_options=1,quantity_and_stock_status=In Stock,required_options=0",0,0,0,0,0,1,1,0,0,0,1,,1,0,0,0,1,0,0,0,1,"sku=Configurable 1-Option 1,test_configurable=Option 1|sku=Configurable 1-Option 2,test_configurable=Option 2",test_configurable=test_configurable_custom_label,
|
||||
|
Reference in New Issue
Block a user