How copy all Categories attributes for store view A to default store viewCustom store view range attribute can't be modified in admin panelTrouble trying to select a large amount of Attributes for a ProductMagento Backend 404 for all but two “Website” configuration scopesReset all categories store view use default valueReindex error magento 1.9.X.XMagento 2 : URL key For Specified Store Already ExistsOverride Store View … “Enable Product” with “Use Default Value” for all Productsmagento 2 store view scope design configuration disabledMagento Flat Category Table contains incorrect data (even after reindexing)Set Use Default Value for all categories attributes Magento 2
Mimic lecturing on blackboard, facing audience
Can disgust be a key component of horror?
Why does the Sun have different day lengths, but not the gas giants?
Moving brute-force search to FPGA
Lowest total scrabble score
What is the English pronunciation of "pain au chocolat"?
What is the evidence for the "tyranny of the majority problem" in a direct democracy context?
Why should universal income be universal?
Can the US President recognize Israel’s sovereignty over the Golan Heights for the USA or does that need an act of Congress?
Pre-mixing cryogenic fuels and using only one fuel tank
Multiplicative persistence
Has any country ever had 2 former presidents in jail simultaneously?
When were female captains banned from Starfleet?
On a tidally locked planet, would time be quantized?
Did arcade monitors have same pixel aspect ratio as TV sets?
It grows, but water kills it
What is going on with 'gets(stdin)' on the site coderbyte?
Plot of a tornado-shaped surface
Why is it that I can sometimes guess the next note?
Electoral considerations aside, what are potential benefits, for the US, of policy changes proposed by the tweet recognizing Golan annexation?
Can a Canadian Travel to the USA twice, less than 180 days each time?
How to explain what's wrong with this application of the chain rule?
Does Doodling or Improvising on the Piano Have Any Benefits?
Is aluminum electrical wire used on aircraft?
How copy all Categories attributes for store view A to default store view
Custom store view range attribute can't be modified in admin panelTrouble trying to select a large amount of Attributes for a ProductMagento Backend 404 for all but two “Website” configuration scopesReset all categories store view use default valueReindex error magento 1.9.X.XMagento 2 : URL key For Specified Store Already ExistsOverride Store View … “Enable Product” with “Use Default Value” for all Productsmagento 2 store view scope design configuration disabledMagento Flat Category Table contains incorrect data (even after reindexing)Set Use Default Value for all categories attributes Magento 2
I would like to copy categories attributes (e.g title, search engine optimization text like url_key, contents, description etc) from a store view navigation to the default navigation.
In other words, I would like to use the categories in All Store View instead of my store view. However, I have been mistakenly editing the store view categories instead of the global ones and it's time-consuming to re-update that manually.
How to copy these:
To these:
Therefore what is a good approach to do this?
I'm not sure if doing this is correct, but I tried editing directly the table. Not sure if there are other considerations I need to put into mind when editing the table directly.
I thought to copy all records from store id 1 to store id 0 and then delete everything in store id 0 in order to reset it to use (Use Default Value)
INSERT INTO `catalog_category_entity_text` (
`attribute_id`,
`store_id`,
`entity_id`,
`value`
)
SELECT
`attribute_id`,
"0",
`entity_id`,
`value`
FROM
`catalog_category_entity_text_1` src
WHERE src.`store_id` = 1 AND src.value IS NOT NULL
ON DUPLICATE KEY
UPDATE
`catalog_category_entity_text`.`value` = src.`value` ;
magento2 database query
add a comment |
I would like to copy categories attributes (e.g title, search engine optimization text like url_key, contents, description etc) from a store view navigation to the default navigation.
In other words, I would like to use the categories in All Store View instead of my store view. However, I have been mistakenly editing the store view categories instead of the global ones and it's time-consuming to re-update that manually.
How to copy these:
To these:
Therefore what is a good approach to do this?
I'm not sure if doing this is correct, but I tried editing directly the table. Not sure if there are other considerations I need to put into mind when editing the table directly.
I thought to copy all records from store id 1 to store id 0 and then delete everything in store id 0 in order to reset it to use (Use Default Value)
INSERT INTO `catalog_category_entity_text` (
`attribute_id`,
`store_id`,
`entity_id`,
`value`
)
SELECT
`attribute_id`,
"0",
`entity_id`,
`value`
FROM
`catalog_category_entity_text_1` src
WHERE src.`store_id` = 1 AND src.value IS NOT NULL
ON DUPLICATE KEY
UPDATE
`catalog_category_entity_text`.`value` = src.`value` ;
magento2 database query
I may not have a solution right now, but I can say that your approach would not work for you. Thestore_id
in these tables is the scope of the settings value where1
would be your store-level, and0
is global. What you need to look at is thecatalog_category_entity
table, specifically thepath
column. You can copy the categories with different paths there, but you would still have to populate all of the tables in my next comment...
– mtr.web
Mar 9 '18 at 21:13
catalog_category_entity_int, catalog_category_entity_text, catalog_category_entity_decimal, catalog_category_entity_datetime, catalog_category_entity_varchar, and catalog_category_product will all need to be populated with the new categories and their new ids
– mtr.web
Mar 9 '18 at 21:15
@mtr.web thank you for your reply. The categories actually exist in both store, I wanted to copy their descriptions etc to global categories. I managed to do that by running a few queries. I added an answer. Again, thank you for your comment.
– Mohammed Joraid
Mar 10 '18 at 6:37
add a comment |
I would like to copy categories attributes (e.g title, search engine optimization text like url_key, contents, description etc) from a store view navigation to the default navigation.
In other words, I would like to use the categories in All Store View instead of my store view. However, I have been mistakenly editing the store view categories instead of the global ones and it's time-consuming to re-update that manually.
How to copy these:
To these:
Therefore what is a good approach to do this?
I'm not sure if doing this is correct, but I tried editing directly the table. Not sure if there are other considerations I need to put into mind when editing the table directly.
I thought to copy all records from store id 1 to store id 0 and then delete everything in store id 0 in order to reset it to use (Use Default Value)
INSERT INTO `catalog_category_entity_text` (
`attribute_id`,
`store_id`,
`entity_id`,
`value`
)
SELECT
`attribute_id`,
"0",
`entity_id`,
`value`
FROM
`catalog_category_entity_text_1` src
WHERE src.`store_id` = 1 AND src.value IS NOT NULL
ON DUPLICATE KEY
UPDATE
`catalog_category_entity_text`.`value` = src.`value` ;
magento2 database query
I would like to copy categories attributes (e.g title, search engine optimization text like url_key, contents, description etc) from a store view navigation to the default navigation.
In other words, I would like to use the categories in All Store View instead of my store view. However, I have been mistakenly editing the store view categories instead of the global ones and it's time-consuming to re-update that manually.
How to copy these:
To these:
Therefore what is a good approach to do this?
I'm not sure if doing this is correct, but I tried editing directly the table. Not sure if there are other considerations I need to put into mind when editing the table directly.
I thought to copy all records from store id 1 to store id 0 and then delete everything in store id 0 in order to reset it to use (Use Default Value)
INSERT INTO `catalog_category_entity_text` (
`attribute_id`,
`store_id`,
`entity_id`,
`value`
)
SELECT
`attribute_id`,
"0",
`entity_id`,
`value`
FROM
`catalog_category_entity_text_1` src
WHERE src.`store_id` = 1 AND src.value IS NOT NULL
ON DUPLICATE KEY
UPDATE
`catalog_category_entity_text`.`value` = src.`value` ;
magento2 database query
magento2 database query
edited yesterday
Mohammed Joraid
asked Mar 9 '18 at 17:41
Mohammed JoraidMohammed Joraid
234212
234212
I may not have a solution right now, but I can say that your approach would not work for you. Thestore_id
in these tables is the scope of the settings value where1
would be your store-level, and0
is global. What you need to look at is thecatalog_category_entity
table, specifically thepath
column. You can copy the categories with different paths there, but you would still have to populate all of the tables in my next comment...
– mtr.web
Mar 9 '18 at 21:13
catalog_category_entity_int, catalog_category_entity_text, catalog_category_entity_decimal, catalog_category_entity_datetime, catalog_category_entity_varchar, and catalog_category_product will all need to be populated with the new categories and their new ids
– mtr.web
Mar 9 '18 at 21:15
@mtr.web thank you for your reply. The categories actually exist in both store, I wanted to copy their descriptions etc to global categories. I managed to do that by running a few queries. I added an answer. Again, thank you for your comment.
– Mohammed Joraid
Mar 10 '18 at 6:37
add a comment |
I may not have a solution right now, but I can say that your approach would not work for you. Thestore_id
in these tables is the scope of the settings value where1
would be your store-level, and0
is global. What you need to look at is thecatalog_category_entity
table, specifically thepath
column. You can copy the categories with different paths there, but you would still have to populate all of the tables in my next comment...
– mtr.web
Mar 9 '18 at 21:13
catalog_category_entity_int, catalog_category_entity_text, catalog_category_entity_decimal, catalog_category_entity_datetime, catalog_category_entity_varchar, and catalog_category_product will all need to be populated with the new categories and their new ids
– mtr.web
Mar 9 '18 at 21:15
@mtr.web thank you for your reply. The categories actually exist in both store, I wanted to copy their descriptions etc to global categories. I managed to do that by running a few queries. I added an answer. Again, thank you for your comment.
– Mohammed Joraid
Mar 10 '18 at 6:37
I may not have a solution right now, but I can say that your approach would not work for you. The
store_id
in these tables is the scope of the settings value where 1
would be your store-level, and 0
is global. What you need to look at is the catalog_category_entity
table, specifically the path
column. You can copy the categories with different paths there, but you would still have to populate all of the tables in my next comment...– mtr.web
Mar 9 '18 at 21:13
I may not have a solution right now, but I can say that your approach would not work for you. The
store_id
in these tables is the scope of the settings value where 1
would be your store-level, and 0
is global. What you need to look at is the catalog_category_entity
table, specifically the path
column. You can copy the categories with different paths there, but you would still have to populate all of the tables in my next comment...– mtr.web
Mar 9 '18 at 21:13
catalog_category_entity_int, catalog_category_entity_text, catalog_category_entity_decimal, catalog_category_entity_datetime, catalog_category_entity_varchar, and catalog_category_product will all need to be populated with the new categories and their new ids
– mtr.web
Mar 9 '18 at 21:15
catalog_category_entity_int, catalog_category_entity_text, catalog_category_entity_decimal, catalog_category_entity_datetime, catalog_category_entity_varchar, and catalog_category_product will all need to be populated with the new categories and their new ids
– mtr.web
Mar 9 '18 at 21:15
@mtr.web thank you for your reply. The categories actually exist in both store, I wanted to copy their descriptions etc to global categories. I managed to do that by running a few queries. I added an answer. Again, thank you for your comment.
– Mohammed Joraid
Mar 10 '18 at 6:37
@mtr.web thank you for your reply. The categories actually exist in both store, I wanted to copy their descriptions etc to global categories. I managed to do that by running a few queries. I added an answer. Again, thank you for your comment.
– Mohammed Joraid
Mar 10 '18 at 6:37
add a comment |
1 Answer
1
active
oldest
votes
Writing answer for my future reference.
So I did a three-step insert & update to copy the details of categories in Store view #1 to categories to the global categories store ID #0.
The operation I did was on these tables (I skipped decimal and DateTime as I never selected any of these options)
1) First I baked up these tables _1:
catalog_category_entity_text
catalog_category_entity_varchar
catalog_category_entity_int
2) I ran the following query for all 3 tables. This will insert all edited fields from Store ID#1 in case they were never populated in Store ID#0.
INSERT INTO `catalog_category_entity_<datatype>` (
`attribute_id`,
`store_id`,
`entity_id`,
`value`
)
SELECT
`attribute_id`,
"0",
`entity_id`,
`value`
FROM
`catalog_category_entity_<datatype>_1` src
WHERE src.`store_id` = 1 AND src.value IS NOT NULL
ON DUPLICATE KEY
UPDATE
`catalog_category_entity_<datatype>`.`value` = src.`value` ;
3) Then update attributes of categories in Store View #0 based on their counterparts from Store View #1, same situation, run for all tables (I also executed this query for all 3 tables).
UPDATE
`catalog_category_entity_text` des
INNER JOIN `catalog_category_entity_text` src
ON src.`attribute_id` = des.`attribute_id`
AND des.`entity_id` = src.`entity_id`
AND src.value IS NOT NULL AND src.value !=""
SET des.`value` = src.value
WHERE src.store_id = 1 AND des.`store_id`=0;
4) And finally, remove everything that belongs to store view #1. This will force categories in store #1 to have (Default Value) selected.
DELETE FROM `catalog_category_entity_text` WHERE store_id = 1;
DELETE FROM `catalog_category_entity_datetime` WHERE store_id = 1;
DELETE FROM `catalog_category_entity_decimal` WHERE store_id = 1;
DELETE FROM `catalog_category_entity_int` WHERE store_id = 1;
DELETE FROM `catalog_category_entity_varchar` WHERE store_id = 1;
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%2f216786%2fhow-copy-all-categories-attributes-for-store-view-a-to-default-store-view%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Writing answer for my future reference.
So I did a three-step insert & update to copy the details of categories in Store view #1 to categories to the global categories store ID #0.
The operation I did was on these tables (I skipped decimal and DateTime as I never selected any of these options)
1) First I baked up these tables _1:
catalog_category_entity_text
catalog_category_entity_varchar
catalog_category_entity_int
2) I ran the following query for all 3 tables. This will insert all edited fields from Store ID#1 in case they were never populated in Store ID#0.
INSERT INTO `catalog_category_entity_<datatype>` (
`attribute_id`,
`store_id`,
`entity_id`,
`value`
)
SELECT
`attribute_id`,
"0",
`entity_id`,
`value`
FROM
`catalog_category_entity_<datatype>_1` src
WHERE src.`store_id` = 1 AND src.value IS NOT NULL
ON DUPLICATE KEY
UPDATE
`catalog_category_entity_<datatype>`.`value` = src.`value` ;
3) Then update attributes of categories in Store View #0 based on their counterparts from Store View #1, same situation, run for all tables (I also executed this query for all 3 tables).
UPDATE
`catalog_category_entity_text` des
INNER JOIN `catalog_category_entity_text` src
ON src.`attribute_id` = des.`attribute_id`
AND des.`entity_id` = src.`entity_id`
AND src.value IS NOT NULL AND src.value !=""
SET des.`value` = src.value
WHERE src.store_id = 1 AND des.`store_id`=0;
4) And finally, remove everything that belongs to store view #1. This will force categories in store #1 to have (Default Value) selected.
DELETE FROM `catalog_category_entity_text` WHERE store_id = 1;
DELETE FROM `catalog_category_entity_datetime` WHERE store_id = 1;
DELETE FROM `catalog_category_entity_decimal` WHERE store_id = 1;
DELETE FROM `catalog_category_entity_int` WHERE store_id = 1;
DELETE FROM `catalog_category_entity_varchar` WHERE store_id = 1;
add a comment |
Writing answer for my future reference.
So I did a three-step insert & update to copy the details of categories in Store view #1 to categories to the global categories store ID #0.
The operation I did was on these tables (I skipped decimal and DateTime as I never selected any of these options)
1) First I baked up these tables _1:
catalog_category_entity_text
catalog_category_entity_varchar
catalog_category_entity_int
2) I ran the following query for all 3 tables. This will insert all edited fields from Store ID#1 in case they were never populated in Store ID#0.
INSERT INTO `catalog_category_entity_<datatype>` (
`attribute_id`,
`store_id`,
`entity_id`,
`value`
)
SELECT
`attribute_id`,
"0",
`entity_id`,
`value`
FROM
`catalog_category_entity_<datatype>_1` src
WHERE src.`store_id` = 1 AND src.value IS NOT NULL
ON DUPLICATE KEY
UPDATE
`catalog_category_entity_<datatype>`.`value` = src.`value` ;
3) Then update attributes of categories in Store View #0 based on their counterparts from Store View #1, same situation, run for all tables (I also executed this query for all 3 tables).
UPDATE
`catalog_category_entity_text` des
INNER JOIN `catalog_category_entity_text` src
ON src.`attribute_id` = des.`attribute_id`
AND des.`entity_id` = src.`entity_id`
AND src.value IS NOT NULL AND src.value !=""
SET des.`value` = src.value
WHERE src.store_id = 1 AND des.`store_id`=0;
4) And finally, remove everything that belongs to store view #1. This will force categories in store #1 to have (Default Value) selected.
DELETE FROM `catalog_category_entity_text` WHERE store_id = 1;
DELETE FROM `catalog_category_entity_datetime` WHERE store_id = 1;
DELETE FROM `catalog_category_entity_decimal` WHERE store_id = 1;
DELETE FROM `catalog_category_entity_int` WHERE store_id = 1;
DELETE FROM `catalog_category_entity_varchar` WHERE store_id = 1;
add a comment |
Writing answer for my future reference.
So I did a three-step insert & update to copy the details of categories in Store view #1 to categories to the global categories store ID #0.
The operation I did was on these tables (I skipped decimal and DateTime as I never selected any of these options)
1) First I baked up these tables _1:
catalog_category_entity_text
catalog_category_entity_varchar
catalog_category_entity_int
2) I ran the following query for all 3 tables. This will insert all edited fields from Store ID#1 in case they were never populated in Store ID#0.
INSERT INTO `catalog_category_entity_<datatype>` (
`attribute_id`,
`store_id`,
`entity_id`,
`value`
)
SELECT
`attribute_id`,
"0",
`entity_id`,
`value`
FROM
`catalog_category_entity_<datatype>_1` src
WHERE src.`store_id` = 1 AND src.value IS NOT NULL
ON DUPLICATE KEY
UPDATE
`catalog_category_entity_<datatype>`.`value` = src.`value` ;
3) Then update attributes of categories in Store View #0 based on their counterparts from Store View #1, same situation, run for all tables (I also executed this query for all 3 tables).
UPDATE
`catalog_category_entity_text` des
INNER JOIN `catalog_category_entity_text` src
ON src.`attribute_id` = des.`attribute_id`
AND des.`entity_id` = src.`entity_id`
AND src.value IS NOT NULL AND src.value !=""
SET des.`value` = src.value
WHERE src.store_id = 1 AND des.`store_id`=0;
4) And finally, remove everything that belongs to store view #1. This will force categories in store #1 to have (Default Value) selected.
DELETE FROM `catalog_category_entity_text` WHERE store_id = 1;
DELETE FROM `catalog_category_entity_datetime` WHERE store_id = 1;
DELETE FROM `catalog_category_entity_decimal` WHERE store_id = 1;
DELETE FROM `catalog_category_entity_int` WHERE store_id = 1;
DELETE FROM `catalog_category_entity_varchar` WHERE store_id = 1;
Writing answer for my future reference.
So I did a three-step insert & update to copy the details of categories in Store view #1 to categories to the global categories store ID #0.
The operation I did was on these tables (I skipped decimal and DateTime as I never selected any of these options)
1) First I baked up these tables _1:
catalog_category_entity_text
catalog_category_entity_varchar
catalog_category_entity_int
2) I ran the following query for all 3 tables. This will insert all edited fields from Store ID#1 in case they were never populated in Store ID#0.
INSERT INTO `catalog_category_entity_<datatype>` (
`attribute_id`,
`store_id`,
`entity_id`,
`value`
)
SELECT
`attribute_id`,
"0",
`entity_id`,
`value`
FROM
`catalog_category_entity_<datatype>_1` src
WHERE src.`store_id` = 1 AND src.value IS NOT NULL
ON DUPLICATE KEY
UPDATE
`catalog_category_entity_<datatype>`.`value` = src.`value` ;
3) Then update attributes of categories in Store View #0 based on their counterparts from Store View #1, same situation, run for all tables (I also executed this query for all 3 tables).
UPDATE
`catalog_category_entity_text` des
INNER JOIN `catalog_category_entity_text` src
ON src.`attribute_id` = des.`attribute_id`
AND des.`entity_id` = src.`entity_id`
AND src.value IS NOT NULL AND src.value !=""
SET des.`value` = src.value
WHERE src.store_id = 1 AND des.`store_id`=0;
4) And finally, remove everything that belongs to store view #1. This will force categories in store #1 to have (Default Value) selected.
DELETE FROM `catalog_category_entity_text` WHERE store_id = 1;
DELETE FROM `catalog_category_entity_datetime` WHERE store_id = 1;
DELETE FROM `catalog_category_entity_decimal` WHERE store_id = 1;
DELETE FROM `catalog_category_entity_int` WHERE store_id = 1;
DELETE FROM `catalog_category_entity_varchar` WHERE store_id = 1;
edited Mar 10 '18 at 6:43
answered Mar 10 '18 at 6:36
Mohammed JoraidMohammed Joraid
234212
234212
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%2f216786%2fhow-copy-all-categories-attributes-for-store-view-a-to-default-store-view%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
I may not have a solution right now, but I can say that your approach would not work for you. The
store_id
in these tables is the scope of the settings value where1
would be your store-level, and0
is global. What you need to look at is thecatalog_category_entity
table, specifically thepath
column. You can copy the categories with different paths there, but you would still have to populate all of the tables in my next comment...– mtr.web
Mar 9 '18 at 21:13
catalog_category_entity_int, catalog_category_entity_text, catalog_category_entity_decimal, catalog_category_entity_datetime, catalog_category_entity_varchar, and catalog_category_product will all need to be populated with the new categories and their new ids
– mtr.web
Mar 9 '18 at 21:15
@mtr.web thank you for your reply. The categories actually exist in both store, I wanted to copy their descriptions etc to global categories. I managed to do that by running a few queries. I added an answer. Again, thank you for your comment.
– Mohammed Joraid
Mar 10 '18 at 6:37