Commit Graph

54255 Commits

Author SHA1 Message Date
Néstor Soriano eafc87b453
Save the session data before proceeding with order payment (#40964)
* Save the session early before proceeding with order payment.

As part of the checkout process an order is created and the order id
is stored in a session variable right before requesting payment
processing to the appropriate payment gateway. Thus if the payment
fails and the user submits the order again, the order id will be
picked from the session so the existing order can be retrieved and
updated.

However if the payment process hangs (instead of returning an error)
and the request never finishes the session data will never actually
be sorted, and the next time the user submits the order a duplicate
of the first order will be created.

This commit simply does WC()->session->save_data() after the
WC()->session->set that stores the order id, so that the session is
effectively updated even if the request hangs.

* Add changelog file
2023-10-24 16:38:39 +02:00
Kader Ibrahim S 82b90d07ec
Adds documentation for WooCommerce endpoints (#40773)
* Adds WooCommerce Endpoints documentation

* Removes images from `woocommerce.com` domain.

* Embed code directly into markdown instead of using gists.

* Adds images to the document.

* Adds changelog file

* Move the document to the right folder.

* Fixes markdown lint issues
2023-10-24 11:04:38 +02:00
Néstor Soriano 481e799c49
Add notice about webhooks using the legacy REST API (#40866)
Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
2023-10-24 08:51:36 +02:00
Kader Ibrahim S 7aea11a7d0
Adds documentation for Checkout Fields customisations using actions and filters (#40775)
* Initial commit from HTML to Markdown.

* Migrates checkout actions and filters document.

* Fixes linting errors
2023-10-23 23:28:09 +02:00
Leif Singer 492a41890c
Docs: add wc cli overview (#40770)
* add wc-cli/overview.md

* tweaks to content

* appease the linter
2023-10-23 23:14:51 +02:00
Leif Singer 2219c5686e
Docs: add wc cli commands (#40774)
* add wc-cli/commands.md

* convert HTML to markdown, clean up, and appease the linter
2023-10-23 23:03:16 +02:00
Kader Ibrahim S 99a39ad56e
Adds documentation for implementing WC Integration (#40772)
* First draft after HTML to markdown.

* Refactors the implement settings document.

* Adds changelog file
2023-10-23 23:03:04 +02:00
Leif Singer 810d322c43
Docs: add contributing/common-issues.md (#40768)
* add contributing/common-issues.md

* tweak wording and formatting here and there
2023-10-23 23:01:51 +02:00
Leif Singer fb3f6d95fa
add `deprecation-in-core.md` (#40765) 2023-10-23 23:01:38 +02:00
Brent MacKinnon 1570d26ec4
migrating a batch of contribution-related docs from the wiki (#40764)
* migrating a batch of contribution-related docs from the wiki

* Delete deprecation-in-core.md

* liniting
2023-10-23 23:01:25 +02:00
Brent MacKinnon 9028178d95
Create shipping-method-api.md (#40763)
* Create shipping-method-api.md

* Update shipping-method-api.md
2023-10-23 23:01:14 +02:00
Paulo Arromba 3699ecdc00
Add API Critical Flows to /docs (#40762)
* Created md file for API Critical Flows

* Added Shipping section

* Moved api-critical-flows.md to docs/contributing folder
2023-10-23 23:00:59 +02:00
Brent MacKinnon 9a10a416b0
Create payment-token-api.md (#40761)
* Create payment-token-api.md

* Create payment-gateway-api.md

* adjusting for lint

* Create payment-gateway-plugin-base.md

* Update payment-token-api.md

* Update payment-token-api.md

* adjusting for linting

* Update payment-gateway-api.md
2023-10-23 23:00:42 +02:00
Brent MacKinnon 890fb93a01
Create woocommerce-git-flow.md (#40758)
* Create woocommerce-git-flow.md

* Update woocommerce-git-flow.md

* Update woocommerce-git-flow.md
2023-10-23 23:00:26 +02:00
Brent MacKinnon 3abc6d82e6
Update developer-resources.md (#40058) 2023-10-23 23:00:13 +02:00
Brent MacKinnon 72b228fc7c
Create user-experience-guidelines.md (#39894)
* Create user-experience-guidelines.md

* Beefing up user-experience guidlines

adding media folder, and 6 new docs to create the user experience folder in our docs repo.

* UX guidelines to pass linting

* Update task-list-and-inbox.md

* Update task-list-and-inbox.md

* moving images to developer.woo.com
2023-10-23 22:59:56 +02:00
Maikel David Pérez Gómez 791af33e95
Empty state for uncreated/empty variations (#40940)
* Move empty-variations-image to the images folder so it can be used in other components

* Create TableEmptyState component

* Add TableEmptyState to the Variations table component

* Add changelog file

* Fix linter error
2023-10-23 15:21:42 -04:00
Fernando Marichal 469a76a82f
Show error message when single variation price is empty (#40885)
* Show notice when price is empty

* Add changelog

* Add variation check

* Allow multiple errors

* Show unique errors

* Change error text

* Rename wpError to wpErrors

* Show single error

* Add error type

* Refactor catch
2023-10-23 16:19:00 -03:00
Maikel David Pérez Gómez eff2b8cca3
Update default visibility settings for variation options (#40949)
* Replace hidden icon by seen icon

* The 'visible' icon is only shown when the Show in product details box in the variation option is checked

* The tooltip displayed when the user hovers over the 'hidden' icon is updated to: Visible in product details

* On hover, the cursor changes to help

* Add changelog file
2023-10-23 14:19:33 -03:00
Maikel David Pérez Gómez 16ce05109f
Add a loading state for the new product form (#40939)
* Create product page skeleton

* Load skeleton in product and variation pages

* Let each page to define own loading/skeleton when the router is resolving the page.

* Add changelog files

* Fix linter error

* Fix unit test
2023-10-23 12:47:26 -04:00
Joel Thiessen a84538554b
Only initializing background removal with jetpack connection present (#40918) 2023-10-23 07:56:49 -07:00
Maikel David Pérez Gómez 2fb59293ad
Create product-external-affiliate feature flag (#40910)
* Create product-external-affiliate feature flag

* Add changelog file
2023-10-23 09:34:24 -04:00
Kader Ibrahim S 6d7755813a
Adds documentation for useful functions (#40771)
Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
2023-10-23 11:37:53 +02:00
Ilyas Foo d8d896741b
CYS: Remove spotlight tour modal shadow (#40861)
* Tweak css for spotlight tour modal shadow

* Changelog

* Lint
2023-10-21 07:34:18 +08:00
Maikel David Pérez Gómez 50ff379f25
Delete variations from the single page does not reflect correctly in the parent product (#40900)
* Invalidate resolution for paginated variations after removing any from the single variation page

* Add changelog file

* Invalidate resolution also for getProductVariationsTotalCount
2023-10-20 13:06:02 -03:00
louwie17 fbac42aafc
Update variation switcher logic to not loop (#40901) 2023-10-20 11:17:30 -04:00
Matt Sherman 3fa5573706
Template API: Deprecate woocommerce/conditional block (#40883) 2023-10-20 09:53:06 -04:00
Nathan Silveira 3d182f342f
Create React component wrappers for the checkbox and number blocks (#40828)
* Add @woocommerce/number to @woocommerce/components

* Create a component for checkbox and use it on the block

* Create a component for number and use it on the block

* Add changelogs

* Remove scss import

* Rename Numbercontrol prop

* Expose useProductEntityProp

* Move components to product-editor package and fix UI bug created in checkbox component

* Revert unnecessary changes in components and update changelogs

* Revert changes in use-number-input-props

* Fix issue in checkbox

* Revert css change
2023-10-20 10:52:56 -03:00
Fernando Marichal 3426692606
Hide `Switch to draft` button on single variation page (#40856)
* Hide Switch to draft when variable product

* Add changelog

* Change changelog
2023-10-20 09:32:06 -04:00
Matt Sherman 61ef8a9fa2 Changelog 2023-10-19 15:34:32 -04:00
Matt Sherman be727efb9f Changelog 2023-10-19 15:34:27 -04:00
Matt Sherman 60fde2be96 Deprecate woocommerce/conditional block 2023-10-19 15:32:40 -04:00
Matt Sherman dcb658f537 Add conditional visibility example to doc 2023-10-19 15:28:56 -04:00
Christopher Allford 8f8b1c8d47
Expand CI WooCommerce Matrix (#40882) 2023-10-19 11:55:37 -07:00
Christopher Allford fbbca9c3e0
Refactored Linting & Unit Testing Workflows (#40572) 2023-10-19 11:24:20 -07:00
Maikel David Pérez Gómez 8827e42bd7
Set prices button from the variations notice is not updating the right amount of variations (#40876)
* Improve has_price filter so it can matches when the price record does not exist or it's empty/null

* Get the exact variation ids of those ones that do not have price

* Add changelog files

* Fix linter errors
2023-10-19 13:14:08 -04:00
Matt Sherman 613a63b0ef
Template API: Conditional visibility support (#40722) 2023-10-19 12:02:05 -04:00
Matt Sherman df2a0eb337 Remove productType from ProductEditorContext interface 2023-10-19 11:20:20 -04:00
Fernando Marichal b0113ee555
Add edit downloads modal (#40599)
* Create edit downloads modal

* Add modal to downloads

# Conflicts:
#	packages/js/product-editor/src/blocks/product-fields/downloads/edit.tsx

* Refactor removeHandler

* Fix EditDownloadsModal

* Refactor onSave

* Add changelog

* Fix onRemove

* Fix styles

* Fix lint

* Fix lint

* Fix modal closing when copyToClipboard
2023-10-19 11:09:04 -04:00
Thomas Shellberg 56eddb5f2f
Woo AI - Version 0.5.0 Release.
* Updating version and changelog.
2023-10-19 16:28:18 +02:00
Ilyas Foo c87aae495f
CYS: Update save and done button loading indicator to use spinner (#40840)
* Update save and done button loading indicator to use spinner

* Set Done button to disabled while it's resolving

* Changelog
2023-10-19 22:12:53 +08:00
Martin Skovvang Petersen 80420c7c2b
Add order instance argument to woocommerce_get_cancel_order_url filter hook (#40275)
* Add order instance to woocommerce_get_cancel_order_url filter hook

* Create pr-40275

Add changelog entry

* Update class-wc-order.php

Add docblock to filters

* Add $redirect argument to filters

* Update changelog
2023-10-19 14:17:17 +01:00
Daniel Mallory e4b1657f98
Remove references to Sofort (#40745)
* Removing all references to Sofort in the various locations we show payment method information.

* Adding changelogs.
2023-10-19 13:45:48 +01:00
Matt Sherman 7fd28367d8 Remove order attribute from tab block 2023-10-19 08:28:14 -04:00
Matt Sherman 4605f7ee57 Set tab order based on block's order 2023-10-19 08:23:44 -04:00
Matt Sherman 97dc41e2aa Remove productType from context (it was really just postType, which is already in context) 2023-10-19 07:43:09 -04:00
nigeljamesstevenson 5653106e78
Add test to bulk update order status (#40320) 2023-10-19 12:35:42 +01:00
Matt Sherman abd71af40a Switch conditional block to use postType from context instead of productType 2023-10-19 07:33:29 -04:00
Matt Sherman b40f9d2035 Switch productType to postType in context augmentation 2023-10-19 07:30:53 -04:00
Adam Silverstein fe6e43b438
Leverage Script API strategy feature to defer front end scripts in WP >=6.3 (#40686)
* Leverage strategy API to defer scripts from header rather than placing in footer

* Add changefile(s) from automation for the following project(s): woocommerce

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-10-19 15:45:37 +08:00