WordPress / blueprints

Blueprints gallery and examples
69 stars 25 forks source link

Add WooCommerce demo blueprint with custom flat rate shipping and pro… #62

Open calvinrodrigues500 opened 3 months ago

calvinrodrigues500 commented 3 months ago

WooCommerce Custom Flat Rate Shipping Demo Blueprint

github-actions[bot] commented 3 months ago

Test using WordPress Playground

The changes in this pull request can previewed and tested using a WordPress Playground instance.

WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

Some things to be aware of

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

bgrgicak commented 3 months ago

@calvinrodrigues500 thank you for working on this PR!

I like that it shows how to set up a WooCommerce shop with a custom product and shipping.

Would it be also possible to set up some form of payment method like Direct Bank Transfers? This would allow users to fully experience the checkout flow.

calvinrodrigues500 commented 3 months ago

@bgrgicak Thank you for your feedback!

I'll work on adding a payment method to provide a complete checkout experience. I'll update the PR as soon as it's ready.

bgrgicak commented 3 months ago

Thanks for the changes @calvinrodrigues500!

I wasn't initially sure if this should be a separate demo or could be added to existing demos, but the more I think about it, this is a really good minimal WooCommerce setup for testing.

calvinrodrigues500 commented 3 months ago

@bgrgicak Thanks for the feedback! I'm glad the setup works well for testing. If there's anything else you'd like me to adjust or improve, feel free to let me know.

calvinrodrigues500 commented 3 months ago

@bgrgicak I have updated the code to use default WC products XML.

calvinrodrigues500 commented 3 months ago

@bgrgicak @adamziel Please take a moment to review the latest changes.

adamziel commented 2 months ago

Thank you @calvinrodrigues500! I left a few notes about the resource origin. Also, running the Blueprint via the preview link yields this error:

CleanShot 2024-09-06 at 21 17 00@2x

You may want to use the raw.githubusercontent.com domain instead.