Widget botón “agregar al carrito” no funciona
-
Hola comunidad y gracias de antemano por la ayuda.
Estoy teniendo un problema con mi ecommerce y es que el botón “añadir al carrito” dentro de la página de producto no funciona, al hacer click solo refresca la página.
Al entrar en la zona de gestión de woocommerce me salta este mensaje:
https://prnt.sc/y3ltfzSnpsru pero tengo actualizado todos los plugins y tema al día.¿Alguna idea de por dónde puede ir la cosa?
Adjunto también el estado de sistema extraido desde woocommerce de mi web:
### WordPress Environment ### WordPress address (URL): https://ernestozia.com Site address (URL): https://ernestozia.com WC Version: 6.4.1 REST API Version: ✔ 6.4.1 WC Blocks Version: ✔ 7.2.2 Action Scheduler Version: ✔ 3.4.0 WC Admin Version: ✔ 3.3.2 Log Directory Writable: ✔ WP Version: 5.9.3 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: – Language: es_ES External object cache: – ### Server Environment ### Server Info: nginx/1.20.2 PHP Version: 7.4.29 PHP Post Max Size: 80 MB PHP Time Limit: 300 PHP Max Input Vars: 1000 cURL Version: 7.52.1 OpenSSL/1.0.2u SUHOSIN Installed: – MySQL Version: 5.5.5-10.1.48-MariaDB-0+deb9u1 Max Upload Size: 80 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ❌ wp_remote_get() falló. Contacta con to proveedor de alojamiento. ### Database ### WC Database Version: 6.4.1 WC Database Prefix: j4N2d_ Tamaño total de la base de datos: 27.63MB Tamaño de los datos de la base de datos: 20.70MB Tamaño del índice de la base de datos: 6.93MB j4N2d_woocommerce_sessions: Datos: 1.02MB + Índice: 0.02MB + Motor InnoDB j4N2d_woocommerce_api_keys: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB j4N2d_woocommerce_attribute_taxonomies: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB j4N2d_woocommerce_downloadable_product_permissions: Datos: 0.02MB + Índice: 0.06MB + Motor InnoDB j4N2d_woocommerce_order_items: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB j4N2d_woocommerce_order_itemmeta: Datos: 0.11MB + Índice: 0.13MB + Motor InnoDB j4N2d_woocommerce_tax_rates: Datos: 0.02MB + Índice: 0.06MB + Motor InnoDB j4N2d_woocommerce_tax_rate_locations: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB j4N2d_woocommerce_shipping_zones: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB j4N2d_woocommerce_shipping_zone_locations: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB j4N2d_woocommerce_shipping_zone_methods: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB j4N2d_woocommerce_payment_tokens: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB j4N2d_woocommerce_payment_tokenmeta: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB j4N2d_woocommerce_log: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB j4N2d_actionscheduler_actions: Datos: 0.09MB + Índice: 0.13MB + Motor InnoDB j4N2d_actionscheduler_claims: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB j4N2d_actionscheduler_groups: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB j4N2d_actionscheduler_logs: Datos: 0.08MB + Índice: 0.03MB + Motor InnoDB j4N2d_commentmeta: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB j4N2d_comments: Datos: 0.05MB + Índice: 0.09MB + Motor InnoDB j4N2d_links: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB j4N2d_options: Datos: 8.22MB + Índice: 0.22MB + Motor InnoDB j4N2d_postmeta: Datos: 3.48MB + Índice: 4.03MB + Motor InnoDB j4N2d_posts: Datos: 4.14MB + Índice: 0.30MB + Motor InnoDB j4N2d_revslider_css: Datos: 0.13MB + Índice: 0.02MB + Motor InnoDB j4N2d_revslider_css_bkp: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB j4N2d_revslider_layer_animations: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB j4N2d_revslider_layer_animations_bkp: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB j4N2d_revslider_navigations: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB j4N2d_revslider_navigations_bkp: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB j4N2d_revslider_sliders: Datos: 0.05MB + Índice: 0.02MB + Motor InnoDB j4N2d_revslider_sliders_bkp: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB j4N2d_revslider_slides: Datos: 0.14MB + Índice: 0.02MB + Motor InnoDB j4N2d_revslider_slides_bkp: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB j4N2d_revslider_static_slides: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB j4N2d_revslider_static_slides_bkp: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB j4N2d_termmeta: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB j4N2d_terms: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB j4N2d_term_relationships: Datos: 0.14MB + Índice: 0.09MB + Motor InnoDB j4N2d_term_taxonomy: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB j4N2d_tinvwl_analytics: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB j4N2d_tinvwl_items: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB j4N2d_tinvwl_lists: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB j4N2d_usermeta: Datos: 0.03MB + Índice: 0.03MB + Motor InnoDB j4N2d_users: Datos: 0.02MB + Índice: 0.05MB + Motor InnoDB j4N2d_wcpdf_invoice_number: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB j4N2d_wcpdf_packing_slip_number: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB j4N2d_wc_admin_notes: Datos: 0.06MB + Índice: 0.00MB + Motor InnoDB j4N2d_wc_admin_note_actions: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB j4N2d_wc_category_lookup: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB j4N2d_wc_customer_lookup: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB j4N2d_wc_download_log: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB j4N2d_wc_order_coupon_lookup: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB j4N2d_wc_order_product_lookup: Datos: 0.02MB + Índice: 0.06MB + Motor InnoDB j4N2d_wc_order_stats: Datos: 0.02MB + Índice: 0.05MB + Motor InnoDB j4N2d_wc_order_tax_lookup: Datos: 0.02MB + Índice: 0.03MB + Motor InnoDB j4N2d_wc_product_attributes_lookup: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB j4N2d_wc_product_meta_lookup: Datos: 0.08MB + Índice: 0.13MB + Motor InnoDB j4N2d_wc_rate_limits: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB j4N2d_wc_reserved_stock: Datos: 0.02MB + Índice: 0.00MB + Motor InnoDB j4N2d_wc_tax_rate_classes: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB j4N2d_wc_webhooks: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB j4N2d_wpml_mails: Datos: 0.06MB + Índice: 0.00MB + Motor InnoDB j4N2d_yoast_indexable: Datos: 1.50MB + Índice: 0.48MB + Motor InnoDB j4N2d_yoast_indexable_hierarchy: Datos: 0.06MB + Índice: 0.05MB + Motor InnoDB j4N2d_yoast_migrations: Datos: 0.02MB + Índice: 0.02MB + Motor InnoDB j4N2d_yoast_primary_term: Datos: 0.05MB + Índice: 0.03MB + Motor InnoDB j4N2d_yoast_seo_links: Datos: 0.17MB + Índice: 0.17MB + Motor InnoDB j4N2d_yoast_seo_meta: Datos: 0.08MB + Índice: 0.00MB + Motor InnoDB ### Post Type Counts ### attachment: 607 customize_changeset: 2 dt_testimonials: 3 nav_menu_item: 90 page: 24 post: 16 product: 351 product_variation: 192 revision: 331 shop_order: 83 wpcf7_contact_form: 1 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (22) ### Ultimate Addons for WPBakery Page Builder: por Brainstorm Force – 3.19.11 Akismet Anti-Spam: por Automattic – 4.2.3 Asesor de Cookies RGPD: por Carlos Doral Pérez – 0.31 Contact Form 7: por Takayuki Miyoshi – 5.5.6 The7 Elementos: por Dream-Theme – 2.5.8 Yoast Duplicate Post: por Enrico Battocchi & Team Yoast – 4.4 Easy Google Fonts: por Titanium Themes – 2.0.4 GA Google Analytics: por Jeff Starr – 20220124 Jetpack: por Automattic – 10.8 WPBakery Page Builder: por Michael M - WPBakery.com – 6.8.0 Really Simple SSL: por Really Simple Plugins – 5.3.1 Redsys WooCommerce: por Redsys – 3.0.1 Slider Revolution: por ThemePunch – 6.5.19 Simple Custom CSS: por John Regan – 4.0.5 TI WooCommerce Wishlist: por TemplateInvaders – 1.44.0 WooCommerce Admin: por WooCommerce – 3.3.2 WooCommerce PDF Invoices & Packing Slips: por WP Overnight – 2.14.4 WooCommerce: por Automattic – 6.4.1 Yoast SEO: por Equipo Yoast – 18.6 WP Fastest Cache: por Emre Vona – 1.0.0 WP Mail Logging: por Wysija – 1.10.4 Perfect Images (Retina, Thumbnails, Replace): por Jordy Meow – 6.2.4 ### Inactive Plugins (0) ### ### Settings ### API Enabled: – Force SSL: – Currency: EUR (€) Currency Position: right Thousand Separator: . Decimal Separator: , Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) 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 ### Base de la tienda: #375 - /productos/ Carrito: #376 - /productos/carrito/ Finalizar compra: #377 - /productos/checkout/ Mi cuenta: ❌ La página no contiene el shortcode [woocommerce_my_account]. Términos y condiciones: #3 - /terminos-condiciones/ ### Theme ### Name: The7 Version: 10.7.1 Author URL: http://dream-theme.com/ Child Theme: ❌ – Si estás modificando WooCommerce en un tema padre que no has creado personalmente te recomendamos utilizar un tema hijo. Ver: Cómo crear un tema hijo WooCommerce Support: ✔ ### Templates ### Overrides: dt-the7/woocommerce/cart/cart.php dt-the7/woocommerce/cart/cross-sells.php dt-the7/woocommerce/cart/mini-cart.php dt-the7/woocommerce/checkout/form-billing.php dt-the7/woocommerce/checkout/form-checkout.php dt-the7/woocommerce/checkout/form-coupon.php dt-the7/woocommerce/checkout/form-login.php dt-the7/woocommerce/checkout/form-shipping.php dt-the7/woocommerce/checkout/review-order.php dt-the7/woocommerce/checkout/thankyou.php dt-the7/woocommerce/content-product.php dt-the7/woocommerce/content-widget-product.php dt-the7/woocommerce/content-widget-reviews.php dt-the7/woocommerce/global/breadcrumb.php dt-the7/woocommerce/global/form-login.php dt-the7/woocommerce/global/quantity-input.php dt-the7/woocommerce/loop/loop-end.php dt-the7/woocommerce/loop/loop-start.php dt-the7/woocommerce/loop/pagination.php dt-the7/woocommerce/myaccount/form-login.php dt-the7/woocommerce/notices/error.php dt-the7/woocommerce/notices/notice.php dt-the7/woocommerce/notices/success.php dt-the7/woocommerce/order/order-details-customer.php dt-the7/woocommerce/order/order-details.php dt-the7/woocommerce/single-product/meta.php dt-the7/woocommerce/single-product/price.php dt-the7/woocommerce/single-product/related.php dt-the7/woocommerce/single-product/up-sells.php dt-the7/woocommerce/content-product_cat.php ### Plantillas de TI WooCommerce Wishlist ### Anulaciones: – ### Action Scheduler ### Completo: 218 Oldest: 2022-03-31 12:17:13 +0200 Newest: 2022-04-30 01:47:03 +0200 ### Status report information ### Generated at: 2022-05-01 12:05:39 +02:00
The page I need help with: [log in to see the link]
-
Hi @danielbriwt!
I’m answering in English since it is the supported language of the forums.
Reading your case makes me think that it could be related to a conflict between WooCommerce and your theme or another plugin; an outdated or malfunctioning code could be interfering.
To be sure of this, please perform a conflict test by temporarily switching your theme back to Storefront, disabling all plugins except WooCommerce, and then check again if the issue persists.
If that solves it, reactivate the theme first and check again. Then, reactivate your other plugins, testing after each, until you find the one causing conflict.
If you cannot perform a conflict test on your live site, we recommend creating a staging site using the WP Staging plugin.
You can find a more detailed explanation of how to do a conflict test here: https://docs.woocommerce.com/document/how-to-test-for-conflicts/.
Let us know how that goes for you!
Thanks a lot for your answer. Unluckily, I’ve made all these steps and the problem persists, once I click on the button, with the Storefront theme activated, and all the plugins except Woocommerce, the product doesn’t add to the cart, only the page refreshes and nothing else happens…
¿Any other idea what can be happening?
Thank you.
Hello @danielbriwt!
From your system status report, I see you have a warning.
Remote Get: ❌ wp_remote_get() falló. Contacta con to proveedor de alojamiento.
This issue can be fixed by clearing transients from the “WooCommerce -> Status -> Tools” area. Can you please do that?
If the above doesn’t work then please share your WooCommerce error logs with us.
Error Log can be found under WooCommerce > System Status > Logs (if available).
Thanks for your response, I’ve cleared transients and the problem persists.
In the error logs there are a lot of tabs: https://prnt.sc/MI1ki2rquiwL and https://prnt.sc/CDhESagb0x5V
Here is what it gives me in the first one, for example: https://prnt.sc/J3nypuW1c4C4
Also, there is this message about a critical vulnerability https://prnt.sc/bNHtRJZyN3No but it looks like only affects websites running woocommerce 3.3 to 5.5, and I am running woocommerce 6.4.1
Let me know if you need any extra information, and thanks again for your help.
Also, there are a lot of notifications on the widgets section https://prnt.sc/ZNtjdWB2OHmZ
Hi @danielbriwt,
Here is what it gives me in the first one, for example
I’ve checked your SSL Certificate using an online tool and it’s installed correctly (https://snipboard.io/2cFy8R.jpg). So that shouldn’t be the issue.
Can you dismiss the critical vulnerability notice? That patch was for WooCommerce versions up to 5.5 and it shouldn’t affect you as you’re running version 6.4.1.
WP Cron: –
WordPress Cron is not enabled on your server. Can you check with your host if they can take a look and activate Cron?
Since there is a newer version of WooCommerce core you could also update to 6.5.0 and consequently run a database update to match the same version. It’s best to try updating on a staging environment first so it doesn’t affect your live site if you run into issues.
Many hosts provide staging facilities, so it’s worth checking in with them. It’s also possible to do it using the free WP Staging plugin. Link: https://wordpress.org/plugins/wp-staging/.
Let us know how it goes.
Hi there,
We’ve not heard back from you in a while so I’ll go ahead and mark this thread as resolved. Hopefully, you were able to find a solution to this issue.
If you have further questions, please feel free to open a new topic.
Thanks.
- The topic ‘Widget botón “agregar al carrito” no funciona’ is closed to new replies.