checkout

Paypal Express Checkout insists on phone number even though option turned off (calling from Magento)

两盒软妹~` 提交于 2019-12-09 18:10:54
问题 I'm using the Paypal 'Express Checkout' option in Magento. (I'm not using any express checkout buttons, it's just because I was having problem with returning from Website Payments Standard). In Paypal's Website Payment Preferences, I've set the 'Contact Telephone Number' field to off. I've also made a number of changes on the Magento side to make telephone number optional (as per this post). However, the telephone number field still appears during Paypal checkout, and is mandatory. Obviously,

Get billing information in order review section of one page checkout in Magento

左心房为你撑大大i 提交于 2019-12-09 17:59:14
问题 I am trying to display the billing and shipping information in the "Order Review" section of One Page Checkout in Magento 1.7.0. However, it just doesn't want to co-operate at all. I tried several methods mentioned in various forums and in SO as well. But none of these methods seem to work. Here are the ones I have already tried. http://www.magentocommerce.com/boards/viewthread/55281/ http://www.magentocommerce.com/boards/viewthread/55281/ Any help would be greatly appreciated! Thanks in

Add text to order summary based on a custom field value in WooCommerce

让人想犯罪 __ 提交于 2019-12-09 01:38:08
问题 I have added successfully a custom field to my WooCommerce checkout page that is a selector for different stores that the customer can choose to collect their items from. At the moment it is showing this field on the checkout page and I am using jQuery to add information below the selector and updating the shipping cost accordingly. What I need to do next is to add the field + additional info about each pickup location on the customer's order email. so for instance if the customer selects

Adding a custom email recipient depending on selected custom checkout field value

試著忘記壹切 提交于 2019-12-08 15:25:33
I need for Woocommerce to send a custom email to different individuals depending on the option selected for Field Checkout (technically, the custom field is the person reporting on the product variant they have purchased, but I was not sure how to customize email receipt based on product variant purchased, so it is as follows). First I established the custom field using the following code /** * Add the field to the checkout */ add_action( 'woocommerce_after_order_notes', 'my_custom_checkout_field' ); function my_custom_checkout_field( $checkout ) { echo '<div id="my_custom_checkout_field"><h2>

Customize Order received page based on shipping method in WooCommerce

廉价感情. 提交于 2019-12-08 08:39:35
问题 How could I customise the order thank you page based on the order's shipping method? So for example if a customer used 'Delivery on request' option, the thank you page would display a different title. add_filter( 'the_title', 'woo_personalize_order_received_title', 10, 2 ); function woo_personalize_order_received_title( $title, $id ) { if ( is_order_received_page() && get_the_ID() === $id ) { global $wp; // Get the order. Line 9 to 17 are present in order_received() in includes/shortcodes

Send an email notification when a specific coupon code is applied in WooCommerce

泄露秘密 提交于 2019-12-08 08:05:47
问题 I'm looking to setup an affiliate program, starting with the email notifications like when someone applies the coupon code of a an affiliate user. For example: Coupon code "Bob" applied by a customer. An email notification is sent to "bob@gmail.com" (an affiliate) about the coupon code "bob" applied by a customer in cart or checkout, before order is submitted . I have tried to use (without any luck) : $order->get_used_coupons() Then once order is completed, an email notification will be sent

Adding a custom email recipient depending on selected custom checkout field value

被刻印的时光 ゝ 提交于 2019-12-08 05:00:22
问题 I need for Woocommerce to send a custom email to different individuals depending on the option selected for Field Checkout (technically, the custom field is the person reporting on the product variant they have purchased, but I was not sure how to customize email receipt based on product variant purchased, so it is as follows). First I established the custom field using the following code /** * Add the field to the checkout */ add_action( 'woocommerce_after_order_notes', 'my_custom_checkout

Make checkout phone field optional for specific countries in WooCommerce

柔情痞子 提交于 2019-12-08 04:32:33
问题 I have to display phone as required (mandatory) only if a certain country is selected in WooCommerce checkout screen. What is the validation rule to check the selected country in real time? I have tried the following code, which is working for making phone non required: add_filter( 'woocommerce_billing_fields', 'wc_npr_filter_phone', 10, 1 ); function wc_npr_filter_phone( $address_fields ) { $address_fields['billing_phone']['required'] = false; return $address_fields; } 回答1: You mostly need

Adding custom message on Thank You page by shipping method

限于喜欢 提交于 2019-12-08 04:09:19
问题 I'm trying to add a message to the order-received (Thank You) page, only if the order is using Free Shipping. The message can either replace the standard "Thank you..." message, or can be in addition to. Here is the code I'm working with. It's based off of the answer here: Customize Order received page based on shipping method in WooCommerce //add message to order received if outside delivery area add_filter( 'woocommerce_thankyou_order_received_text', 'woo_change_order_received_text', 20, 2

Tiered Shipping with multiple Shipping rates options and prices

两盒软妹~` 提交于 2019-12-08 03:08:28
问题 I recently set up my tiered shipping and I read this tutorial about this, I modified his code to mine like this: add_filter( 'woocommerce_package_rates', 'bbloomer_woocommerce_tiered_shipping', 10, 2 ); function bbloomer_woocommerce_tiered_shipping( $rates, $package ) { $thresholdsmall = 200; $thresholdbig = 899.99; if ( WC()->cart->subtotal < $thresholdsmall ) { if ( isset( $rates['free_shipping:4'] ) ) unset( $rates['free_shipping:18'] ); if ( isset( $rates['free_shipping:14'] ) ) unset(