checkout

Itemized PayPal Checkout using Angular (ngCart)

荒凉一梦 提交于 2019-12-11 12:18:28
问题 I'm attempting to use PayPal to check out and show an itemized list of the products. I can get the cart to work showing a total for the amount of items added to the cart, but since they aren not itemized the seller will not know which items were ordered. I'm using ngCart for my shopping cart. I've followed the docs and I believe that I've configured everything correctly, but when I click "checkout" using the itemized PayPal process my cart is empty in PayPal. The items in my store are listed

Show the tax line when rate is 0% in Woocommerce

有些话、适合烂在心里 提交于 2019-12-11 10:11:06
问题 I’m updating to the latest version of WooCommerce from a very old version. I have noticed that when using the option “Display tax totals: Itemized”, the Tax name is not displayed anymore in the Sub Total line included in Cart page, Checkout page and in any customer e-mail, invoice, etc. The reason appears to be that if the Tax rate is set to 0.0000%, the new version of WooCommerce automatically hides that line after the Sub Total, look below: If I set rates to 1.0000% or whatever, it appears.

Conditional Logic and custom FB Pixels Integration into WooCommerce

那年仲夏 提交于 2019-12-11 09:29:01
问题 I am seeking to: 1) Fire FB Pixel on WooCommerce checkout page - associated events that is. (ie Add To Cart/Initiate Checkout) 2) Fire Purchase event on check-out page/thank-you page of WooCommerce. 3) Keep FB Pixel as normal across entire sites that are not part of the above two. I was told conditional logic is the way to go. Yet, I am stumped at how to incorporate the hook below (in my 2nd post) into my "elseif" statement. Script #1 add_action( 'wp_head', 'facebook_tracking' ); function

Dynamic select field options based on selected day in Woocommerce checkout

安稳与你 提交于 2019-12-11 08:43:35
问题 I have added 2 customized fields to Woocommerce checkout: A jQuery-ui Datepicker field, A select field (drop-down) for time. Now, I would like that the time select field dropdown options to be depended on the chosen dates. Basically if Saturdays and Sundays are chosen, I want the time intervals to be limited (only until 15:00). I've tried lots of different strategies, but none of them seems to be the right approach. Here are the two customized fields: //Datepicker add_action( 'woocommerce

Trigger ajax update_checkout event on shipping methods change in Woocommerce

本秂侑毒 提交于 2019-12-11 07:45:23
问题 I'm trying to customise WooCommerce checkout process to be it similar as Shopify! It means - checkout process is splitted in steps: Customer info, Shipping, Payment. And on the right side of every step there is product list with totals (including Coupon and Shipment info)! For multiply step I'm using plugin. For right side product list I'm using table from /checkout/review-order.php the same table with specific customisations, but removing table class "woocommerce-checkout-review-order-table"

Remove Woocommerce “place order” button for a specific shipping class

╄→尐↘猪︶ㄣ 提交于 2019-12-11 07:32:16
问题 I have a scenario where I need to remove the "Place order" button on the checkout screen for Woo-commerce. Currently I have 2 shipping methods: Flexible shipping and Freight If a customer adds an item with the shipping class of "Freight" to their cart, my current code disables the flexible shipping method and then the freight method displays a message of "Call for current rates". The issue is that they can still checkout essentially without paying anything for shipping which is why if freight

Back to cart button on checkout page

巧了我就是萌 提交于 2019-12-11 06:07:04
问题 Is there any solution to display a "back to shopping cart" button on the WooCommerce checkout page? Actually there is only a complete order button, but we need a back button, if a user want to correct his order. Thanks. 回答1: Yes it's possible to display a custom notice with a "Back to Cart" button on checkout page. Here is that custom hooked function in woocommerce_before_checkout_form action hook: add_action( 'woocommerce_before_checkout_form', 'return_to_cart_notice_button' ); function

Add a dynamic fee based on a select field in Woocommerce checkout

眉间皱痕 提交于 2019-12-11 06:06:18
问题 I am using "Update fee dynamically based on radio buttons in Woocommerce checkout" answer code solution that worked very well for me to add checkbox fields with a different price for each one, and the price changes in the are reflected in the checkout. But I need some help: When I select a type of packaging with additional tax, it appears in the backend in the order area, but only shows the price, and I would like to show the title as well. The checkbox options have: 'options' => array ( 'bag

Make state checkout field required for a specific country in Woocommerce

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 05:23:39
问题 The country of Vietnam in Woocommerce does not have the states, so I added some states to my checkout page. This is my code: add_filter( 'woocommerce_states', 'vietnam_cities_woocommerce' ); function vietnam_cities_woocommerce( $states ) { $states['VN'] = array( 'HCM' => __('Hồ Chí Minh', 'woocommerce') , 'HANOI' => __('Hà Nội', 'woocommerce') , 'HAIPHONG' => __('Hải Phòng', 'woocommerce') , ); return $states; } It do work as I would like, but it is an optional field for Vietnam. How to make

Conditionally hiding et showing payment gateways

浪尽此生 提交于 2019-12-11 04:49:55
问题 In Woocommerce, I would like to hide "paypal" gateway on the "checkout" page before the order is created for the first time and just show "cash on delivery" gateway (labeled as Reserve ). On the other hand, on checkout/order-pay page when the order status is "pending" , hide the 'Reserve' gateway and show "paypal" . (this happens when we change the status of the order to "pending" manually and send the invoice to the customer with a payment link). I thought it should be done by checking order