smartstore / Smartstore

A modular, scalable and ultra-fast open-source all-in-one eCommerce platform built on ASP.NET Core 7
http://www.smartstore.com/
GNU Affero General Public License v3.0
1.21k stars 449 forks source link

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

Closed suatsuphi closed 3 months ago

suatsuphi commented 10 months ago

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

mgesing commented 10 months ago

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.

suatsuphi commented 10 months ago

thank you.

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

suatsuphi commented 10 months ago

@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 commented 10 months ago

thank you @mgesing

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

mgesing commented 10 months ago

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.

suatsuphi commented 10 months ago

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 commented 9 months ago

or could you add parametre in permission.

image

I can even close wishlist but not orders.

suatsuphi commented 8 months ago

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 commented 3 months ago

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

similar topic