How to add approval status and activation in combined data import
I am trying to import product with combined file and I've add prodcut_abstract.approval_status to approved column in csv file but it is not taking any effect on product.
So how can we add approval and activation column in combined csv file
Answers
-
Hi!
We're quite strict on the fields that are allowed to be important in order to keep control of the updates applied to the DB.
To include approval status, please add corresponding assignment into this function, overridden in the class CombinedProductAbstractHydratorStep: \Pyz\Zed\DataImport\Business\Model\ProductAbstract\ProductAbstractHydratorStep::importProductAbstract
protected function importProductAbstract(DataSetInterface $dataSet): void { parent::importProductAbstract($dataSet); $dataSet[static::DATA_PRODUCT_ABSTRACT_TRANSFER]->setApprovalStatus($dataSet['product_abstract.approval_status']); }
p.s. you also have to chabge the column name to `product_abstract.approval_status`
0 -
@profuel , thanks for the quick response, will check
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 75 Spryker News
- 919 Developer Corner
- 779 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 25 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 69 Spryker Safari Questions
- 50 Random