Magento 2.2.1 cannot import custom options in different store view / language from another product does not...
Purpose of creating non root user
How to make money from a browser who sees 5 seconds into the future of any web page?
Why does the Persian emissary display a string of crowned skulls?
Would a primitive species be able to learn English from reading books alone?
Why do Radio Buttons not fill the entire outer circle?
Is stochastic gradient descent pseudo-stochastic?
If the only attacker is removed from combat, is a creature still counted as having attacked this turn?
How to make a list of partial sums using forEach
What's the name of the logical fallacy where a debater extends a statement far beyond the original statement to make it true?
How can I, as DM, avoid the Conga Line of Death occurring when implementing some form of flanking rule?
How to preserve electronics (computers, iPads and phones) for hundreds of years
Review your own paper in Mathematics
Can I say "fingers" when referring to toes?
Has the laser at Magurele, Romania reached a tenth of the Sun's power?
Do I have to take mana from my deck or hand when tapping a dual land?
Anime with legendary swords made from talismans and a man who could change them with a shattered body
Alignment of six matrices
Quoting Keynes in a lecture
Are Captain Marvel's powers affected by Thanos breaking the Tesseract and claiming the stone?
How to I force windows to use a specific version of SQLCMD?
Deciphering cause of death?
Typing CO_2 easily
How much do grades matter for a future academia position?
How do I tell my boss that I'm quitting in 15 days (a colleague left this week)
Magento 2.2.1 cannot import custom options in different store view / language from another product does not work
Magento 1.8 : Import product for store viewCustom Product Options per store viewCopy product data from one store to anotherProduct options not showing up after import productsHow to apply Magento Product Custom options on custom product pageHow to import product content different for each store view (translations/multilingual)?Is it possible for a global product to have store dependent custom options?Magento Product Image Import selection store-wise not workingConfigure product custom options for different store views
In product ID 192, the product has a color option, and I have translated it for 3 different store view / languages

In FR

In product ID 191 i will the same custom options like in product 192. I click on import options in Customizable Options in default store view, and import it all, then save.



Now change store view to French store, the value should be in French, but all covered by default value.

I tried to import it in French store view, but the value also be covered by default value.

So, how to import it for different store view?
import custom-options magento-2.2.1
add a comment |
In product ID 192, the product has a color option, and I have translated it for 3 different store view / languages

In FR

In product ID 191 i will the same custom options like in product 192. I click on import options in Customizable Options in default store view, and import it all, then save.



Now change store view to French store, the value should be in French, but all covered by default value.

I tried to import it in French store view, but the value also be covered by default value.

So, how to import it for different store view?
import custom-options magento-2.2.1
add a comment |
In product ID 192, the product has a color option, and I have translated it for 3 different store view / languages

In FR

In product ID 191 i will the same custom options like in product 192. I click on import options in Customizable Options in default store view, and import it all, then save.



Now change store view to French store, the value should be in French, but all covered by default value.

I tried to import it in French store view, but the value also be covered by default value.

So, how to import it for different store view?
import custom-options magento-2.2.1
In product ID 192, the product has a color option, and I have translated it for 3 different store view / languages

In FR

In product ID 191 i will the same custom options like in product 192. I click on import options in Customizable Options in default store view, and import it all, then save.



Now change store view to French store, the value should be in French, but all covered by default value.

I tried to import it in French store view, but the value also be covered by default value.

