checkout

Display custom checkout field value in Woocommerce admin order edit pages

丶灬走出姿态 提交于 2019-12-07 23:14:28
问题 I have the function in functions.php: // Hook in add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' ); // Our hooked in function - $fields is passed via the filter! function custom_override_checkout_fields( $fields ) { $fields['billing']['billing_infos'] = array( 'type' => 'textarea', 'label' => __('Podaj NIP', 'woocommerce'), 'placeholder' => _x('Tutaj możesz wpisać NIP', 'placeholder', 'woocommerce'), 'required' => false, 'class' => array('form-row-wide'), 'clear'

Easy start with BlueSnap hosted payment fields;

≡放荡痞女 提交于 2019-12-07 06:49:31
问题 Hi – I'm looking for a simple script I can Copy&Paste into my website so I can start selling with BlueSnap's HPF fields. The form should include the most basic elements needed to get the token back and charge the shopper, I'm not looking for any design, just functionality. I have the basics - but I need to see how this would look like if it was done: <form id="checkoutForm"> <div> <label>Full Name:</label> <input type="text" id="fullName"> </div> <div> <label>Card Number:</label> <input type=

Cannot checkout from svn: Cannot run program "svn"

大兔子大兔子 提交于 2019-12-06 19:13:49
IntelliJ IDEA 13.1.2安装后,SVN checkout时候会出现如下错误: Cannot load supported formats: Cannot run program "svn": CreateProcess error=2, μ 究其原因,是SVN使用了命令行工具,如果本地没有SVN的命令行工具,则导致出错。 解决办法: 1、安装客户端 http://ncu.dl.sourceforge.net/project/tortoisesvn/1.8.7/Application/TortoiseSVN-1.8.7.25475-x64-svn-1.8.9.msi http://jaist.dl.sourceforge.net/project/tortoisesvn/1.8.7/Language%20Packs/LanguagePack_1.8.7.25475-x64-zh_CN.msi 注意:安装时候必须选中command line 。。。这个选项。 2、完成后配置IDEA 这样,问题彻底解决! 来源: oschina 链接: https://my.oschina.net/u/1157906/blog/284013

Magento onepage checkout steps not expanding

心不动则不痛 提交于 2019-12-06 18:24:25
I am having some sort of javascript or jquery conflict with my onepage checkout. None of the steps are expanding. Please have a look at my site here http://50.87.6.244/~storeupp/index.php/checkout/onepage/ . Any help to what is causing this issue would be great! I don't know where to start on how to debug the script issue. Thanks! My hunch is this is indeed a jquery - prototype conflict, just try using jquery.noConflict() where possible. What i always do is i order the js files. First i import all prototype files, put a noConflict file then i import all the jquery files or vice versa. This can

WooCommerce: Disabling checkout fields with a filter hook

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 16:49:30
问题 I have try to disable the "required" property of several checkout fields at the same time using woocommerce_checkout_fields filter hook, with no success. Plugins are not working properly either. This is my code: // Hook in add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' ); // Our hooked in function - $fields is passed via the filter! function custom_override_checkout_fields( $fields ) { $fields['billing']['billing_address_1']['required'] = false; $fields['billing

Sorting priority for specific Woocommerce checkout fields depending on country

爱⌒轻易说出口 提交于 2019-12-06 16:07:07
In Woocommerce, I need to set the default ordering priority (sorting) of three fields on the checkout page: The first change depends on the choice of the 'IT' country code: postcode - 'priority' => 91, The other two are free of conditions, I just need to set the default priority: billing_email - 'priority' => 30, billing_phone - 'priority' => 40, By editing the file directly, class-wc-countries.php core file as shown below, I get what I need. But clearly at each update of the plugin I lose the changes. Now I'm looking for a hook to get this done in a clean way. In class-wc-countries.php

Transferring order values from php shopping cart to MySQL

爱⌒轻易说出口 提交于 2019-12-06 15:52:05
问题 I am trying to setup a “checkout/order” page within a site in which logged in users earn points/credits. Once they earn a certain amount of these points they can then go to a shopping cart and pay with these points only. (No money changes hands, so no paypal/checkout/shipping/taxes etc are involved). I have done a 'shopping cart' page and 'view cart' page (view cart code is on this page), which works fine thanks to Steve and KMK ;). I have two tables on my MySQL database, 'orders' (which has

Pre-fill Woocommerce checkout fields with Url variable before session created

本小妞迷上赌 提交于 2019-12-06 14:54:36
问题 I have wordpress site running woocommerce with a few products. I want to send my customer a url to their product which includes their name and email so i can pre-fill name and email on woocommerce checkout page. the link will take customer to the product item page, where they can view product details and click "add to cart". Link example: http://example.com/product/myitem/tu_em=name@example.com&tu_name=theFirstName I tried to use Pre-fill Woocommerce checkout fields with Url variables saved

Send a custom email when WooCommerce checkout button is pressed

混江龙づ霸主 提交于 2019-12-06 12:47:47
问题 I am trying to send a custom email whenever the checkout button is pressed for Woocommerce using PHP. This email will be sent alongside with the email notifications of wooCommerce. I have used this answer, and edited the code like: //execute some php on successfull checkout add_action( 'woocommerce_payment_complete', 'so_32512552_payment_complete' ); function so_32512552_payment_complete( $order_id ){ $order = wc_get_order( $order_id ); foreach ( $order->get_items() as $item ) { if ( $item[

Magento - remove shipping & handling when using Freeshipping

为君一笑 提交于 2019-12-06 12:26:59
问题 I have the following issue: I have to main shipping methods. The first one charges a $10 shipping fee for orders below $200. The second method is the default freeshipping, which applies for orders over $200. When freeshipping is applied, the Shipping & Handling subtotal displays 0.00, and I don't want this line to show up neither in the checkout nor in the invoice. Is there any way to remove the shipping & handling line completely when freeshipping is used? Thanks in advance for any thoughts.