Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Add Inner blocks to order summary #6065

Merged
merged 29 commits into from
Apr 1, 2022
Merged

Conversation

mikejolley
Copy link
Member

@mikejolley mikejolley commented Mar 21, 2022

The WIP prefix is a leftover, the work on this branch was completed.

This PR converts the Cart Block and Checkout Block "order summary" areas into an inner block structure.

Cart Block:

  • Heading woocommerce/cart-order-summary-heading
  • Subtotal woocommerce/cart-order-summary-subtotal
  • Fee woocommerce/cart-order-summary-fee
  • Shipping woocommerce/cart-order-summary-shipping
  • Discount woocommerce/cart-order-summary-discount
  • Coupon Form woocommerce/cart-order-summary-coupon-form
  • Taxes woocommerce/cart-order-summary-taxes

Checkout Block

  • Cart Items woocommerce/checkout-order-summary-cart-items
  • Subtotal woocommerce/checkout-order-summary-subtotal
  • Fee woocommerce/checkout-order-summary-fee
  • Shipping woocommerce/checkout-order-summary-shipping
  • Discount woocommerce/checkout-order-summary-discount
  • Coupon Form woocommerce/checkout-order-summary-coupon-form
  • Taxes woocommerce/cart-order-summary-taxes

NOTE: Yes there are many similarities between the cart and checkout inner blocks, however, they cannot be shared due to the way we use context providers. If they were shared, both Cart and Checkout Blocks would import the above inner blocks, and those inner blocks would then receive the wrong values from context depending on what was imported first. To work around this we have a unique set of inner blocks per each parent block.

The new inner blocks implement existing slotfills, making this change backwards compatible. Subscriptions extension can be installed to verify this since it extends the order totals area including its own shipping and total row.

Fixes #6059

Screenshots

Cart block before

The Order summary block

Screenshot 2022-03-29 at 15 47 30

Cart block after

The Order summary block
Screenshot 2022-03-29 at 15 48 20

Selection of an Order summary Inner block
Screenshot 2022-03-29 at 15 48 32

Testing

Automated Tests

Existing block tests cover these inner blocks since the functionality has just moved down a level.

  • Changes in this PR are covered by Automated Tests.
    • Unit tests
    • E2E tests

Manual Testing

How to test the changes in this Pull Request:

  1. Go to a page and add the Checkout block.
  2. Go to a page and add the Cart block
  3. In the editor, inside each block, select the Order summary and notice that you can select the following inner blocks:
Cart Checkout
Heading, Subtotal, Cart Items, Fees, Coupon Form, Shipping, Taxes Subtotal, Cart Items, Fees, Coupon Form, Shipping, Taxes
  1. Try to move some of the inner blocks and save. Confirm that in the Cart block only Order Summary Heading and the Coupon form inner blocks can be removed, and for the Checkout block only the Coupon form.
  2. Check on the website that your changes are reflected. Note that Taxes, Fees and Coupons will appear on the website only if the shop supports them.
  3. For the Cart > Shipping inner block make sure you can enable disable the shipping calculator and that the change is visibile in the website
  4. Enable Taxes on your website (/wp-admin/admin.php?page=wc-settings) by clicking Enable tax rates and calculations
  5. Go to the C & C blocks and select the Taxes inner block.
  6. In the inner block's setting toggle on / of Show rate after tax name and make sure that is reflected in the website
  7. Try to place an order and make sure it's successful.

User Facing Testing

These are steps for user testing (where "user" is someone interacting with this change that is not editing any code).

  • Same as above, or
  • See steps below.

Changelog

The order summary area for the Cart and Checkout Blocks is now powered by Inner Blocks allowing for more customizations and extensibility.

@mikejolley mikejolley self-assigned this Mar 21, 2022
@mikejolley mikejolley added the block: checkout Issues related to the checkout block. label Mar 21, 2022
@rubikuserbot rubikuserbot requested review from a team and ralucaStan and removed request for a team March 21, 2022 10:59
@github-actions
Copy link
Contributor

