Néstor Soriano
1f1f331432
Merge pull request #30081 from woocommerce/frosso/wcs-extensions-bannes-updates
...
chore: copy changes on WCS banner
2021-06-28 16:52:44 +02:00
frosso
d6724ad67d
chore: remove WCS canada post mentions
2021-06-10 13:07:24 -05:00
frosso
e445918c8e
chore: copy changes on WCS banner
2021-06-10 12:29:32 -05:00
And Finally
7202f19631
Added support for `geoblacklist` in `output_promotion_block`.
2021-05-12 17:54:20 +01:00
And Finally
6bb1ec73a4
Reverted renaming of `geowhitelist` and `geoblacklist`, in case they are still present in other endpoints.
2021-05-12 17:48:37 +01:00
And Finally
de331ad893
Addressing feedback. Removed `!important` from `.addons-button-expandable` rule. Renamed `geowhitelist` and `geoblacklist` to `geo_allow_list` and `geo_block_list`.
2021-05-12 09:41:31 +01:00
And Finally
e4d3b157ff
Changed block name and CSS classnames to the more generic "promotion block".
2021-05-06 22:12:07 +01:00
And Finally
21b4801cc1
Fixing doc comment for new method.
2021-05-06 15:40:02 +01:00
And Finally
2b053d4586
Added docblock comment for `$section` param.
2021-05-06 15:22:53 +01:00
And Finally
f1a69cb4af
Added comment to new `output_ad_block` method. Removed differences introduced by PhpStorm autoformat.
2021-05-06 15:16:49 +01:00
And Finally
3fa233872c
Added `output_ad_block` method to `WC_Admin_Addons` and CSS rules to render a WooCommerce Payments ad banner at the top of the "Featured" section of the WC Core addons page, `wp-admin/admin.php?page=wc-addons§ion=_featured`. This is to fulfil the requirements of WooCommerce.com issue https://github.com/Automattic/woocommerce.com/issues/9860 .
...
We output the block if
- The user has permissions to install plugins.
- Their location is in one of the countries identified in a `geowhitelist`.
- WooCommerce Payments is not already active.
2021-05-06 12:55:30 +01:00
Rasmy Nguyen
7a4b54ad38
Add section to tracks event props
...
This adds the Extenstions tab to the event props so we can determine
which tab merchants are installing wcpay from.
2021-02-23 12:25:40 +09:00
Rasmy Nguyen
cbb1a540bd
Change hook name and add id param to track method
...
This changes the addon install hook to match the other hooks in the
extensions tracking class. This also adds an addon_id param to the
callback associated with this hook so we can extend this to other
plugins in the future.
2021-02-23 11:34:28 +09:00
Rasmy Nguyen
4ad1465fe3
Add tracks event for WCPay install via addons page
...
This adds a tracks event for WooCommerce Payments installs via the
wc-addons page.
2021-02-23 11:34:28 +09:00
raicem
eb3ba820da
Use "wp_safe_remote_get" for sending search requests
2021-01-13 23:53:53 +03:00
raicem
f0166fcc56
Fix indentation errors as per WordPress code style guides
2021-01-07 15:14:38 +03:00
raicem
7b67977a31
Reduce "wc_addons_featured" transient cache duration
...
The featured extension list was static but now it's fetched from
WooCommerce.com and may change more frequently. Reducing the
cache duration to allow users to see changes much more quickly.
2021-01-05 17:45:34 +03:00
raicem
c70eee2a0a
Send auth token when sending search and featured extension requests
2021-01-05 17:40:58 +03:00
raicem
c628c15ac6
Update featured products endpoint
...
WooCommerce.com will provide this list of products.
2021-01-05 12:43:17 +03:00
Gerhard Potgieter
6832dc96a4
Make wc shipping button also purple
2020-11-10 19:43:11 +02:00
Gerhard Potgieter
3c1352d36c
Remember to break
2020-11-10 19:36:34 +02:00
Gerhard Potgieter
caf2ea99fa
Shorten title as per feedback
2020-11-10 19:26:44 +02:00
Gerhard Potgieter
a0812d5009
Remove redirect as it does not work with the background installer
2020-11-10 18:28:47 +02:00
Gerhard Potgieter
b5fb7c0104
Add purple woo button
2020-11-10 18:26:59 +02:00
Gerhard Potgieter
b5a4a1597f
Fix current section check, phpcs linting errors.
2020-11-10 16:48:11 +02:00
Gerhard Potgieter
692dfa7fec
Update banner copy
2020-11-09 15:21:38 +02:00
Gerhard Potgieter
8af8554770
Add functionality to handle woocommerce payments install
2020-11-09 14:48:49 +02:00
Gerhard Potgieter
7d33488d6b
WooCommerce Services to WooCommerce Shipping
2020-11-09 14:22:20 +02:00
Gerhard Potgieter
b1d9363918
Add wc payments to extensions addons page.
2020-11-09 14:19:11 +02:00
Claudio Sanches
d48f1d4e2e
Fixed package tag usage
2020-08-05 13:36:24 -03:00
Jason
8ae5b4d5a6
Update class-wc-admin-addons.php
...
Fix variable name typo. `$parameters`
2020-05-07 16:19:31 -07:00
Christopher Allford
1d1413b4ee
Replaced direct access of many constants with the Constants library
2020-01-31 22:18:47 -08:00
Rodrigo Primo
62d6b05b58
Fix Generic.Formatting.MultipleStatementAlignment violations
...
This commit fixes all violations of the Generic.Formatting.MultipleStatementAlignment sniff automatically using phpcbf.
2019-12-20 14:21:08 -03:00
Denis Dvali
0810c4a027
Url encode value of "wccom-back" GET param in product links on in-app marketplace.
2019-11-22 15:02:58 +03:00
Claudio Sanches
d13d6543f7
Merge pull request #24451 from woocommerce/add/in-app-connect
...
Add support to allow connect and install for in-app purchase flow.
2019-09-03 21:33:39 -03:00
Yash Kapoor
84d2fb7df5
Update class-wc-admin-addons.php
...
Fixed escaping function for attribute value.
2019-08-28 19:31:58 +05:30
Akeda Bagus
62b42893b2
Rename URL param from wccom-helper-nonce to wccom-connect-nonce.
2019-08-17 22:37:02 +07:00
Akeda Bagus
aae802f319
Add support to allow in-app purchase installation after connected.
2019-08-17 00:36:28 +07:00
haszari
8c5eb16c78
shorten in-app-purchase url param keys
2019-07-16 08:30:19 +12:00
haszari
dab7cb328a
use add_query_arg to determine current page url
2019-07-15 18:07:57 +12:00
haszari
f97fa34c01
rename button style param/variable for clarity
2019-07-15 08:50:08 +12:00
haszari
8c6a09e7e4
pass current wp-admin path to WCCOM as url param (for "back" link)
2019-07-12 14:50:14 +12:00
haszari
46f2b98bca
add in-app-purchase url params to marketplace suggestions buttons
2019-07-12 13:42:35 +12:00
haszari
9652d8f42c
add in-app-purchase url params to addons screen cards (in category tabs)
2019-07-12 13:42:35 +12:00
haszari
b597ff067a
add in-app-purchase url params to addons screen button
2019-07-12 13:42:33 +12:00
haszari
6f29905ece
fix phpcs errors (4 phpcbf, 40 manual)
2019-07-12 13:42:33 +12:00
Rodrigo Primo
23b69eba53
Use phpcbf to fix coding standard violations in includes/admin
...
After using phpcbf to fix the coding standard violations, I did some manual adjustments to the changes, especially in poorly indented files.
2018-03-05 16:21:35 -03:00
Jonathan Belcher
f4d6b6f68f
Merge Commit
2017-12-07 12:10:00 -05:00
Jonathan Belcher
9695bc4183
Small code review changes
2017-12-07 11:47:33 -05:00
Jonathan Belcher
bbaabb5b80
Remove unused function
2017-12-06 12:03:50 -05:00