So, how to import it for different store view?
import custom-options magento-2.2.1
import custom-options magento-2.2.1
asked Feb 1 '18 at 3:04
ChrisChris
62
62
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
I have the same issue, that not able to save the custom option price store view wise in magento2.2.1 version.
I have checked the core files code and came to know that on product save they are saving the value for only default store view, its not taking the current switched store id.
Change the following file
/vendor/magento/module-catalog/Model/ResourceModel/Product/Option/Value.php
In protected function _saveValuePrices(MagentoFrameworkModelAbstractModel $object)
change from MagentoStoreModelStore::DEFAULT_STORE_ID," to "$object->getStoreId()
line 112
)->where(
'store_id = ?',
MagentoStoreModelStore::DEFAULT_STORE_ID
);
To
)->where(
'store_id = ?',
$object->getStoreId()
);
line 121
$where = [
'option_type_id = ?' => $optionTypeId,
'store_id = ?' => MagentoStoreModelStore::DEFAULT_STORE_ID,
];
To
$where = [
'option_type_id = ?' => $optionTypeId,
'store_id = ?' => $object->getStoreId(),
];
line 129
$bind = [
'option_type_id' => (int)$object->getId(),
'store_id' => MagentoStoreModelStore::DEFAULT_STORE_ID,
'price' => $price,
'price_type' => $priceType,
];
To
$bind = [
'option_type_id' => (int)$object->getId(),
'store_id' => $object->getStoreId(),
'price' => $price,
'price_type' => $priceType,
];
Hope this will help you.
Note: Its not good idea to edit the core file, you can override the file or take backup before editing core file.
Thank you
Thanks for your answer, I have changed the file as you shown, but looks it not works, the options' title and value still be covered by default value.
– Chris
Mar 1 '18 at 7:52
add a comment |
I have the same issue with magento 2.2.6.
This modification dont change anything!
Impossible to import custom option for diferent store view..
Please i need help !
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f211771%2fmagento-2-2-1-cannot-import-custom-options-in-different-store-view-language-fr%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I have the same issue, that not able to save the custom option price store view wise in magento2.2.1 version.
I have checked the core files code and came to know that on product save they are saving the value for only default store view, its not taking the current switched store id.
Change the following file
/vendor/magento/module-catalog/Model/ResourceModel/Product/Option/Value.php
In protected function _saveValuePrices(MagentoFrameworkModelAbstractModel $object)
change from MagentoStoreModelStore::DEFAULT_STORE_ID," to "$object->getStoreId()
line 112
)->where(
'store_id = ?',
MagentoStoreModelStore::DEFAULT_STORE_ID
);
To
)->where(
'store_id = ?',
$object->getStoreId()
);
line 121
$where = [
'option_type_id = ?' => $optionTypeId,
'store_id = ?' => MagentoStoreModelStore::DEFAULT_STORE_ID,
];
To
$where = [
'option_type_id = ?' => $optionTypeId,
'store_id = ?' => $object->getStoreId(),
];
line 129
$bind = [
'option_type_id' => (int)$object->getId(),
'store_id' => MagentoStoreModelStore::DEFAULT_STORE_ID,
'price' => $price,
'price_type' => $priceType,
];
To
$bind = [
'option_type_id' => (int)$object->getId(),
'store_id' => $object->getStoreId(),
'price' => $price,
'price_type' => $priceType,
];
Hope this will help you.
Note: Its not good idea to edit the core file, you can override the file or take backup before editing core file.
Thank you
Thanks for your answer, I have changed the file as you shown, but looks it not works, the options' title and value still be covered by default value.
– Chris
Mar 1 '18 at 7:52
add a comment |
I have the same issue, that not able to save the custom option price store view wise in magento2.2.1 version.
I have checked the core files code and came to know that on product save they are saving the value for only default store view, its not taking the current switched store id.
Change the following file
/vendor/magento/module-catalog/Model/ResourceModel/Product/Option/Value.php
In protected function _saveValuePrices(MagentoFrameworkModelAbstractModel $object)
change from MagentoStoreModelStore::DEFAULT_STORE_ID," to "$object->getStoreId()
line 112
)->where(
'store_id = ?',
MagentoStoreModelStore::DEFAULT_STORE_ID
);
To
)->where(
'store_id = ?',
$object->getStoreId()
);
line 121
$where = [
'option_type_id = ?' => $optionTypeId,
'store_id = ?' => MagentoStoreModelStore::DEFAULT_STORE_ID,
];
To
$where = [
'option_type_id = ?' => $optionTypeId,
'store_id = ?' => $object->getStoreId(),
];
line 129
$bind = [
'option_type_id' => (int)$object->getId(),
'store_id' => MagentoStoreModelStore::DEFAULT_STORE_ID,
'price' => $price,
'price_type' => $priceType,
];
To
$bind = [
'option_type_id' => (int)$object->getId(),
'store_id' => $object->getStoreId(),
'price' => $price,
'price_type' => $priceType,
];
Hope this will help you.
Note: Its not good idea to edit the core file, you can override the file or take backup before editing core file.
Thank you
Thanks for your answer, I have changed the file as you shown, but looks it not works, the options' title and value still be covered by default value.
– Chris
Mar 1 '18 at 7:52
add a comment |
I have the same issue, that not able to save the custom option price store view wise in magento2.2.1 version.
I have checked the core files code and came to know that on product save they are saving the value for only default store view, its not taking the current switched store id.
Change the following file
/vendor/magento/module-catalog/Model/ResourceModel/Product/Option/Value.php
In protected function _saveValuePrices(MagentoFrameworkModelAbstractModel $object)
change from MagentoStoreModelStore::DEFAULT_STORE_ID," to "$object->getStoreId()
line 112
)->where(
'store_id = ?',
MagentoStoreModelStore::DEFAULT_STORE_ID
);
To
)->where(
'store_id = ?',
$object->getStoreId()
);
line 121
$where = [
'option_type_id = ?' => $optionTypeId,
'store_id = ?' => MagentoStoreModelStore::DEFAULT_STORE_ID,
];
To
$where = [
'option_type_id = ?' => $optionTypeId,
'store_id = ?' => $object->getStoreId(),
];
line 129
$bind = [
'option_type_id' => (int)$object->getId(),
'store_id' => MagentoStoreModelStore::DEFAULT_STORE_ID,
'price' => $price,
'price_type' => $priceType,
];
To
$bind = [
'option_type_id' => (int)$object->getId(),
'store_id' => $object->getStoreId(),
'price' => $price,
'price_type' => $priceType,
];
Hope this will help you.
Note: Its not good idea to edit the core file, you can override the file or take backup before editing core file.
Thank you
I have the same issue, that not able to save the custom option price store view wise in magento2.2.1 version.
I have checked the core files code and came to know that on product save they are saving the value for only default store view, its not taking the current switched store id.
Change the following file
/vendor/magento/module-catalog/Model/ResourceModel/Product/Option/Value.php
In protected function _saveValuePrices(MagentoFrameworkModelAbstractModel $object)
change from MagentoStoreModelStore::DEFAULT_STORE_ID," to "$object->getStoreId()
line 112
)->where(
'store_id = ?',
MagentoStoreModelStore::DEFAULT_STORE_ID
);
To
)->where(
'store_id = ?',
$object->getStoreId()
);
line 121
$where = [
'option_type_id = ?' => $optionTypeId,
'store_id = ?' => MagentoStoreModelStore::DEFAULT_STORE_ID,
];
To
$where = [
'option_type_id = ?' => $optionTypeId,
'store_id = ?' => $object->getStoreId(),
];
line 129
$bind = [
'option_type_id' => (int)$object->getId(),
'store_id' => MagentoStoreModelStore::DEFAULT_STORE_ID,
'price' => $price,
'price_type' => $priceType,
];
To
$bind = [
'option_type_id' => (int)$object->getId(),
'store_id' => $object->getStoreId(),
'price' => $price,
'price_type' => $priceType,
];
Hope this will help you.
Note: Its not good idea to edit the core file, you can override the file or take backup before editing core file.
Thank you
edited Feb 27 '18 at 7:22
Rama Chandran M
2,73581530
2,73581530
answered Feb 27 '18 at 7:12
urvishaurvisha
1
1
Thanks for your answer, I have changed the file as you shown, but looks it not works, the options' title and value still be covered by default value.
– Chris
Mar 1 '18 at 7:52
add a comment |
Thanks for your answer, I have changed the file as you shown, but looks it not works, the options' title and value still be covered by default value.
– Chris
Mar 1 '18 at 7:52
Thanks for your answer, I have changed the file as you shown, but looks it not works, the options' title and value still be covered by default value.
– Chris
Mar 1 '18 at 7:52
Thanks for your answer, I have changed the file as you shown, but looks it not works, the options' title and value still be covered by default value.
– Chris
Mar 1 '18 at 7:52
add a comment |
I have the same issue with magento 2.2.6.
This modification dont change anything!
Impossible to import custom option for diferent store view..
Please i need help !
add a comment |
I have the same issue with magento 2.2.6.
This modification dont change anything!
Impossible to import custom option for diferent store view..
Please i need help !
add a comment |
I have the same issue with magento 2.2.6.
This modification dont change anything!
Impossible to import custom option for diferent store view..
Please i need help !
I have the same issue with magento 2.2.6.
This modification dont change anything!
Impossible to import custom option for diferent store view..
Please i need help !
answered 11 mins ago
RomstachRomstach
63
63
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f211771%2fmagento-2-2-1-cannot-import-custom-options-in-different-store-view-language-fr%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown