* PHP 8 Updates for src/Internal
* Add changelog entry
* Fix PHP lint issues
* Add unit test for not in queries.
---------
Co-authored-by: Vedanshu Jain <vedanshu.jain.2012@gmail.com>
* Rename order attribution template file
* Update OA field name to `source_type` to keep up with https://github.com/woocommerce/woocommerce/pull/41690
* Discard conditional UTM labels altogether
---------
Co-authored-by: Tomek Wytrębowicz <tomalecpub@gmail.com>
* init approach of related products endpoint
* register related prodducts endpoint
* rename response prop with ids
* filter categoris from endpoint params
* filter categories when pulling related products
* changelog
* extend from WC_REST_CRUD_Controller class
* iterate over defininf endpoint params
* doc
* merge product terms with params
* introduce `combine` param
* return products collection instead of plain array
* fixinf eslint issues
* pass proper fn args to bound fns
* do not call parent register method
* post type is defined by parent controller class
* remove related products controller
* extend products controller with `related-products`endpoint
* filter post__in param
* when no related products found return empty array
* change and register endpoint params
* remove commented line
* add a custom method to extend the params
* update
* fix typo
* ensure to respect the products limit
* fix eslint issue
* remove unrequired endpoint id param
* Track (props: ids, ids)
* Track ( props: ( template id ), : ( if unsupported or not ) )
* Track ( props: ( template id ) )
* Track ( props: : | , same as product value )
* Fix advice card to support persistent dismiss via a preference id or non persistent one using the local state
* Track ( props: : | , same as product value )
* Track ( props: : | , same as product value )
* Track ( props: : | , same as product value )
* Track ( props: : | , same as product value )
* Add changelog file
* Fix linter error
* Track linked_products_product_add when adding a new product to the linked product list
* Fix session notices in Cart and Checkout block pages
* Add changefile(s) from automation for the following project(s): woocommerce-blocks, woocommerce
* Update plugins/woocommerce-blocks/assets/js/base/components/notice-banner/style.scss
Co-authored-by: Niels Lange <info@nielslange.de>
---------
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Niels Lange <info@nielslange.de>
* Get default attributes on front end
* Remove console log
* Show notice about 0 registered fields in editor
* Do not show block in editor if no fields are registered
* Wrapper block
* Update webpack config
* Wrapper block type definition
* Separate fields from the hook block
* Hide when no custom fields exist
* Address and contact fields
* Shared form fields in settings
* Revert render_content to original
* Add changefile(s) from automation for the following project(s): woocommerce-blocks, woocommerce
* Get default attributes on front end
* Add initial sections to email templates
* Revert "Get default attributes on front end"
This reverts commit f76c21617a2c5ad832d4579ba2c4c8e98afd440d.
* Also render contact fields
* Handle plain text
* Add changefile(s) from automation for the following project(s): woocommerce
* Add changefile(s) from automation for the following project(s): woocommerce-blocks, woocommerce
* Unwanted changes from rebase
* Use get_order_additional_fields_with_values
* Remove sample fields
* Version bump for styles
* Update plugins/woocommerce/includes/class-wc-emails.php
Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
* Update plugins/woocommerce/includes/class-wc-emails.php
Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
* Apply view context
* Handle null
* Context
---------
Co-authored-by: Thomas Roberts <thomas.roberts@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
* Add e2e tests to verify specific theme templates have priority over user-modified Product Catalog template
* Add changefile(s) from automation for the following project(s): woocommerce-blocks
* Fix handling the error from the `product_image_upload` function
* Add changefile(s) from automation for the following project(s): woocommerce
* Fix linting errors
---------
Co-authored-by: github-actions <github-actions@github.com>
* Add changelog and update var naming in block tests
* Format code in two tests
* Add missing payment method set to the test
* Refactor tests and merge cart checkout coupons
* Clear cookies before every test
* There's a star button on the right side of the name field. It's centered vertically.
* Clicking it marks the product as featured
* When hovered, we show a tooltip that reads: Mark as featured
* When clicked, the icon changes from star-outline to star-filled. Clicking it again reverts to the original icon.
* Add changelog file
* Change the tooltip text depending on the featured flag
* Get default attributes on front end
* Remove console log
* Show notice about 0 registered fields in editor
* Do not show block in editor if no fields are registered
* Wrapper block
* Update webpack config
* Wrapper block type definition
* Separate fields from the hook block
* Hide when no custom fields exist
* Address and contact fields
* Shared form fields in settings
* Revert render_content to original
* Add changefile(s) from automation for the following project(s): woocommerce-blocks, woocommerce
* Show address placeholders
* View fields in admin
* Pass order object and context to field hooks in WP admin
* CheckoutFieldsAdmin class
* Move logic to CheckoutFieldsAdmin
* Implement context
* Style checkboxes correctly in meta box
* Update handling
* Undo change to changelog
* Correct docblock comment for woocommerce_admin_shipping_fields
* Document context
* No need to init fields
* Fix checkbox handling for bw compat reasons
* Add changefile(s) from automation for the following project(s): woocommerce
* Force CI
* Add changefile(s) from automation for the following project(s): woocommerce
* Fix CSS rule
---------
Co-authored-by: Thomas Roberts <thomas.roberts@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
* Changelog
* Tests for restricted coupons
* Update to test checkout not cart… which is what I should have been using
* Removal -- from PR feedback
---------
Co-authored-by: Jon Lane <jon.lane@automattic.com>
* Fix activity panel showing incorrect currency
* Add changefile(s) from automation for the following project(s): woocommerce
* Use store currency setting when order currency is different from the store currency
---------
Co-authored-by: github-actions <github-actions@github.com>
* Vanilla .animate() instead of jQuery .fadeIn()
* Slider .animate() keyframes are now a list with 2 objects
[{ marginLeft: old }, { marginLeft: new }] keyframe syntax instead of
{ marginLeft: [old, new] } keyframe syntax for consistency
* Changelog
* Tweak changelog.
---------
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
* Add sales property to MarketingCampaign class.
* Return campaign sales data in API.
* Display Sales in Campaigns card.
* Fix test for useCampaigns.
* Display a "-" when there are no cost or sales value in Campaigns card.
* Add changelog.
* Fix test for useCampaigns hook.
* Fix PHP lint issue.
* Add e2e test to hover Mini Cart totals
* Add changefile(s) from automation for the following project(s): woocommerce-blocks
* Optimise hover test
---------
Co-authored-by: github-actions <github-actions@github.com>
* Convert block templates tests to parametized tests
* Use frontendUtils.addToCart() when possible
* Add changefile(s) from automation for the following project(s): woocommerce-blocks
---------
Co-authored-by: github-actions <github-actions@github.com>
* Update commands to run e2e tests
* Capitalize Product Catalog template name
* Create tests with block theme with templates
* Create Block Theme with Templates test environment
* Update classic theme commands
* Code cleanup
* Add changefile(s) from automation for the following project(s): woocommerce-blocks
* Code cleanup (II)
* Add config to blocks-playwright.yml and remove unnecesssary .github/workflows/playwright.yml file
* Remove unnecessary imports from product-catalog-template.block_theme_with_templates.spec.ts
* Update blocks e2e commands to pnpm
* Replace hardcoded strings with a variable
* Unify all 'block theme with templates' tests in a parameterized test
* Create a testData object for the Mini-Cart template part test
* Fix some code styling issues
* Create a testData object for the Mini-Cart template part test (II)
* Remove duplicate userText variable
---------
Co-authored-by: github-actions <github-actions@github.com>
* Add unique ID attribute to Product Collection block
In this update, we introduced a unique identifier for each instance of the Product Collection block. This change involves several key modifications:
1. **Block JSON Update**: Added a new `id` attribute in `block.json` to store the unique identifier for each block instance.
2. **Product Collection Content Update**: In `product-collection-content.tsx`, we utilized the `uuid` library to generate a unique ID. This is done in a `useEffect` hook, ensuring that each block instance receives a distinct ID upon initialization.
3. **Type Definitions**: The `ProductCollectionAttributes` interface in `types.ts` was updated to include the new `id` attribute, aligning with our enhanced data structure.
4. **Package Dependencies**: To support this feature, `@types/uuid` and `uuid` were added to `package.json`, ensuring we have the necessary tools for ID generation.
This enhancement is pivotal for uniquely identifying each Product Collection block, paving the way for more robust and individualized block handling in the future.
* Rename uniqueId to id
* Add lock file
* Add 'id' context to product collection and template
* Add changefile(s) from automation for the following project(s): woocommerce-blocks
* Merge trunk with 42861-introduce-a-unique-identifier-for-each-product-collection-block
* Regenerate the lockfile
* Remove autogenerated change in plugins/woocommerce/package.json
* Regenerate lock file
* Rerun CI actions
* Delete pnpm-lock.yaml file & regenerate it using pnpm install command
---------
Co-authored-by: github-actions <github-actions@github.com>
* Removing notices that are no-longer-relevant
Removing "WIP" and "developer-level" notices, and fixing a few titles
* add updated docs manifest
---------
Co-authored-by: Jacklyn Biggin <hi@jacklyn.dev>
* CYS - Core: add unit test
* Add changefile(s) from automation for the following project(s): woocommerce
* fix description
* Enable TT4 when the customize your store process starts
* Add changefile(s) from automation for the following project(s): woocommerce
---------
Co-authored-by: github-actions <github-actions@github.com>