When updating to either Live or Coming soon in Settings > WooCommerce > Site visibility
When clicking on Launch in Launch your store task
Note: This PR requires D159271-code
How to test the changes in this Pull Request:
If D159271-code isn't merged
Patch your wpcom sandbox with D159271-code
SSH to your atomic site
Run vim ~/htdocs/wp-config.php
Add the line near the top of the config define( 'JETPACK__SANDBOX_DOMAIN', 'SANDBOX_URL' ); - Replace SANDBOX_URL with your sandbox URL and save
Refresh wp-admin page and observe Jetpack API Sandboxed on admin bar
If your site has already launched
SSH into your sandbox
Run php ./public_html/bin/atomic/unlaunch-site.php SITE_URL - Replace SITE_URL with your atomic site URL
Test launch your store task
Use a WPCOM atomic e-commerce site
Enable LYS feature flag (via beta tester or you can remove these lines).
Go to Settings > WooCommerce > Site visibility
Ensure Coming soon is selected
Go to https://wordpress.com/settings/general/SITE_URL
Ensure your site is not launched yet. If not, do the steps in instructions above this one
Go to My Home
Click on Launch your store task
Click on Launch your store button
Go to https://wordpress.com/settings/general/SITE_URL
Observe your site is live
Test site visibility coming soon
Go to Settings > WooCommerce > Site visibility
Select Coming soon and click Save changes
Go to https://wordpress.com/settings/general/SITE_URL
Wait for latest settings to fetch in around 5 seconds
Observe Coming soon is selected
Test site visibility live
Go to Settings > WooCommerce > Site visibility
Select Live and click Save changes
Go to https://wordpress.com/settings/general/SITE_URL
Wait for latest settings to fetch in around 5 seconds
Observe Public is selected
Other information:
[ ] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes, as applicable?
FOR PR REVIEWER ONLY:
[ ] I have reviewed that everything is sanitized/escaped appropriately for any SQL or XSS injection possibilities. I made sure Linting is not ignored or disabled.
Changes proposed in this Pull Request:
Closes #1496
Sync coming soon status from LYS to WPCOM.
Live
orComing soon
inSettings > WooCommerce > Site visibility
Launch
inLaunch your store
taskNote: This PR requires D159271-code
How to test the changes in this Pull Request:
If D159271-code isn't merged
vim ~/htdocs/wp-config.php
define( 'JETPACK__SANDBOX_DOMAIN', 'SANDBOX_URL' );
- ReplaceSANDBOX_URL
with your sandbox URL and savewp-admin
page and observeJetpack API Sandboxed
on admin barIf your site has already launched
php ./public_html/bin/atomic/unlaunch-site.php SITE_URL
- ReplaceSITE_URL
with your atomic site URLTest launch your store task
Settings > WooCommerce > Site visibility
Coming soon
is selectedhttps://wordpress.com/settings/general/SITE_URL
My Home
Launch your store
taskLaunch your store
buttonhttps://wordpress.com/settings/general/SITE_URL
Test site visibility coming soon
Settings > WooCommerce > Site visibility
Coming soon
and clickSave changes
https://wordpress.com/settings/general/SITE_URL
Coming soon
is selectedTest site visibility live
Settings > WooCommerce > Site visibility
Live
and clickSave changes
https://wordpress.com/settings/general/SITE_URL
Public
is selectedOther information:
FOR PR REVIEWER ONLY: