Skip to content

[ADD] website_sale_disable_shop module#22

Open
ByteMeAsap wants to merge 6 commits into16.0from
16.0-add-website_sale_disable_shop
Open

[ADD] website_sale_disable_shop module#22
ByteMeAsap wants to merge 6 commits into16.0from
16.0-add-website_sale_disable_shop

Conversation

@ByteMeAsap
Copy link
Contributor

No description provided.

@ByteMeAsap ByteMeAsap force-pushed the 16.0-add-website_sale_disable_shop branch from 8013104 to aff3d0d Compare July 11, 2024 10:33
@tarteo tarteo force-pushed the 16.0-add-website_sale_disable_shop branch from aff3d0d to 51f26ec Compare April 17, 2025 12:06
Copy link
Member

@tarteo tarteo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couldn't test it thoroughly because there's an issue (which I'm looking into), but these are the things I found for now:

image

if path == "/shop" or Path("/shop") in Path(path).parents:
if path == "/shop/cart" and request.params.get("type") == "popover":
return None
return request.redirect("/")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO it's better to return a 404 here.

Copy link
Contributor Author

@ByteMeAsap ByteMeAsap Apr 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, sounds good !!

Have removed the check for popover shop/cart as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added an additional thing for /shop/cart/quantity as it was giving a client issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants