woocommerce / woocommerce-square

Square POS and Payments Integration
https://woo.com/products/square
Other
11 stars 7 forks source link

Update Business Location Button Text Based on Location Count #201

Closed faisal-alvi closed 3 months ago

faisal-alvi commented 3 months ago

All Submissions:


Changes proposed in this Pull Request:

As per the internal discussion, this PR updates the Business Location button text based on the number of locations in the dropdown. If only one location appears, the button will say "Confirm". If multiple locations appear, the button will say "Next". If no locations appear, the button will say "Create a Business Location".

Steps to test the changes in this Pull Request:

Confirm the appropriate button text appears on the business location step.

Changelog entry

Update - Business Location button text changes as per the location count.

jeffpaul commented 3 months ago

@qasumitbagthariya this is probably fine to jump to Regression Test at this point so we can get this quickly through review/testing and into a release.

qasumitbagthariya commented 3 months ago

@faisal-alvi Thanks for the PR

QA Update ✅


I have verified this PR in the tweak/biz-loc-button branch and is functioning as intended.

I tested the following on this branch:

If only one location - Confirm button

image

If multiple locations - Next button

image

Note:

If no business locations appear, the button text "Create a Business Location". It seems not possible to have a Square account without at least one business location. When we set up a new Square account, a primary default location is automatically created. While we can deactivate or delete additional locations, the primary location must remain active. Once a location has been created, it can’t be deleted and will remain visible even if it’s been deactivated.

image