Smartstore icon indicating copy to clipboard operation
Smartstore copied to clipboard

Close some customer menus Orders, Downloadable products, Back in stock subscriptions and My Orders with parameter

Open suatsuphi opened this issue 1 year ago • 8 comments

Hi, I wanna close some customer menu. these are Orders, Downloadable products, Back in stock subscriptions and My Orders

Could a parameter be added to close these menus or can it be linked to an existing parameter?

image

image

suatsuphi avatar Dec 27 '23 09:12 suatsuphi

See CustomerSettings.HideDownloadableProductsTab and CustomerSettings.HideBackInStockSubscriptionsTab. The order list cannot be hidden by setting. To do this, you must write an event handler for the MenuBuiltEvent event and remove it using TreeNodeBase.Remove.

mgesing avatar Dec 27 '23 14:12 mgesing

thank you.

Could a similar parameter be added for Orders and My Orders?

suatsuphi avatar Dec 27 '23 17:12 suatsuphi

@mgesing

When I close the shopping cart, the price on the product detail page also closes.... can we make the price section close only when the price is hidden?

image

suatsuphi avatar Dec 28 '23 16:12 suatsuphi

thank you @mgesing

Could a similar parameter be added for Orders and My Orders?

suatsuphi avatar Dec 29 '23 11:12 suatsuphi

Did you mean customer settings? I wouldn't do that for an online store. We also have to think about reducing and the sense of so many settings. You can use the MenuBuiltEvent to hide it.

mgesing avatar Dec 29 '23 12:12 mgesing

Did you mean customer settings?

yes. I think this setting, which is there for others, should be there for this one too. like CustomerSettings.HideOrdersTabs

image

suatsuphi avatar Dec 29 '23 12:12 suatsuphi

or could you add parametre in permission.

image

I can even close wishlist but not orders.

suatsuphi avatar Jan 30 '24 12:01 suatsuphi

https://github.com/smartstore/Smartstore/pull/1034

access orders > If a parameter like here is not desired, can it be ensured that these three menus do not appear if the user does not have an order, downloadable and in stock subscription? I can destroy two of them with parameter but not possible for orders...
orders.count > 0

suatsuphi avatar Mar 01 '24 08:03 suatsuphi

https://github.com/smartstore/Smartstore/issues/1150

similar topic

suatsuphi avatar Jul 27 '24 10:07 suatsuphi