Consider deprecating OrderMetaSlotFill and DiscountSlotFi...

Consider deprecating OrderMetaSlotFill and DiscountSlotFill in favour of inner block areas.


https://github.com/woocommerce/woocommerce-gutenberg-products-block/blob/d839b2d76b04119a605b65ebfe1506d4796459be/assets/js/blocks/checkout/inner-blocks/checkout-order-summary-block/slotfills.tsx#L7-L18

🚀 This comment was generated by the automations bot based on a todo comment in d839b2d in #6065. cc @mikejolley

@mikejolley mikejolley added category: extensibility Work involving adding or updating extensibility. Useful to combine with other scopes impacted. block: cart Issues related to the cart block. labels Mar 21, 2022
@woocommerce woocommerce deleted a comment from github-actions bot Mar 21, 2022
@woocommerce woocommerce deleted a comment from github-actions bot Mar 21, 2022
@woocommerce woocommerce deleted a comment from github-actions bot Mar 21, 2022
@woocommerce woocommerce deleted a comment from github-actions bot Mar 21, 2022
@woocommerce woocommerce deleted a comment from github-actions bot Mar 21, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Mar 21, 2022

Size Change: +9.5 kB (+1%)

Total Size: 872 kB

Filename Size Change
build/active-filters-frontend.js 5.92 kB -3 B (0%)
build/active-filters.js 6.96 kB +5 B (0%)
build/all-products-frontend.js 18.2 kB +5 B (0%)
build/all-products.js 34 kB +16 B (0%)
build/all-reviews.js 8.01 kB -9 B (0%)
build/attribute-filter-frontend.js 16.9 kB -1 B (0%)
build/attribute-filter.js 13.1 kB +13 B (0%)
build/blocks-checkout.js 17.4 kB +5 B (0%)
build/cart-blocks/accepted-payment-methods-frontend.js 0 B -1.17 kB (removed) 🏆
build/cart-blocks/checkout-button-frontend.js 0 B -1.15 kB (removed) 🏆
build/cart-blocks/express-payment-frontend.js 0 B -5.19 kB (removed) 🏆
build/cart-blocks/filled-cart-frontend.js 755 B -2 B (0%)
build/cart-blocks/items-frontend.js 0 B -300 B (removed) 🏆
build/cart-blocks/line-items-frontend.js 0 B -5.5 kB (removed) 🏆
build/cart-blocks/order-summary-frontend.js 0 B -8.87 kB (removed) 🏆
build/cart-blocks/totals-frontend.js 0 B -320 B (removed) 🏆
build/cart-frontend.js 45.7 kB +731 B (+2%)
build/cart.js 44.5 kB +867 B (+2%)
build/checkout-blocks/actions-frontend.js 1.41 kB +1 B (0%)
build/checkout-blocks/billing-address--checkout-blocks/shipping-address-frontend.js 4.12 kB +3 B (0%)
build/checkout-blocks/billing-address-frontend.js 895 B +4 B (0%)
build/checkout-blocks/contact-information-frontend.js 2.83 kB -3 B (0%)
build/checkout-blocks/express-payment-frontend.js 5.49 kB -1 B (0%)
build/checkout-blocks/order-note-frontend.js 1.08 kB +4 B (0%)
build/checkout-blocks/order-summary-frontend.js 1.1 kB -10.2 kB (-90%) 🏆
build/checkout-blocks/payment-frontend.js 7.77 kB +1 B (0%)
build/checkout-blocks/shipping-address-frontend.js 999 B +1 B (0%)
build/checkout-blocks/shipping-methods-frontend.js 4.72 kB -11 B (0%)
build/checkout-frontend.js 48 kB +807 B (+2%)
build/checkout.js 45.7 kB +1.03 kB (+2%)
build/featured-category.js 8.66 kB -2 B (0%)
build/handpicked-products.js 7.12 kB +1 B (0%)
build/legacy-template.js 2.19 kB -2 B (0%)
build/mini-cart-component-frontend.js 16.5 kB +19 B (0%)
build/mini-cart-contents-block/footer--mini-cart-contents-block/products-table-frontend.js 5.32 kB +1 B (0%)
build/mini-cart-contents-block/footer-frontend.js 5.62 kB -6 B (0%)
build/mini-cart-contents-block/products-table-frontend.js 5.36 kB -4 B (0%)
build/mini-cart-contents-block/title-frontend.js 368 B +1 B (0%)
build/mini-cart-contents.js 23.4 kB +45 B (0%)
build/mini-cart-frontend.js 1.71 kB -1 B (0%)
build/mini-cart.js 6.57 kB +11 B (0%)
build/price-filter-frontend.js 12.1 kB +7 B (0%)
build/price-filter.js 8.48 kB -10 B (0%)
build/product-add-to-cart--product-button--product-category-list--product-image--product-price--product-r--a0326d00.js 223 B -1 B (0%)
build/product-add-to-cart--product-button--product-image--product-title.js 2.64 kB +3 B (0%)
build/product-add-to-cart-frontend.js 7 kB +3 B (0%)
build/product-add-to-cart.js 7.47 kB +6 B (0%)
build/product-best-sellers.js 7.39 kB -6 B (0%)
build/product-button--product-category-list--product-image--product-price--product-rating--product-sale-b--e17c7c01.js 500 B +1 B (0%)
build/product-button-frontend.js 2.08 kB -1 B (0%)
build/product-button.js 2.29 kB +8 B (0%)
build/product-categories.js 3.16 kB -9 B (0%)
build/product-category-list.js 500 B +1 B (0%)
build/product-image-frontend.js 1.85 kB -5 B (0%)
build/product-new.js 7.68 kB -9 B (0%)
build/product-on-sale.js 8 kB -7 B (0%)
build/product-price-frontend.js 1.93 kB +2 B (0%)
build/product-price.js 1.5 kB -5 B (0%)
build/product-rating-frontend.js 1.15 kB -1 B (0%)
build/product-rating.js 736 B +5 B (+1%)
build/product-sale-badge-frontend.js 1.09 kB -1 B (0%)
build/product-sale-badge.js 680 B -1 B (0%)
build/product-search.js 2.18 kB +3 B (0%)
build/product-sku.js 381 B -1 B (0%)
build/product-stock-indicator-frontend.js 1.03 kB -2 B (0%)
build/product-summary.js 918 B +1 B (0%)
build/product-tag-list-frontend.js 916 B -1 B (0%)
build/product-tag-list.js 495 B +1 B (0%)
build/product-tag.js 7.83 kB -5 B (0%)
build/product-title-frontend.js 1.28 kB -2 B (0%)
build/product-title.js 903 B +1 B (0%)
build/product-top-rated.js 7.92 kB -1 B (0%)
build/reviews-by-category.js 11.5 kB -4 B (0%)
build/reviews-by-product.js 12.6 kB -10 B (0%)
build/reviews-frontend.js 6.98 kB +8 B (0%)
build/single-product-frontend.js 21.6 kB +6 B (0%)
build/single-product.js 10.1 kB +5 B (0%)
build/stock-filter-frontend.js 6.51 kB +5 B (0%)
build/vendors--cart-blocks/line-items--cart-blocks/order-summary--checkout-blocks/order-summary--checkout--6efbf40e-frontend.js 0 B -5.26 kB (removed) 🏆
build/vendors--cart-blocks/line-items--checkout-blocks/order-summary--mini-cart-contents-block/products-table-frontend.js 0 B -3.14 kB (removed) 🏆
build/vendors--cart-blocks/order-summary--checkout-blocks/billing-address--checkout-blocks/order-summary---4f3822fa-frontend.js 0 B -19.3 kB (removed) 🏆
build/vendors--cart-blocks/order-summary--checkout-blocks/billing-address--checkout-blocks/order-summary---eb4d2cec-frontend.js 0 B -4.74 kB (removed) 🏆
build/vendors--product-add-to-cart-frontend.js 7.53 kB -1 B (0%)
build/wc-blocks-data.js 9.83 kB -1 B (0%)
build/wc-blocks-editor-style-rtl.css 4.94 kB +67 B (+1%)
build/wc-blocks-editor-style.css 4.94 kB +64 B (+1%)
build/wc-blocks-shared-hocs.js 1.14 kB +2 B (0%)
build/wc-blocks-style-rtl.css 22 kB -295 B (-1%)
build/wc-blocks-style.css 22 kB -302 B (-1%)
build/wc-blocks-vendors.js 71.4 kB +709 B (+1%)
build/wc-blocks.js 2.62 kB -1 B (0%)
build/cart-blocks/cart-accepted-payment-methods-frontend.js 1.16 kB +1.16 kB (new file) 🆕
build/cart-blocks/cart-express-payment-frontend.js 5.2 kB +5.2 kB (new file) 🆕
build/cart-blocks/cart-items-frontend.js 298 B +298 B (new file) 🆕
build/cart-blocks/cart-line-items-frontend.js 5.5 kB +5.5 kB (new file) 🆕
build/cart-blocks/cart-order-summary-frontend.js 1.1 kB +1.1 kB (new file) 🆕
build/cart-blocks/cart-totals-frontend.js 321 B +321 B (new file) 🆕
build/cart-blocks/order-summary-coupon-form-frontend.js 2.75 kB +2.75 kB (new file) 🆕
build/cart-blocks/order-summary-discount-frontend.js 2.27 kB +2.27 kB (new file) 🆕
build/cart-blocks/order-summary-fee-frontend.js 273 B +273 B (new file) 🆕
build/cart-blocks/order-summary-heading-frontend.js 452 B +452 B (new file) 🆕
build/cart-blocks/order-summary-shipping--checkout-blocks/order-summary-shipping-frontend.js 6.34 kB +6.34 kB (new file) 🆕
build/cart-blocks/order-summary-shipping-frontend.js 429 B +429 B (new file) 🆕
build/cart-blocks/order-summary-subtotal-frontend.js 274 B +274 B (new file) 🆕
build/cart-blocks/order-summary-taxes-frontend.js 434 B +434 B (new file) 🆕
build/cart-blocks/proceed-to-checkout-frontend.js 1.15 kB +1.15 kB (new file) 🆕
build/checkout-blocks/order-summary-cart-items-frontend.js 3.65 kB +3.65 kB (new file) 🆕
build/checkout-blocks/order-summary-coupon-form-frontend.js 2.9 kB +2.9 kB (new file) 🆕
build/checkout-blocks/order-summary-discount-frontend.js 2.39 kB +2.39 kB (new file) 🆕
build/checkout-blocks/order-summary-fee-frontend.js 276 B +276 B (new file) 🆕
build/checkout-blocks/order-summary-shipping-frontend.js 604 B +604 B (new file) 🆕
build/checkout-blocks/order-summary-subtotal-frontend.js 274 B +274 B (new file) 🆕
build/checkout-blocks/order-summary-taxes-frontend.js 434 B +434 B (new file) 🆕
build/vendors--cart-blocks/cart-line-items--cart-blocks/cart-order-summary--cart-blocks/order-summary-shi--c02aad66-frontend.js 5.26 kB +5.26 kB (new file) 🆕
build/vendors--cart-blocks/cart-line-items--checkout-blocks/order-summary-cart-items--mini-cart-contents---233ab542-frontend.js 3.14 kB +3.14 kB (new file) 🆕
build/vendors--cart-blocks/order-summary-shipping--checkout-blocks/billing-address--checkout-blocks/order--5b8feb0b-frontend.js 4.74 kB +4.74 kB (new file) 🆕
build/vendors--cart-blocks/order-summary-shipping--checkout-blocks/billing-address--checkout-blocks/order--decc3dc6-frontend.js 19.3 kB +19.3 kB (new file) 🆕
ℹ️ View Unchanged
Filename Size
build/cart-blocks/empty-cart-frontend.js 346 B
build/checkout-blocks/fields-frontend.js 344 B
build/checkout-blocks/terms-frontend.js 1.22 kB
build/checkout-blocks/totals-frontend.js 325 B
build/featured-product.js 9.78 kB
build/mini-cart-contents-block/empty-cart-frontend.js 329 B
build/mini-cart-contents-block/filled-cart-frontend.js 230 B
build/mini-cart-contents-block/items-frontend.js 226 B
build/mini-cart-contents-block/shopping-button-frontend.js 287 B
build/price-format.js 1.19 kB
build/product-category-list-frontend.js 923 B
build/product-category.js 8.5 kB
build/product-image.js 1.08 kB
build/product-sku-frontend.js 380 B
build/product-stock-indicator.js 621 B
build/product-summary-frontend.js 1.33 kB
build/products-by-attribute.js 8.4 kB
build/stock-filter.js 6.57 kB
build/vendors--mini-cart-contents-block/footer--mini-cart-contents-block/products-table-frontend.js 7.35 kB
build/wc-blocks-google-analytics.js 1.56 kB
build/wc-blocks-middleware.js 930 B
build/wc-blocks-registry.js 2.7 kB
build/wc-blocks-shared-context.js 1.52 kB
build/wc-blocks-vendors-style-rtl.css 1.28 kB
build/wc-blocks-vendors-style.css 1.28 kB
build/wc-payment-method-bacs.js 816 B
build/wc-payment-method-cheque.js 811 B
build/wc-payment-method-cod.js 909 B
build/wc-payment-method-paypal.js 837 B
build/wc-settings.js 2.61 kB

