-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
E-commerce Platforms and Integrations #155
base: master
Are you sure you want to change the base?
Conversation
console/migrations/m230221_134343_add_shopify_mock_ecommerce_platfort.php
Outdated
Show resolved
Hide resolved
use common\models\EcommercePlatform; | ||
|
||
/** | ||
* Class m230221_134343_add_shopify_mock_ecommerce_platfort |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Class m230221_134343_add_shopify_mock_ecommerce_platfort | |
* Class m230221_134343_add_shopify_mock_ecommerce_platform |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@samdark thanks)
$ecommercePlatform = new EcommercePlatform(); | ||
$ecommercePlatform->name = EcommercePlatform::SHOPIFY_PLATFORM_NAME; | ||
$ecommercePlatform->save(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd avoid using model in migration. Model may change and migration won't apply anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Totally agree. Changed.
…latfort.php Co-authored-by: Alexander Makarov <[email protected]>
1/ Old logic related to Shopify was deleted (DB tables, a separate Yii instance, code, docker, etc.)
2/ E-commerce Platforms.
Access: Only
admin
.Adding: I suppose adding must be implemented via code (migrations) since it will be "system" objects in the future. I added Shopify as the first mock e-commerce platform.
Actions:
Fields:
Explanations:
3/ E-commerce Integrations. Depends on E-commerce Platforms.
Access: All
users
.Actions:
Explanations:
E-commerce Platforms:
`
`
E-commerce Integrations:
`
`