checkout

Customizing checkout fields on 2 columns in Woocommerce cart page

不想你离开。 提交于 2019-12-12 09:28:12
问题 After the new WooCommerce update checkout fields columns are acting strangely. That are my checkout fields customizations: add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' ); function custom_override_checkout_fields( $fields ) { unset($fields['billing']['billing_address_2']); return $fields; } // Checkout placeholder add_filter( 'woocommerce_checkout_fields' , 'override_billing_checkout_fields', 20, 1 ); function override_billing_checkout_fields( $fields ) {

Anybody ever used PayPal Website Payments Standard with SESSION variables?

流过昼夜 提交于 2019-12-12 09:23:36
问题 Note: Our site is built in PHP and uses MySQL databases. I already manage another site with shopping cart in its entirety using Authorize.net so please dont respond with suggestions to use another provider. A new product/service we are releasing is classified as "High Risk" to the merchant providers and they want to charge us out the a**. In response, I figured setting up a Website Payments Standard account on Paypal.com was the best alternative for the following reasons: 1) no monthly

Spree Checkout - Remove Step

旧城冷巷雨未停 提交于 2019-12-12 09:04:30
问题 I am trying to remove 2 checkout steps. I have tried to follow the documentation in the site http://guides.spreecommerce.com/checkout.html but still nothing happens. I am using Spree 1.1.2 ruby 1.9.2p318 Rails 3.2.6 Ubuntu 12.04 (precise) 32-bit I'll tell you what I have done and you will tell me what to fix. Should I change the name or location of the file? Or should I change other files too? How can I debug it? I have created a new file "app/models/spree/order_decorator.rb" (also tried it

Two Separate Stripe Checkout Forms on One Page

白昼怎懂夜的黑 提交于 2019-12-12 03:53:53
问题 How can I have two Stripe checkouts on the same page? Currently, I have two buttons, a charge.php , and a charge-monthly.php file. Hoping to Achieve: two separate buttons: one for one-time donation / the other for monthly donation. FORM ENTRY - single donation <form action="index.php" method="post"> <input class="form-control donation-page" id="custom-donation-amount" min="1" step="10.00" type="number" value="100"> <script src="https://checkout.stripe.com/checkout.js"></script> <button class=

Woocommerce - Add filter to display (or hide) custom checkout field if product ID == #

心已入冬 提交于 2019-12-12 03:16:07
问题 I created a "my_custom_field" textarea, as the default billing_first_name, billing_address, etc..now I'd like to hide this field if product id # is in cart. So, I need to check if productID == #, and so remove my_custom_field from the checkout. Otherwise (maybe better?), I could check if productID == #, and create a custom field for that specific ID (or maybe categories). What do you suggest? 回答1: You can try this, to adapt with your custom field and product IDs add_filter( 'woocommerce

Disabling checkout button from shopping cart - php

蹲街弑〆低调 提交于 2019-12-12 01:23:34
问题 I am trying to setup a “view shopping cart/basket” 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) So far I have got the login, points total table, add product to cart and change of quantity feature to work. What I am trying to do on this ‘view_cart.php’ page (code below) is to make

checkout is not working in magento1.7

青春壹個敷衍的年華 提交于 2019-12-11 23:23:02
问题 I have a multistore done in Magento 1.7 . Checkout is not working in one store. Nothing is happening after clicking the continue button inside Billing Information block which calls the function onclick="billing.save()" . I checked with firebug all blocks are coming correctly. I think the problem is with the function billing.save() . Where I can find this function. EDIT I have checked my response in transport.responseText in billing.save() for one store I am getting response like this {"goto

Woocommerce-Get Value of Custom Field in Checkout

核能气质少年 提交于 2019-12-11 16:19:04
问题 I have a nimble question that i am not getting any answer of. I have added a custom field using "Checkout Field Editor" in Woocommerce Checkout fields. The field is given below and seems to be working fine. <input class="input-text " name="wc_order_field_7542" id="wc_order_field_7542" placeholder="Pickup Date" value="" type="text"> However, now I am working on a plugin and want to get value inputted in this specific field and cannot seem to figure out. For the other fields I am simply doing

Remove subtotal line from cart and checkout pages in Woocommerce

≡放荡痞女 提交于 2019-12-11 15:57:26
问题 I want to remove the Subtotals from Cart, Checkout, Order Received, Order Details and the emails. I don't want to use CSS, as it won't remove the reference from the order details page and emails. I have tried this code: add_filter( 'woocommerce_get_order_item_totals', 'adjust_woocommerce_get_order_item_totals' ); function adjust_woocommerce_get_order_item_totals( $totals ) { unset($totals['cart_subtotal'] ); return $totals; } It isn't working, the Subtotal is visible on the Cart and Checkout

Disable shipping checkout fields for downloadable products in WooCommerce

不问归期 提交于 2019-12-11 15:08:49
问题 I know that I can automatically disable shipping fields by checking "virtual" on the product submission form, but how could I by default disable shipping fields for downloadable products on Woocommerce checkout section? 回答1: You can use the WC_Product conditional method is_downloadable() to target downloadable products in the following 2 cases: 1) Disable checkout shipping fields add_filter( 'woocommerce_cart_needs_shipping_address', 'filter_cart_needs_shipping_address_callback' ); function