Please note that you need to be on the Polish version of the site.
Thank you for your help in solving the problem.
What I can see from browser console is:
jquery.min.js:2 jQuery.Deferred exception: Cannot read properties of undefined (reading 'mount') TypeError: Cannot read properties of undefined (reading 'mount')
at Object.showPaymentRequestButton (https://buddies-mtb.com/wp-content/plugins/woocommerce-gateway-stripe/assets/js/stripe-payment-request.min.js:1:13991)
at https://buddies-mtb.com/wp-content/plugins/woocommerce-gateway-stripe/assets/js/stripe-payment-request.min.js:1:12334
at e (https://buddies-mtb.com/wp-includes/js/jquery/jquery.min.js:2:27028)
at t (https://buddies-mtb.com/wp-includes/js/jquery/jquery.min.js:2:27330) undefined
]]>Since that didn’t work, I went into the main “buttons” block for the theme I’m using and changed *that* to black and white, but still the issue remains.
It looks like the product isn’t available with this color scheme, so help is appreciated! No one wants to click a gray button.
Note: Please don’t order anything from the page because it’s not ready yet.
]]>I have a client site where they want the “Add to Cart” changed to “Add to Order”.
I have found some code via google that works well BUT there is a little issue. It also changes the Variable product buttons, where it used to say “Choose Options” and now says “Add to Order” on the Shop page which I don’t want to happen. Customers still need to see the “Choose OPtions” button before clicking on to choose their options in that product.
So the code nearly works right except for that bit.
Any ideas or code that other people have used that WON’T affect the “Choose Options” buttons.
I found it from this site https://www.businessbloomer.com/woocommerce-rename-add-to-cart-button-label/
/**
* @snippet Change "Add to cart" Button Label @ Woo Shop / Single
* @tutorial Get CustomizeWoo.com FREE
* @author Rodolfo Melogli
* @compatible WooCommerce 8
* @community Join https://businessbloomer.com/club/
*/
add_filter(
'woocommerce_product_single_add_to_cart_text'
,
'bbloomer_custom_add_cart_button'
, 9999 );
add_filter(
'woocommerce_product_add_to_cart_text'
,
'bbloomer_custom_add_cart_button'
, 9999 );
function
bbloomer_custom_add_cart_button() {
return
'Buy Now!'
;
}
THanks in advance
]]>Hey there,
I asked my hosting provider to help but they sent me here, so I hope you can take a look!
My website josnierop.nl is reasonably fast (not on mobile unfortunately, I’ll have to look into that).
There’s one problem: the add to cart woocommerce button is very slow, on this page:?https://www.josnierop.nl/product/online-cursus/
There are a few errors but I don’t know how to fix it. One customer already reported this problem 🙁
My hosting provider gave the following information:
– It’s an error in the file “wc-cart-functions.php”, line 185
– This line leads to a PHP warning:?if ( WC()->session->order_awaiting_payment > 0 ) {
– This is a line from the error log:
[Tue Mar 12 16:44:32.327927 2024] [lsapi:warn] [pid 455836:tid 139988528150272] [client 172.71.154.234:28122] [host?https://www.josnierop.nl]?Backend log: PHP Warning: Attempt to read property “order_awaiting_payment” on null in /home/u16265p11915/domains/josnierop.nl/public_html/wp-content/plugins/woocommerce/includes/wc-cart-functions.php on line 185\n, referer:?https://www.josnierop.nl/ontwikkelomgeving/maatschappelijke-oorzaken-depressie-burn-out/
“ontwikkelingomgeving” means “staging website”, which I deleted last week.
– browser console errors:?https://media.zxcs.nl/i/8kNLL5YB
You might be able to tell me how to fix this issue? Thank you so much!
Kind regards,
Jos
P.S. I'm using Redis cache and Cloudflare but as far as I can tell all my optimisation plugins actually speed up my site, so there is a specific issue with the add to cart button. I already found a 'solution' on the internet to increase memory limit, but that didn't do anything.
P.P.S. I'm not a developer/expert.
]]>