checkout

Jquery script issue blocking country selection in WooCommerce

空扰寡人 提交于 2020-05-17 05:45:53
问题 I got a kind of strange issue in WooCommerce: I have find out that a Javascript file that is selecting country field from checkout and choosing at the same time some plugin right field. (Like: in checkout billing country is - Switzerland and payment gateway should get billing_country field info and show available payment options by that country). Issue probably has been made by this script (tested it, as soon as .js code deleted - WooCommerce checkout field works perfectly, but then payment

Display a checkbox that add a fee in Woocommerce checkout page

倾然丶 夕夏残阳落幕 提交于 2020-05-15 10:17:37
问题 In Woocommerce checkout page, I'am trying to add a check box on checkout page I have referred to these articles woocommerce custom checkout field to add fee to order ajax Checkbox field that add / remove a custom fee in WooCommerce Add a checkout checkbox field that enable a percentage fee in Woocommerce add_action( 'woocommerce_review_order_before_order_total', 'checkout_shipping_form_packing_addition', 20 ); function checkout_shipping_form_packing_addition( ){ echo '<tr class="packing

Add a dropdown Filter for a custom metakey on WooCommerce admin orders

倾然丶 夕夏残阳落幕 提交于 2020-05-14 01:26:06
问题 I have the below custom metakey which is an optin checkbox during checkout: //1. ADD OPT IN OPTION IN CHECKOUT AND SAVE IN THE ORDER // Add checkbox optin before T&Cs add_action( 'woocommerce_checkout_before_terms_and_conditions', 'marketing_opting_field' ); function marketing_opting_field() { echo '<div id="marketing_opting_field">'; woocommerce_form_field( 'marketing_opting', array( 'type' => 'checkbox', 'class' => array('input-checkbox'), 'label' => __('Yes, sign me up'), 'default' => 1, )

Get the order ID in checkout page before payment process

落爺英雄遲暮 提交于 2020-04-28 08:17:40
问题 In WooCommerce, I need to get order ID right in checkout page of WooCoommerce, before payment, when the order is created. I look at all sessions and tried to find out when order goes for payment in order_awaiting_payment session, but I need it before going for payment. So I think about a solution that is make order when checkout page loaded (In fact make it ready for payment) and when checkout real complete update it. How to get order ID in checkout page before order go for payment in

Get the order ID in checkout page before payment process

瘦欲@ 提交于 2020-04-28 08:17:09
问题 In WooCommerce, I need to get order ID right in checkout page of WooCoommerce, before payment, when the order is created. I look at all sessions and tried to find out when order goes for payment in order_awaiting_payment session, but I need it before going for payment. So I think about a solution that is make order when checkout page loaded (In fact make it ready for payment) and when checkout real complete update it. How to get order ID in checkout page before order go for payment in

Woocommerce: Override login required for existing email. Add order to user account

℡╲_俬逩灬. 提交于 2020-03-21 07:23:28
问题 Woocommerce Settings: Guest checkout disabled. Create account during checkout enabled (user and passowrd auto generated) If user is REGISTERED. But NOT logged in. Checkout errors with "An account is already registered with your email address. Please log in." How do I override this to COMPLETE order, and tie order to existing account. Give a prompt to user to login next time for a faster checkout Can't find any snippet or module that can do it none yet. Happy to reward. 回答1: There is no hook

Disable VAT conditionally for specific product categories on Woocommerce checkout

て烟熏妆下的殇ゞ 提交于 2020-03-20 12:43:12
问题 In woocommerce I am using Timologia for WooCommerce plugin, which checks if user wants invoice or plain receipt (this is required in Greece). So this plugin add a select field in checkout page with "No" (default) or "Yes" as options. If customer select "Yes" then "zero vat" is applied for products in specific categories and everything works fine in the checkout page. But when customer place the order , on the order received page and on backend (order edit page) the specific item prices are

Disable VAT conditionally for specific product categories on Woocommerce checkout

安稳与你 提交于 2020-03-20 12:41:48
问题 In woocommerce I am using Timologia for WooCommerce plugin, which checks if user wants invoice or plain receipt (this is required in Greece). So this plugin add a select field in checkout page with "No" (default) or "Yes" as options. If customer select "Yes" then "zero vat" is applied for products in specific categories and everything works fine in the checkout page. But when customer place the order , on the order received page and on backend (order edit page) the specific item prices are

Woocommerce Checkout page shows Order summary 2 times?

ぃ、小莉子 提交于 2020-03-03 07:02:07
问题 On the checkout page when user checkbox for the shipping details the order summary doubles. I have done many modifications in the in past. So i think i made mistake.On clicking shipping information checkbox. the order summary becomes double. only subtotal, shipping and total. I am providing review-order.php code. I think the problem is in after the end of table tag. <?php /** * Review order table * * This template can be overridden by copying it to yourtheme/woocommerce/checkout/review-order

Minimal symbols amount for data upload in autocomplete

末鹿安然 提交于 2020-02-29 02:04:53
问题 I'm trying to create city autocomplete in checkout, but the problem is that amount of data that being sent is too large. So i was thinking about uploading data only after certain amount of symbols typed in field, lets say 3. But I don't know how to do this using native bindingHandlers. Here is js file: define([ 'Magento_Ui/js/form/element/abstract', 'mage/url', 'ko', 'jquery', 'jquery/ui' ], function (Abstract, url, ko, $) { 'use strict'; ko.bindingHandlers.shippingAutoComplete = { init: