Item (Mage_Catalog_Model_Product) with the same id “35” already exist
How to secure an aircraft at a transient parking space?
What are some noteworthy "mic-drop" moments in math?
Distinction between apt-cache and dpkg -l
Vocabulary for giving just numbers, not a full answer
Filtering SOQL results with optional conditionals
In the quantum hamiltonian, why does kinetic energy turn into an operator while potential doesn't?
What wound would be of little consequence to a biped but terrible for a quadruped?
Can Mathematica be used to create an Artistic 3D extrusion from a 2D image and wrap a line pattern around it?
Should I take out a loan for a friend to invest on my behalf?
How is the wildcard * interpreted as a command?
What Happens when Passenger Refuses to Fly Boeing 737 Max?
Intuition behind counterexample of Euler's sum of powers conjecture
Are there historical instances of the capital of a colonising country being temporarily or permanently shifted to one of its colonies?
Could you please stop shuffling the deck and play already?
Signed and unsigned numbers
Do I really need to have a scientific explanation for my premise?
Database Backup for data and log files
Do recommendation systems necessarily use machine learning algorithms?
Plausibility of Mushroom Buildings
Single word request: Harming the benefactor
Meaning of ちはース as an exclamation
Why does liquid water form when we exhale on a mirror?
How to draw cubes in a 3 dimensional plane
Is it "Vierergruppe" or "Viergruppe", or is there a distinction?
Item (Mage_Catalog_Model_Product) with the same id “35” already exist
In admin, I can create multiple categories to shown in homepage.
This all categories are called on homepage via widget.
This is working as expected if all categories have unique products.
Suppose One product id is same in two category, magento give me error as
'Item (Mage_Catalog_Model_Product) with the same id "35" already exist'
So I researched and found one suggestion to add unique serial id to beginning of table by adding
SELECT
e
.,
category_products_grid
.product_id
,
category_products
.,
eav_name
.value
AS category_name
,
eav_url
.value
AS category_url
FROM
catalog_product_entity
AS e
INNER JOIN category_products_grid
ON category_products_grid.product_id = e.entity_id
INNER JOIN category_products
ON category_products_grid.id = category_products.id
INNER JOIN catalog_category_entity_varchar
AS eav_name
ON eav_name.entity_id = category_products.category
and eav_name.attribute_id = 43
INNER JOIN catalog_category_entity_varchar
AS eav_url
ON eav_url.entity_id = category_products.category
and eav_url.attribute_id = 59
And the result is shown below
.
Can anyone help me with this query to append in magentoway?
If any one can suggest other way around, it will be helpful as well.
magento-1.9 database
add a comment |
In admin, I can create multiple categories to shown in homepage.
This all categories are called on homepage via widget.
This is working as expected if all categories have unique products.
Suppose One product id is same in two category, magento give me error as
'Item (Mage_Catalog_Model_Product) with the same id "35" already exist'
So I researched and found one suggestion to add unique serial id to beginning of table by adding
SELECT
e
.,
category_products_grid
.product_id
,
category_products
.,
eav_name
.value
AS category_name
,
eav_url
.value
AS category_url
FROM
catalog_product_entity
AS e
INNER JOIN category_products_grid
ON category_products_grid.product_id = e.entity_id
INNER JOIN category_products
ON category_products_grid.id = category_products.id
INNER JOIN catalog_category_entity_varchar
AS eav_name
ON eav_name.entity_id = category_products.category
and eav_name.attribute_id = 43
INNER JOIN catalog_category_entity_varchar
AS eav_url
ON eav_url.entity_id = category_products.category
and eav_url.attribute_id = 59
And the result is shown below
.
Can anyone help me with this query to append in magentoway?
If any one can suggest other way around, it will be helpful as well.
magento-1.9 database
add a comment |
In admin, I can create multiple categories to shown in homepage.
This all categories are called on homepage via widget.
This is working as expected if all categories have unique products.
Suppose One product id is same in two category, magento give me error as
'Item (Mage_Catalog_Model_Product) with the same id "35" already exist'
So I researched and found one suggestion to add unique serial id to beginning of table by adding
SELECT
e
.,
category_products_grid
.product_id
,
category_products
.,
eav_name
.value
AS category_name
,
eav_url
.value
AS category_url
FROM
catalog_product_entity
AS e
INNER JOIN category_products_grid
ON category_products_grid.product_id = e.entity_id
INNER JOIN category_products
ON category_products_grid.id = category_products.id
INNER JOIN catalog_category_entity_varchar
AS eav_name
ON eav_name.entity_id = category_products.category
and eav_name.attribute_id = 43
INNER JOIN catalog_category_entity_varchar
AS eav_url
ON eav_url.entity_id = category_products.category
and eav_url.attribute_id = 59
And the result is shown below
.
Can anyone help me with this query to append in magentoway?
If any one can suggest other way around, it will be helpful as well.
magento-1.9 database
In admin, I can create multiple categories to shown in homepage.
This all categories are called on homepage via widget.
This is working as expected if all categories have unique products.
Suppose One product id is same in two category, magento give me error as
'Item (Mage_Catalog_Model_Product) with the same id "35" already exist'
So I researched and found one suggestion to add unique serial id to beginning of table by adding
SELECT
e
.,
category_products_grid
.product_id
,
category_products
.,
eav_name
.value
AS category_name
,
eav_url
.value
AS category_url
FROM
catalog_product_entity
AS e
INNER JOIN category_products_grid
ON category_products_grid.product_id = e.entity_id
INNER JOIN category_products
ON category_products_grid.id = category_products.id
INNER JOIN catalog_category_entity_varchar
AS eav_name
ON eav_name.entity_id = category_products.category
and eav_name.attribute_id = 43
INNER JOIN catalog_category_entity_varchar
AS eav_url
ON eav_url.entity_id = category_products.category
and eav_url.attribute_id = 59
And the result is shown below
.
Can anyone help me with this query to append in magentoway?
If any one can suggest other way around, it will be helpful as well.
magento-1.9 database
magento-1.9 database
asked 1 min ago
VandanaVandana
12
12
add a comment |
add a comment |
0
active
oldest
votes
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%2f265393%2fitem-mage-catalog-model-product-with-the-same-id-35-already-exist%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f265393%2fitem-mage-catalog-model-product-with-the-same-id-35-already-exist%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