-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Admin] Product variant features #5068
[Admin] Product variant features #5068
Conversation
$this->addSql('DROP INDEX fulltext_search_idx ON sylius_search_index'); | ||
$this->addSql('CREATE INDEX fulltext_search_idx ON sylius_search_index (item_id)'); | ||
$this->addSql('DROP INDEX IDX_A29B523F9038C4 ON sylius_product_variant'); | ||
$this->addSql('ALTER TABLE sylius_product_variant ADD code VARCHAR(255) NOT NULL, DROP sku'); |
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.
If you're determined to make this change then I suggest renaming the field to help people upgrading:
ALTER TABLE sylius_product_variant CHANGE sku code VARCHAR(255) NUL NULL
I still think it's a bad change.
People will confused Product.code and ProductVariant.code.
5dd289b
to
f80d2e7
Compare
b5c084b
to
acf3fca
Compare
@@ -0,0 +1,21 @@ | |||
@managing_product_variants | |||
Feature: Adding a new product variant | |||
In order to extend my merchandise |
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.
In order to sell different variations of a single product
acf3fca
to
c83d22e
Compare
Scenario: Browsing product variants in store | ||
When I want to view all variants of this product | ||
Then I should see 1 variant in the list | ||
|
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.
Extra blank line.
fd3feef
to
195f08d
Compare
} | ||
|
||
/** | ||
* @Given /^I want to create a new product variant for (this product)$/ |
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 want to create a new variant of this product
195f08d
to
f13081e
Compare
- sylius.behat.context.transform.shipping_method | ||
- sylius.behat.context.transform.addressing | ||
|
||
|
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.
Extra blank line
bf4d2b1
to
4edc47f
Compare
d62c6e5
to
321d743
Compare
*/ | ||
public function iDeleteTheVariantOfProduct(ProductVariantInterface $productVariant) | ||
{ | ||
$this->iWantToViewAllVariantsOfThisProduct($productVariant->getObject()); |
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.
getProduct()
321d743
to
c3789c9
Compare
c3789c9
to
accb94d
Compare
accb94d
to
ba8a36a
Compare
Thank you Łukasz! Good job! |
SKU removal will be also a part of this PR. SKU will be replaced by code, which is immutable.
Based on #4947