How to count wish-list item by productid? The Next CEO of Stack OverflowHow to make Wish List items not disappear after customer ordersHow to get product count by rating collection in magento1.9how to get wishlist id according to the product id?How to disable Share Wish List in MagentoMagento 2.0 Add to wish list without redirect to wish list?wish list count using ajaxMagento 2 add to wish list event?How to prevent adding same item into wish list twice in magento 2.1.9create mini wish list icon like mini cartMagento 2.2.5: Search Wish List
Purpose of level-shifter with same in and out voltages
Where do students learn to solve polynomial equations these days?
What day is it again?
How to Implement Deterministic Encryption Safely in .NET
Audio Conversion With ADS1243
Aggressive Under-Indexing and no data for missing index
Vector calculus integration identity problem
What CSS properties can the br tag have?
Lucky Feat: How can "more than one creature spend a luck point to influence the outcome of a roll"?
Small nick on power cord from an electric alarm clock, and copper wiring exposed but intact
Is fine stranded wire ok for main supply line?
Is French Guiana a (hard) EU border?
What connection does MS Office have to Netscape Navigator?
IC has pull-down resistors on SMBus lines?
It is correct to match light sources with the same color temperature?
What is the process for purifying your home if you believe it may have been previously used for pagan worship?
Why did early computer designers eschew integers?
Help understanding this unsettling image of Titan, Epimetheus, and Saturn's rings?
Players Circumventing the limitations of Wish
Is there a reasonable and studied concept of reduction between regular languages?
Towers in the ocean; How deep can they be built?
Is it professional to write unrelated content in an almost-empty email?
Is a distribution that is normal, but highly skewed, considered Gaussian?
What happened in Rome, when the western empire "fell"?
How to count wish-list item by productid?
The Next CEO of Stack OverflowHow to make Wish List items not disappear after customer ordersHow to get product count by rating collection in magento1.9how to get wishlist id according to the product id?How to disable Share Wish List in MagentoMagento 2.0 Add to wish list without redirect to wish list?wish list count using ajaxMagento 2 add to wish list event?How to prevent adding same item into wish list twice in magento 2.1.9create mini wish list icon like mini cartMagento 2.2.5: Search Wish List
I want to count the wish list item to know about the popularity of that particular product
magento-1.9 wishlist
add a comment |
I want to count the wish list item to know about the popularity of that particular product
magento-1.9 wishlist
1
Please add more details. What is the desired result? What did you try?
– Fabian Schmengler
Dec 29 '15 at 13:24
add a comment |
I want to count the wish list item to know about the popularity of that particular product
magento-1.9 wishlist
I want to count the wish list item to know about the popularity of that particular product
magento-1.9 wishlist
magento-1.9 wishlist
edited 2 days ago
ABHISHEK TRIPATHI
2,0081727
2,0081727
asked Dec 29 '15 at 12:53
Sumit AggarwalSumit Aggarwal
22117
22117
1
Please add more details. What is the desired result? What did you try?
– Fabian Schmengler
Dec 29 '15 at 13:24
add a comment |
1
Please add more details. What is the desired result? What did you try?
– Fabian Schmengler
Dec 29 '15 at 13:24
1
1
Please add more details. What is the desired result? What did you try?
– Fabian Schmengler
Dec 29 '15 at 13:24
Please add more details. What is the desired result? What did you try?
– Fabian Schmengler
Dec 29 '15 at 13:24
add a comment |
1 Answer
1
active
oldest
votes
You can achieve this by calling Collection model of wishlist/item
.
At wishlist_item
table ,there it has a field named product_id
,by which you can filter the collection.
$collection=Mage::getResourceModel('wishlist/item_collection');
$collection->addFieldToFilter('product_id',$productId);
its giving blank page
– Sumit Aggarwal
Dec 29 '15 at 13:27
add a comment |
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%2f95360%2fhow-to-count-wish-list-item-by-productid%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
You can achieve this by calling Collection model of wishlist/item
.
At wishlist_item
table ,there it has a field named product_id
,by which you can filter the collection.
$collection=Mage::getResourceModel('wishlist/item_collection');
$collection->addFieldToFilter('product_id',$productId);
its giving blank page
– Sumit Aggarwal
Dec 29 '15 at 13:27
add a comment |
You can achieve this by calling Collection model of wishlist/item
.
At wishlist_item
table ,there it has a field named product_id
,by which you can filter the collection.
$collection=Mage::getResourceModel('wishlist/item_collection');
$collection->addFieldToFilter('product_id',$productId);
its giving blank page
– Sumit Aggarwal
Dec 29 '15 at 13:27
add a comment |
You can achieve this by calling Collection model of wishlist/item
.
At wishlist_item
table ,there it has a field named product_id
,by which you can filter the collection.
$collection=Mage::getResourceModel('wishlist/item_collection');
$collection->addFieldToFilter('product_id',$productId);
You can achieve this by calling Collection model of wishlist/item
.
At wishlist_item
table ,there it has a field named product_id
,by which you can filter the collection.
$collection=Mage::getResourceModel('wishlist/item_collection');
$collection->addFieldToFilter('product_id',$productId);
edited 2 days ago
ABHISHEK TRIPATHI
2,0081727
2,0081727
answered Dec 29 '15 at 13:22
Amit Bera♦Amit Bera
59.5k1676177
59.5k1676177
its giving blank page
– Sumit Aggarwal
Dec 29 '15 at 13:27
add a comment |
its giving blank page
– Sumit Aggarwal
Dec 29 '15 at 13:27
its giving blank page
– Sumit Aggarwal
Dec 29 '15 at 13:27
its giving blank page
– Sumit Aggarwal
Dec 29 '15 at 13:27
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%2f95360%2fhow-to-count-wish-list-item-by-productid%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
1
Please add more details. What is the desired result? What did you try?
– Fabian Schmengler
Dec 29 '15 at 13:24