woocommerce/plugins/woocommerce-admin/client/marketplace/components/my-subscriptions
Cem Ünalan 48ebe7b84c
Marketplace: Add "Add to Store" button for free and WordPress.org products #43616 (#43983)
* Marketplace: Add "Add to Store" button for free and WordPress.org products (#43616)

* Marketplace: Install free .org plugins with Add to Store button

* Marketplace: addressed feedback for the the new install free products flow

- Moved notices to the top of the modal
- Updated notice styles slightly
- Updated the CreateOrderSuccessResponse to reflect API changes

* Marketplace: Require the Helper orders API file

* Marketplace: fix linter errors

* Marketplace: form encode when submitting the request

The body is encoded anyways by the WordPress core. However, if I don't
do it here, I can't create a valid signature to be verified by
Woo.com.

I could have just submitted a JSON too, but this seamed easier since
the body is parsed on Woo.com automatically when it's in this form.

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

* Marketplace: remove "~" character in imports and use relative paths

* Marketplace: fix margins in the product with the Add to Store button

* Marketplace: Add conditions to hide the button

We hide it if:

- the product is already installed
- user doesn't have the right capability
- if the product is just installed using our flow and there is
no page refresh

* Marketplace: don't show Add to Store button on Themes and on Discover

* Marketplace: fix linting

* Marketplace: hide ratings from the product if "is-small" class exists

* Marketplace: fix linting errors

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-01-24 23:02:20 +03:00
..
table Redirect Woo.com connect request to selected page (#43315) 2024-01-10 07:20:15 +01:00
my-subscriptions.scss Marketplace: Add "Add to Store" button for free and WordPress.org products #43616 (#43983) 2024-01-24 23:02:20 +03:00
my-subscriptions.tsx Redirect Woo.com connect request to selected page (#43315) 2024-01-10 07:20:15 +01:00
notices.tsx Update refresh button to use API (#41397) 2023-11-16 11:51:30 +01:00
types.ts Remove install support for Woo.com hosted products (#42952) 2023-12-20 12:52:51 +01:00