-
Notifications
You must be signed in to change notification settings - Fork 10.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update add product task to only show "subscriptions" product type for stores in the US #33068
Update add product task to only show "subscriptions" product type for stores in the US #33068
Conversation
8f3146b
to
10b91de
Compare
10b91de
to
d8d6967
Compare
d8d6967
to
3f6d917
Compare
📊 Test reports for this pull request have been published and are accessible through the following links:
Latest commit referenced in the reports: Visit the WooCommerce Test Reports homepage to view all published reports. See the FAQs page if you're having problems accessing them. |
📊 Test reports for 3f6d917
Visit the WooCommerce Test Reports homepage to view all published reports. See the FAQs page if you're having problems accessing them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested well, looking great @chihsuan! Feedback on TOS link:
components: { | ||
tosLink: ( | ||
<Link | ||
href="https://woocommerce.com/posts/terms-of-service-update/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the usual TOS link we use is https://wordpress.com/tos/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! I'll fix it in another PR.
Payment changes are not related to this PR. They're showing here because something is wrong after rebased. They have already been merged into the trunk.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A fix PR is ready: #33082
const country = | ||
typeof settings.woocommerce_default_country === 'string' | ||
? settings.woocommerce_default_country | ||
: 'US'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should default to non-US experience since the opposite can be slightly risky. The reason being is subscription
type products are only supported for US countries afaik, so if a non-US store owner sets it up, it may end up not working and confuses the owner.
The other way around isn't too critical, subscription template will go missing which is only sub-optimal, but not breaking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point!!! Changed in c551477
( productType ) => ! exclude.includes( productType.key ) | ||
); | ||
export const getProductTypes = ( { | ||
exclude, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice update! Much more expressive imo.
3f6d917
to
c551477
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested well, LGTM! 🚢
Hi @chihsuan, thanks for merging this pull request. Please take a look at these follow-up tasks you may need to perform:
|
All Submissions:
Changes proposed in this Pull Request:
Closes #33062.
How to test the changes in this Pull Request:
woocommerce_allow_tracking
option set toyes
Tools > WCA Test Helper > Experiments
woocommerce_products_task_layout_stacked
Country
to the USProduct Types
step.WooCommerce > Home
woocommmerce > Settings
Country / State
to another country.Other information:
pnpm nx changelog <project>
?FOR PR REVIEWER ONLY: