"Add to Cart" button disappears

Created on 12 February 2023, over 1 year ago
Updated 14 February 2023, over 1 year ago

Problem/Motivation

I´m running the latest D9.x and Commerce versions on a multilingual (english, german) site, no base theme and the "Add to cart" button disappeared when I´m logged in as user-1. When i view the product page as guest the button appears, but when i press it one time the product get added to the cart but then the button disappeared also and you were not able to add more products. i tested it with olivero and claro as base themes because i thought maybe it is my template but that didn´t work too.

Then i tried to remove the Paypal Checkout Sandbox Payment Gateway, added the example commerce payment gateway and the button appeared again. After that i added Paypal Checkout Sandbox Payment Gateway again and the button is still there. The only little bug is that the cursor doesn´t change from arrow to a hand when you are over the button.

It seems that this bug came up with one of the latest or the latest update because on my only german website, which has the same configuration and everything, i got the same issue

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: cannot reproduce

Version

1.0

Component

PayPal Checkout

Created by

🇦🇹Austria gr4phic3r

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @gr4phic3r
  • Status changed to Closed: cannot reproduce over 1 year ago
  • 🇮🇱Israel jsacksick

    The PayPal module only alters the add to cart form for adding the "Credit messaging" div. There's no code in PayPal disabling the add to cart form.

    You probably have custom/contrib code interfering, but I can guarantee you PayPal isn't disabling the add to cart button.

  • 🇦🇹Austria gr4phic3r

    hi jsacksick,

    i disabled "Enable PayPal Credit messaging on Add to Cart forms." on the Paypal Credit messaging page and the button appears now again.
    there is no custom code, because i cannot code :) - frontend dev here

Production build 0.69.0 2024