By default the Quick order functionality of the B2B module is available for both logged in users as well as for guest users.
What can I do to hide it from guest users and make it available/visible for logged in users only? Basically It would even be sufficient to hide the Quick Order link in the top link section.
Thanks in advance!
Add a comment
|
2 Answers
Please add as below in xml file
<customer_logged_in>
<reference name="top.links">
<action method="addLink" translate="label title" module="customer"><label>Quick Order</label><url helper="Your/quickOrderUrl"/><title>Log Out</title><prepare/><urlParams/><position>100</position></action>
</reference>
</customer_logged_in>
-
Thanks but in M2 the customer_logged_in handle does not exist anymore. Commented Sep 23, 2020 at 7:28
I solved the issue by checking if the customer is logged in a Custom Block that overrides
Magento_QuickOrder/Block/Link
using the di.xml.