Hop til top a side, efter klik på "Godkend og betal" knappe. (Woocommerce)
Hej Alle
Jeg har prøvet mange plugins til mit WooCommerce når det gælder checkout. Desværre må jeg forholde mig til mit standarde grundet e-mærke ansøgning.
Problemet er... Når en kunde har klikket på købs knappen, kører der et "hjul" rundt oppe i toppen af siden. Men det er udmiddelbart ikke noget man kan se, medmindre man har en rigtig høj opløsning på skærmen.
Nedenstående kode er fra WooCommerce checkout. Kan man gøre noget med form knappen, så man automatisk ryger til tops efter klik?
<div id="payment" class="woocommerce-checkout-payment"> <?php if ( WC()->cart->needs_payment() ) : ?> <ul class="payment_methods methods"> <?php if ( ! empty( $available_gateways ) ) { foreach ( $available_gateways as $gateway ) { wc_get_template( 'checkout/payment-method.php', array( 'gateway' => $gateway ) ); } } else { if ( ! WC()->customer->get_country() ) { $no_gateways_message = __( 'Please fill in your details above to see available payment methods.', 'woocommerce' ); } else { $no_gateways_message = __( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ); }
<noscript><?php _e( 'Since your browser does not support JavaScript, or it is disabled, please ensure you click the <em>Update Totals</em> button before placing your order. You may be charged more than the amount stated above if you fail to do so.', 'woocommerce' ); ?><br/><input type="submit" class="button alt" name="woocommerce_checkout_update_totals" value="<?php esc_attr_e( 'Update totals', 'woocommerce' ); ?>" /></noscript>
<div id="payment" class="woocommerce-checkout-payment"> <?php if ( WC()->cart->needs_payment() ) : ?> <ul class="payment_methods methods"> <?php if ( ! empty( $available_gateways ) ) { foreach ( $available_gateways as $gateway ) { wc_get_template( 'checkout/payment-method.php', array( 'gateway' => $gateway ) ); } } else { if ( ! WC()->customer->get_country() ) { $no_gateways_message = __( 'Please fill in your details above to see available payment methods.', 'woocommerce' ); } else { $no_gateways_message = __( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ); }
<noscript><?php _e( 'Since your browser does not support JavaScript, or it is disabled, please ensure you click the <em>Update Totals</em> button before placing your order. You may be charged more than the amount stated above if you fail to do so.', 'woocommerce' ); ?><br/><input type="submit" class="button alt" name="woocommerce_checkout_update_totals" value="<?php esc_attr_e( 'Update totals', 'woocommerce' ); ?>" /></noscript>
<div id="payment" class="woocommerce-checkout-payment"> <?php if ( WC()->cart->needs_payment() ) : ?> <ul class="payment_methods methods"> <?php if ( ! empty( $available_gateways ) ) { foreach ( $available_gateways as $gateway ) { wc_get_template( 'checkout/payment-method.php', array( 'gateway' => $gateway ) ); } } else { if ( ! WC()->customer->get_country() ) { $no_gateways_message = __( 'Please fill in your details above to see available payment methods.', 'woocommerce' ); } else { $no_gateways_message = __( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ); }
<noscript><?php _e( 'Since your browser does not support JavaScript, or it is disabled, please ensure you click the <em>Update Totals</em> button before placing your order. You may be charged more than the amount stated above if you fail to do so.', 'woocommerce' ); ?><br/><input type="submit" class="button alt" name="woocommerce_checkout_update_totals" value="<?php esc_attr_e( 'Update totals', 'woocommerce' ); ?>" /></noscript>
Du kan prøve et køb, men! Vigtigt: :) Vælg det første Puro Macbook cover på forsiden og benyt bank-overførsel ved betaling. Vælg ikke noget andet, det går nemlig automatisk videre i systemet.
Så sletter jeg ordre når du har prøvet. Bare lige skriv det til mig her, eller benyt kontakt-siden.
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.