Pregunta sobre WooCommerce de Wordpress:

«Confirme el formulario de reenvío» haciendo clic en «Atrás»

Un usuario preguntó 👇

URL del producto: https://airguntargetsystems.com/product/model-101/

Haga clic en «Agregar al carrito». Ha aparecido un nuevo cartel que confirma que el producto se ha añadido a la carta. Haga clic en «Ver carrito» para ver el carrito.

Ahora, si hace clic en «Atrás», obtendrá una advertencia de «Confirmar redistribución de formulario» (u otra advertencia dependiente del navegador).

Entonces, el botón «Agregar al carrito» es PUBLICAR y cuando hace clic en Atrás, si elige volver a ingresar los datos, agregará otro artículo al carrito.

¿Podemos hacer que woocommerce use algo más, como javascript o ajax para agregar un elemento al gráfico para que no tengamos este problema? Es difícil para mí encontrar a otras personas que se quejan de …

informe de estado completo del sistema:


### WordPress Environment ###

WordPress address (URL): https://airguntargetsystems.com
Site address (URL): https://airguntargetsystems.com
WC Version: 3.9.2
REST API Version: ✔ 1.0.7
Log Directory Writable: ✔
WP Version: 5.3.2
WP Multisite: –
WP Memory Limit: 256 MB
WP Debug Mode: –
WP Cron: ✔
Language: en_US
External object cache: –

### Server Environment ###

Server Info: LiteSpeed
PHP Version: 7.1.33 - We recommend using PHP version 7.2 or above for greater performance and security. How to update your PHP version
PHP Post Max Size: 64 MB
PHP Time Limit: 30
PHP Max Input Vars: 1000
cURL Version: 7.62.0
OpenSSL/1.0.2k

SUHOSIN Installed: –
MySQL Version: 5.5.5-10.0.38-MariaDB-cll-lve
Max Upload Size: 32 MB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔

### Database ###

WC Database Version: 3.9.2
WC Database Prefix: wpv2_
Total Database Size: 9.56MB
Database Data Size: 7.91MB
Database Index Size: 1.65MB
wpv2_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpv2_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpv2_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpv2_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wpv2_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpv2_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpv2_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wpv2_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpv2_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wpv2_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpv2_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wpv2_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpv2_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpv2_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpv2_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpv2_comments: Data: 0.16MB + Index: 0.28MB + Engine InnoDB
wpv2_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpv2_loginizer_logs: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
wpv2_options: Data: 2.05MB + Index: 0.06MB + Engine InnoDB
wpv2_postmeta: Data: 3.48MB + Index: 0.13MB + Engine InnoDB
wpv2_posts: Data: 1.50MB + Index: 0.16MB + Engine InnoDB
wpv2_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpv2_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpv2_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpv2_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpv2_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpv2_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wpv2_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wpv2_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpv2_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wpv2_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpv2_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpv2_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpv2_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wpv2_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wpv2_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wpv2_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
wpv2_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpv2_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpv2_yoast_seo_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wpv2_yoast_seo_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB

### Post Type Counts ###

attachment: 45
custom_css: 1
elementor_library: 2
nav_menu_item: 3
page: 8
post: 1
product: 7
revision: 68
scheduled-action: 329
tablepress_table: 1
wpcf7_contact_form: 1

### Security ###

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

### Active Plugins (16) ###

ManageWP - Worker: by GoDaddy – 4.9.3
Contact Form 7: by Takayuki Miyoshi – 5.1.6
Duplicate Page: by mndpsingh287 – 4.1
Elementor: by Elementor.com – 2.9.2
ELEX Hide WooCommerce Shipping Methods (BASIC): by ELEXtensions – 1.0.3 – Not tested with the active version of WooCommerce
Flexible Shipping For FedEx: by WP Desk – 1.4
Insert Headers and Footers: by WPBeginner – 1.4.4
Loginizer: by Raj Kothari – 1.4.3
TablePress: by Tobias Bäthge – 1.10
UpdraftPlus - Backup/Restore: by UpdraftPlus.Com
DavidAnderson – 1.16.21

WooCommerce Admin: by WooCommerce – 0.25.1
WooCommerce Stripe Gateway: by WooCommerce – 4.3.2
WooCommerce Services: by Automattic – 1.22.3
WooCommerce: by Automattic – 3.9.2
Yoast SEO: by Team Yoast – 13.1
WPS Hide Login: by WPServeur
NicolasKulka
tabrisrp – 1.5.5

### Inactive Plugins (3) ###

Akismet Anti-Spam: by Automattic – 4.1.3
Jetpack by WordPress.com: by Automattic – 8.2.2
Password Protected: by Ben Huson – 2.2.5

### Must Use Plugins (1) ###

ManageWP - Worker Loader: by GoDaddy –

### Settings ###

API Enabled: –
Force SSL: –
Currency: USD ($)
Currency Position: left
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 ###

Shop base: #170 - /shop/
Cart: #171 - /cart/
Checkout: #172 - /checkout/
My account: #173 - /my-account/
Terms and conditions: ❌ Page not set

### Theme ###

Name: Adventure Lite
Version: 1.9
Author URL: https://www.sktthemes.org
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 ###

Archive Template: Your theme has a woocommerce.php file
you will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues.

Overrides: –

### Action Scheduler ###

Complete: 328
Oldest: 2020-01-21 03:48:49 +0000
Newest: 2020-02-21 00:17:55 +0000

Pending: 1
Oldest: 2020-02-21 01:17:55 +0000
Newest: 2020-02-21 01:17:55 +0000

Canceled: 0
Oldest: –
Newest: –

In-progress: 0
Oldest: –
Newest: –

Failed: 0
Oldest: –
Newest: –

(@kellymetal)

Hace 11 meses, 1 semana

Hola,

Entiendo que desea utilizar AJAX para agregar productos al carrito para evitar el mensaje cuando hace clic en atrás desde la página del carrito.

Existe una disposición para usar AJAX para los botones Agregar al carrito en las páginas de archivo a continuación WooCommerce> Configuración> Productos> General. Después de habilitar esta configuración, AJAX se utilizará para agregar productos a la tabla de tienda / archivo:

Enlace a la imagen: https://d.pr/i/HEXsfa

Para las páginas de productos individuales, esto requeriría cierta personalización. Hay varias instrucciones en línea para realizar los cambios necesarios:

https://elartica.com/2017/08/03/woocommerce-ajax-add-cart-single-product-page/
https://diviengine.com/woocommerce-add-cart-ajax-single-variable-products-improve-ux/
https://wppatrickk.com/woocommerce-add-cart-ajax-single-product-page/

Si necesita ayuda con la codificación o el desarrollo personalizados, le recomendamos que se comunique con un desarrollador de uno de los servicios en https://woocommerce.com/customizations/.

¡Espero que eso ayude! ¡Qué tengas un lindo día!

Lanzador de hilos

(@Gran Scott)

hace 11 meses

@kellymetal ¡Muchas gracias! Ya marcamos «Habilitar AJAX», pero marqué «Redirigir a la página del carrito» y ahora funciona bien. Después de agregar el gráfico, se le dirige a la página del gráfico y, si hace clic en Atrás, vuelve a la página del producto. ¡Funciona según lo planeado!

Scott

¿Solucionó tu problema??

0 / 0

Deja una respuesta 0

Tu dirección de correo electrónico no será publicada.