Skip to main content
30 events
when toggle format what by license comment
Nov 11, 2019 at 6:35 vote accept MagentoDev
Nov 4, 2019 at 7:38 comment added Kishan Savaliya @Siva click here and find my answer there Let us continue this discussion in chat.
Nov 4, 2019 at 7:31 comment added Kishan Savaliya Let us continue this discussion in chat.
Nov 4, 2019 at 7:31 comment added MagentoDev I'm having little bit confusion. That is how can I confirm that whether My Account Dashboard belongs to B2C, B2B.
Nov 4, 2019 at 6:41 comment added Kishan Savaliya Little misunderstanding here, If you will add condition for wishlist link for "B2C Customer" group only then only "B2C" Customers can able to see that link not any other group of customer can see that link, this code will not effect all other links.
Nov 4, 2019 at 6:38 comment added MagentoDev I understood your answer and what you're trying to say is. Now I have put only "B2C Customer" so as per understanding only the "wishlist" link should be displayed and not other links. Am I right? But what I'm getting is "wishlist" link is hidden and all other links are displaying.
Nov 4, 2019 at 6:30 comment added Kishan Savaliya What I did in my answer's code. If customer's group is "B2C Customer", "B2C Employee" then they can see "Wishlist" link, not any other groups of customer can see "Wishlist" link. Hope you will not understand this.
Nov 4, 2019 at 6:24 comment added Kishan Savaliya @Siva please add this line return parent::_toHtml(); in your _toHtml() function's first line. So you will get idea.
Nov 4, 2019 at 6:21 comment added MagentoDev Could you please let me know whatelse I have to comment?
Nov 4, 2019 at 6:21 comment added MagentoDev Now, I have the code as this: if($this->_customerSession->isLoggedIn()) { //if(in_array($currentCustomerGroup, array("B2C Customer", "B2C Employee"))) { if(in_array($currentCustomerGroup, array("B2C Customer"))) { // I've added 'B2C Customer' here in Condition so 'My Wishlist link only visible for B2C Customer customer group's customers only. return parent::_toHtml(); } else { return; } }
Nov 4, 2019 at 6:14 comment added Kishan Savaliya @Siva, Please comment this code and clear cache and then check. if(in_array($currentCustomerGroup, array("B2C Customer", "B2C Employee"))) { return parent::_toHtml(); } else { return; }
Nov 4, 2019 at 6:13 comment added MagentoDev I have installed the module and didn't change anything. Now after installing the module, the menu "Mywishlist" is not displaying. Can you please guide me on that?
Nov 1, 2019 at 9:25 comment added Kishan Savaliya Did you checked this ? If this will helpful to you then let me know.
Oct 27, 2019 at 17:50 comment added MagentoDev Sure. I will do that.. since I'm in holidays i didn't check that yet. Once I checked the solution, will let you know. Thanks
Oct 26, 2019 at 6:53 comment added Kishan Savaliya Approve my answer and give me an upvote if above solution is helpful to you. Thanks in advance! :)
Oct 24, 2019 at 5:55 comment added MagentoDev Okay. I will check. Thanks
Oct 24, 2019 at 4:32 comment added Kishan Savaliya Yes, I've created that module and that will work for both Enterprise and Community. Please check this (github.com/KishanSavaliya/…)
Oct 24, 2019 at 4:20 comment added MagentoDev Sure.. I'm using Enterprise Edition. Does the module works on EE?
Oct 24, 2019 at 4:11 comment added Kishan Savaliya Okay I'll send you a link within few mins. You can download that module and you can check.
Oct 24, 2019 at 3:31 comment added MagentoDev Yes. I have created the block file, layout as you said
Oct 24, 2019 at 1:48 comment added Kishan Savaliya Can you please confirm you've created files properly?
Oct 23, 2019 at 19:13 comment added MagentoDev I just tried for the customer group "General" with your code but it showing all the links. Please guide me
Oct 23, 2019 at 18:34 comment added MagentoDev Okay, Thanks! working on this and let you know the status. You're so helpful. Thank you so much again
Oct 23, 2019 at 18:33 comment added Kishan Savaliya You just need to change B2C B2B etc means you customer groups in if condition
Oct 23, 2019 at 18:32 comment added Kishan Savaliya In that for each loop you do not need to change anything there.
Oct 23, 2019 at 18:30 comment added MagentoDev What I have to put in value at if($customerGroup['value'] == $customerGroupId){ $currentCustomerGroup = $customerGroup['label']; }
Oct 23, 2019 at 14:07 comment added Kishan Savaliya Okay no problem @Siva
Oct 23, 2019 at 13:57 comment added MagentoDev Thanks. It's very descriptive. Hopefully I will get the output. Update you once done
Oct 23, 2019 at 12:21 history edited Kishan Savaliya CC BY-SA 4.0
deleted 2 characters in body
Oct 22, 2019 at 15:35 history answered Kishan Savaliya CC BY-SA 4.0