Skip to content

Assign Website at the time of Creation to the Default Stock #163

@maghamed

Description

@maghamed

Website creation. We should assign Default stock to the newly created website.

We need to pluginize website resource model

namespace Magento\Store\Model\ResourceModel;

/**
 * Website Resource Model
 *
 * @api
 * @since 100.0.2
 */
class Website extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb

with afterSave plugin.
And for all newly created website (which does not have linkage to any Stock) we need to make an assignment to the Default Stock using APIs provided in PR #150

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions