woocommerce / woocommerce-paypal-payments

https://wordpress.org/plugins/woocommerce-paypal-payments/
GNU General Public License v2.0
62 stars 47 forks source link

Product Add-ons is not included on the order if the order is placed from product page via PayPal (160) #492

Closed thisissandip closed 1 year ago

thisissandip commented 2 years ago

Describe the Bug

Using PayPal Payments, if you place an order from the product page and if the order includes an add-on configured using Product Add-Ons then the selected add-on is not included on the order.

To Reproduce

  1. Create a Product with an Add On using Product Add-Ons
  2. Enable PayPal Payments on the Product Page
  3. Select the add on and click on the PayPal button to place the order
  4. After the order is placed, you will see that the add-on is not included in the order

Screenshots

Product Page:

Markup 2022-02-15 at 13 10 41

If I place the order by clicking on the PayPal button from here. The add-on "Name" is ignored.

Order:

Markup 2022-02-15 at 13 21 27

Expected Behavior

The addons should be included on the order if the order is placed through the product page.

Actual Behavior

The addons are NOT included on the order if the order is placed through the product page.

Environment

Additional Details

NOTE: It works correctly if the normal checkout flow is used (i.e: The add-ons are included on the order if we use the normal checkout flow using PayPal Payments). So the issue is ONLY when the payment is made from the product page.

Here's the screenshot of the order when the normal flow is used:

Markup 2022-02-15 at 13 23 22

First Reported here: 4780056-zen

System Status Report:

### WordPress Environment ###

WordPress address (URL): https://uswoo.mystagingwebsite.com
Site address (URL): https://uswoo.mystagingwebsite.com
WC Version: 6.2.0
REST API Version: ✔ 6.2.0
WC Blocks Version: ✔ 6.7.3
Action Scheduler Version: ✔ 3.4.0
WC Admin Version: ✔ 3.1.0
Log Directory Writable: ✔
WP Version: 5.9
WP Multisite: –
WP Memory Limit: 512 MB
WP Debug Mode: –
WP Cron: ✔
Language: en_US
External object cache: ✔

### Server Environment ###

Server Info: nginx
PHP Version: 8.1.2
PHP Post Max Size: 2 GB
PHP Time Limit: 1200
PHP Max Input Vars: 6144
cURL Version: 7.80.0
OpenSSL/1.1.1d

SUHOSIN Installed: –
MySQL Version: 5.5.5-10.4.22-MariaDB-log
Max Upload Size: 2 GB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔

### Database ###

WC Database Version: 6.2.0
WC Database Prefix: wp_
Total Database Size: 5.06MB
Database Data Size: 2.70MB
Database Index Size: 2.36MB
wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_order_itemmeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_actionscheduler_actions: Data: 0.13MB + Index: 0.14MB + Engine InnoDB
wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_actionscheduler_logs: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_comments: Data: 0.05MB + Index: 0.09MB + Engine InnoDB
wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_options: Data: 0.30MB + Index: 0.06MB + Engine InnoDB
wp_postmeta: Data: 0.47MB + Index: 0.44MB + Engine InnoDB
wp_posts: Data: 0.09MB + Index: 0.06MB + Engine InnoDB
wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_usermeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_bookings_availability: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_bookings_availabilitymeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_booking_relationships: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_deposits_payment_plans: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wc_deposits_payment_plans_schedule: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_order_bundle_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_bundled_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_bundled_items: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_prl_deploymentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_woocommerce_prl_deployments: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_woocommerce_prl_frequencies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_woocommerce_prl_tracking_clicks: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_woocommerce_prl_tracking_conversions: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_woocommerce_prl_tracking_views: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_wpml_mails: Data: 0.44MB + Index: 0.00MB + Engine InnoDB

### Post Type Counts ###

attachment: 26
customize_changeset: 2
nav_menu_item: 4
page: 7
post: 1
prl_engine: 2
product: 45
product_variation: 37
revision: 1
shop_order: 16
shop_subscription: 2

### Security ###

Secure connection (HTTPS): ✔
Hide errors from visitors: ✔

### Active Plugins (8) ###

Akismet Anti-Spam: by Automattic – 4.2.2
WooCommerce Payments: by Automattic – 3.7.0
WooCommerce PayPal Payments: by WooCommerce – 1.6.5
WooCommerce Product Add-ons: by WooCommerce – 4.6.0
WooCommerce: by Automattic – 6.2.0
WooCommerce USPS Shipping: by WooCommerce – 4.4.69
WP Mail Logging: by Wysija – 1.10.2

### Inactive Plugins (14) ###

Jetpack: by Automattic – 10.7-a.3
WooCommerce All Products For Subscriptions: by WooCommerce – 3.2.0
WooCommerce AvaTax: by SkyVerge – 1.16.0
WooCommerce Bookings: by WooCommerce – 1.15.50 (update to version 1.15.52 is available)
WooCommerce Checkout Field Editor: by WooCommerce – 1.7.0 (update to version 1.7.1 is available)
WooCommerce Deposits: by WooCommerce – 1.5.8
WooCommerce Google Analytics Integration: by WooCommerce – 1.5.7
WooCommerce Measurement Price Calculator: by SkyVerge – 3.20.1
WooCommerce Min/Max Quantities: by WooCommerce – 2.4.24
WooCommerce Product Bundles: by WooCommerce – 6.14.0
WooCommerce Product Recommendations: by WooCommerce – 1.4.15
WooCommerce Shipping & Tax: by WooCommerce – 1.25.20 (update to version 1.25.23 is available)
WooCommerce Subscriptions: by WooCommerce – 4.0.1 (update to version 4.0.2 is available)
WooCommerce UPS Shipping: by WooCommerce – 3.2.37

### Dropin Plugins (2) ###

advanced-cache.php: advanced-cache.php
object-cache.php: Memcached

### Settings ###

API Enabled: –
Force SSL: –
Currency: USD ($)
Currency Position: left
Thousand Separator: ,
Decimal Separator: .
Number of Decimals: 2
Taxonomies: Product Types: booking (booking)
bundle (bundle)
external (external)
grouped (grouped)
simple (simple)
subscription (subscription)
variable (variable)
variable subscription (variable-subscription)

Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
exclude-from-search (exclude-from-search)
featured (featured)
outofstock (outofstock)
rated-1 (rated-1)
rated-2 (rated-2)
rated-3 (rated-3)
rated-4 (rated-4)
rated-5 (rated-5)

Connected to WooCommerce.com: ✔

### WC Pages ###

Shop base: #5 - /
Cart: #6 - /cart/
Checkout: #7 - /checkout/
My account: #8 - /my-account/
Terms and conditions: ❌ Page not set

### Theme ###

Name: Storefront
Version: 3.9.1
Author URL: https://woocommerce.com/
Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
WooCommerce Support: ✔

### Templates ###

Overrides: –

### Subscriptions ###

WCS_DEBUG: ✔ No
Subscriptions Mode: ✔ Live
Subscriptions Live URL: https://uswoo.mystagingwebsite.com
Subscription Statuses: wc-active: 2
WooCommerce Account Connected: ✔ Yes
Active Product Key: ❌ No
Report Cache Enabled: ✔ Yes
Cache Update Failures: ✔ 0 failure

### Store Setup ###

Country / State: United States (US) — New York

### Subscriptions by Payment Gateway ###

WooCommerce Payments: wc-active: 2

### Payment Gateway Support ###

WooCommerce Payments: products
refunds
subscriptions
subscription_cancellation
subscription_suspension
subscription_reactivation
subscription_amount_changes
subscription_date_changes
subscription_payment_method_change
subscription_payment_method_change_customer
subscription_payment_method_change_admin
multiple_subscriptions
tokenization
add_payment_method

PayPal: refunds
PayPal Card Processing: refunds

### WooCommerce PayPal Payments ###

Onboarded: ✔
Shop country code: US
WooCommerce currency supported: ✔
PayPal card processing available in country: ✔
Pay Later messaging available in country: ✔
Webhook status: –
Vault enabled: ✔
Logging enabled: ✔
Reference Transactions: ✔
Used PayPal Checkout plugin: –

### WooCommerce Payments ###

Version: 3.7.0
Connected to WPCOM: Yes
Blog ID: 170484097
Account ID: acct_1KKMIB2EexrQJOJh

### Action Scheduler ###

Complete: 312
Oldest: 2022-01-21 12:17:19 +0000
Newest: 2022-02-15 07:28:58 +0000

Pending: 5
Oldest: 2022-02-15 09:28:58 +0000
Newest: 2022-05-09 04:13:48 +0000

### Status report information ###

Generated at: 2022-02-15 07:34:49 +00:00

UserIsBanned commented 2 years ago

I am experiencing this problem as well. I use Product Add-ons extensively so when an order comes through PayPal without any of the add ons listed it is very troublesome.

Is there any movement towards a solution?

AashikP commented 2 years ago

Another report in 5337122-zen

Mxchael commented 2 years ago

Another report 5597437-zen

jiangxi-xi commented 1 year ago

any solution?

fernmed commented 1 year ago

Another report 16476218-hc

InpsydeNiklas commented 1 year ago

There is no timeline yet to add support for product add-ons from the single product page. For now, the PayPal buttons could only be disabled with a custom filter for single product pages that use product add-ons: https://github.com/woocommerce/woocommerce-paypal-payments/wiki/Actions-and-Filters#disable-smart-buttons-on-the-single-product-page-for-specific-products

sverleis commented 1 year ago

Reported in 6244865-zen

Krptz commented 1 year ago

Reported in 6756767-zen