compressed-size-action

@mikejolley mikejolley force-pushed the add/inner-blocks-to-order-summary branch 2 times, most recently from c187bd6 to 118172f Compare March 23, 2022 12:16
@ralucaStan ralucaStan force-pushed the add/inner-blocks-to-order-summary branch from 118172f to f118174 Compare March 29, 2022 13:21
Copy link
Contributor

@ralucaStan ralucaStan left a comment

Choose a reason for hiding this comment

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

Posting a partial review comment for the Cart Inner blocks, I'll still need to check the Checkout inner blocks

import './cart-order-summary-shipping';
import './cart-order-summary-coupon-form';
import './cart-order-summary-taxes';
import './cart-order-summary-heading';
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor, but for consistency reasons these should also have -block suffix. ./cart-order-summary-heading-block instead of ./cart-order-summary-heading

.wc-block-components-totals-coupon,
.wc-block-components-order-summary,
.wc-block-components-totals-shipping {
box-sizing: border-box;
Copy link
Contributor

Choose a reason for hiding this comment

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

Before we had the .wc-block-components-totals-wrapper class for each item of the summary.
Now:

  • we use the .wc-block-components-totals-wrapper class only for slots
  • we have .wc-block-components-totals-item for some of the items
  • summary, coupon and shipping don't have the .wc-block-components-totals-item and it needs to be styled separately.

I think it was good to have one class for each of this summary items. I wonder why:

  • we didn't keep the .wc-block-components-totals-wrapper?
  • we don't add .wc-block-components-totals-item to coupon, summary and shipping as well?

assets/js/blocks/cart/inner-blocks/register-components.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@ralucaStan ralucaStan left a comment

Choose a reason for hiding this comment

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

I've also added my comments about the Checkout inner blocks.

All and all this works as expected. There are some layout shifts when selecting the inner blocks, but I will create a separate issue about this.

I've added some comments that need to be addressed.

import './checkout-order-summary-shipping';
import './checkout-order-summary-coupon-form';
import './checkout-order-summary-taxes';
import './checkout-order-summary-cart-items';
Copy link
Contributor

Choose a reason for hiding this comment

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

these should also end with -block

.wc-block-components-order-summary,
.wc-block-components-totals-shipping {
box-sizing: border-box;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

same comment about adding one common class for all section wrappers from the Order summary column


return (
<TotalsCoupon
className={ className }
Copy link
Contributor

Choose a reason for hiding this comment

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

The coupon form wrapper does not apply the additional class provided by the user.

@ralucaStan
Copy link
Contributor

It was a real effort reviewing this as I imagine was the case for writing this.
It would have helped with testing if we would have had separate PRs for Cart and Checkout innerblocks. In this case the decisions made for the first block would have been applied to the 2nd block.

mikejolley and others added 17 commits April 1, 2022 14:52
…or each segment in the totals Order summary

Because, removing them was:
-  a breaking change for the old structure
- was making it harder to target the inner blocks. Before the class was used to target each segment
- it was making the wc-block-components-totals-item behave as a child or parent depending on the inner block, inconsitency
This component was removed in this PR, but  we wrap components in the Cart and Checkout sidebar in a TotalsWrapper. This will ensure consistent spacing and borders are applied to items in the sidebar.
@ralucaStan ralucaStan force-pushed the add/inner-blocks-to-order-summary branch from 506eda5 to d654f5b Compare April 1, 2022 12:53
@ralucaStan
Copy link
Contributor

I've added two commits to address the changes requests 10670393a00ebd18d12b86755b5278cdfa49ace6 and d654f5b:

Add back the wc-block-components-totals-wrapper class that was used for each segment in the totals Order summary

Because, removing them was:

  • a breaking change for the old structure
  • was making it harder to target the inner blocks. Before the class was used to target each segment
  • it was making the wc-block-components-totals-item behave as a child or parent depending on the inner block, inconsitency

Reuse the TotalsWrapper component for C& C blocks inner blocks

This component was removed in this PR, but we wrap components in the Cart and Checkout sidebar in a TotalsWrapper. This will ensure consistent spacing and borders are applied to items in the sidebar.

@ralucaStan ralucaStan merged commit d1af58a into trunk Apr 1, 2022
@ralucaStan ralucaStan deleted the add/inner-blocks-to-order-summary branch April 1, 2022 13:45
tjcafferkey pushed a commit that referenced this pull request Apr 5, 2022
* Sub/Total/Fee inner blocks

* Row blocks within the inner block

* Update icons

* Resolve stying issues

* Remove old block

* Pin totals row

* Locking logic update

* Heading inner block

* Refactor where inner blocks are defined

* Add todos

* Todo for Consider deprecating OrderMetaSlotFill and DiscountSlotFill in favour of inner block areas.

* Improve frontend registration of components using new entrypoint

* Experiment- external block context

* Revert "Experiment- external block context"

This reverts commit 4b75668.

* Duplicate inner blocks to avoid conflicts with context

* Remove todo

* Rename block dir

* Some test fixes

* Fix import

* fix import

* linting

* Remove unused attributes

* Optional classname

* fix coupons import

* fix shipping mocks

* Styling

* Fix selectors in e2e tests

* Add back the wc-block-components-totals-wrapper class that was used for each segment in the totals Order summary

Because, removing them was:
-  a breaking change for the old structure
- was making it harder to target the inner blocks. Before the class was used to target each segment
- it was making the wc-block-components-totals-item behave as a child or parent depending on the inner block, inconsitency

* Reuse the TotalsWrapper component for C& C blocks inner blocks

This component was removed in this PR, but  we wrap components in the Cart and Checkout sidebar in a TotalsWrapper. This will ensure consistent spacing and borders are applied to items in the sidebar.

Co-authored-by: Nadir Seghir <[email protected]>
Co-authored-by: Raluca Stan <[email protected]>
@ralucaStan ralucaStan changed the title WIP: Add Inner blocks to order summary Add Inner blocks to order summary Apr 8, 2022
@tarhi-saad tarhi-saad added this to the 7.4.0 milestone Apr 11, 2022
@tarhi-saad tarhi-saad added the type: enhancement The issue is a request for an enhancement. label Apr 11, 2022
@ralucaStan ralucaStan mentioned this pull request Apr 13, 2022
5 tasks
tarhi-saad added a commit that referenced this pull request Apr 13, 2022
In #6065, for Cart only Order Summary Heading & Coupon form can
be removed, and for Checkout only the Coupon form.
tarhi-saad added a commit that referenced this pull request Apr 14, 2022
* Empty commit for release pull request

* Add Changelog to readme.txt

* Update WC tested and required versions

* Add testing notes

* Register missing C&C inner blocks and update fallback template for older C& C versions (#6195)

* Register missing C & C inner blocks and update fallback template for older C & C versions

This will fix the issues with missing order summary inner blocks: Coupons (both in C & C blocks) and the Cart header. The issue was happening because, for example, for Cart the coupons were registred on the on frontend, but it just wasn't forced in the attributes. Because it also wasn't added to the PHP fallback layout, the render function didn't include it. For the Checkout block the coupons inner block wasn't registered at all.

* Revert changes to Checkout.php, we don't need to test for inner blocks

* Revert "Revert changes to Checkout.php, we don't need to test for inner blocks"

This reverts commit fc39535.

* Fix the returned template for older Checkout block iterations

* Fix Cart and Checkout templates to accommodate the Summary order inner blocks

* Hide coupon form div from inner blocks if coubons are not enabled

* Fix checkout coupon tests in checkout

They have been written for logged in user

* Fix Order Summary Heading inner block's default text

* Update comments with better wording

* Revert "Hide coupon form div from inner blocks if coubons are not enabled"

This reverts commit ab09021.

(cherry picked from commit 40180ae)

* Update the zip file link

* Update testing instructions

* Remove experimental build related PR from testing notes

* Fix/order summary sidebar css (#6231)

* Add box sizing to Totals item

* Add some unit tests for Order summary blocks

* Fix Proceed to checkout button size

(cherry picked from commit 669aee7)

* Update the WC required/tested versions

* Mini Cart Contents: Use block pattern to make the empty cart message translatable (#6248)

* try: use block pattern to make empty cart message translatable

* Update src/BlockTypes/MiniCart.php

Co-authored-by: Albert Juhé Lluveras <[email protected]>

* rename function

Co-authored-by: Albert Juhé Lluveras <[email protected]>
Co-authored-by: Luigi <[email protected]>
(cherry picked from commit cfe73f1)

* Update the release's ZIP file

* Update testing notes

In #6065, for Cart only Order Summary Heading & Coupon form can
be removed, and for Checkout only the Coupon form.

* Update the testing notes

Remove #5870 testing notes because they can't be tested as a user

* Update Testing notes

Add screenshots to the #5967 testing notes

* Remove #6166 testing instructions

We reverted this PR

* Revert (#6166) (#6253)

Revert "Prevent Featured Product block from breaking when product is out of stock + hidden
from catalog (#6166)"

This reverts commit 3c0e0af

(cherry picked from commit 908526e)

* Bumping version strings to new version.

Co-authored-by: github-actions <[email protected]>
Co-authored-by: Saad Tarhi <[email protected]>
Co-authored-by: Raluca Stan <[email protected]>
Co-authored-by: Luigi Teschio <[email protected]>
Co-authored-by: Tung Du <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
block: cart Issues related to the cart block. block: checkout Issues related to the checkout block. category: extensibility Work involving adding or updating extensibility. Useful to combine with other scopes impacted. type: enhancement The issue is a request for an enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert Order Totals to Inner Blocks
4 participants