Move T&C above payments methods in woocommerce - woocommerce

I am trying to move the Terms and Conditions above the payment methods options. I tried couple of snippets I found here, but no luck, as most of them moves the payment methods above the order summry, but what am trying to achieve is:
Also I remove the current and then add a manual text one, as my website is running multilanguage and I can not register the simple text in WPML to translate it.
Order Summary.
Terms and Condition box.
Payment Methods
Submit button.
Any help is appreciated.

Related

Divide checkout field in woocomemrce

I need to totally customise WooCommerce checkout page. I can do a lot of things with Woocommerce programatically but this one is not an easy task since I need to divide these fields just like on the picture below.
Website is on this link: https://2houragency.com/. I can see that they have hidden some default Woocommerce HTML elements and created their own, but I am not sure how to do it by myself. And Wocommerce is not that easy to customise for this kind of pages.
Get into the templating documentation of WooCommerce here.
You'll probably want to use one of these template files to re-order/structure the checkout template.
You can find even more information in the Code Refference.

Place order button to automatically download

I'm new here and was directed to try this forum for my quandary with WooCommerce.
I’ve created downloadable products that are free. – I’m using Storefront WooCommerce Theme for WordPress.
– Before the download is available I would like the users information ie: email, name. I’m using the checkout page (place order) for this and bypassing the cart. So instead of collecting payment I’m collecting contact info. I have customized that page and buttons to only gather the information required for download.
– Once they enter the information they are able to download the file, but only from a different page (another click). I’d like download to automatically download on the place order button click.(I've changed the text to read: download specifications)
In summary:
– I would like to have the file download automatically without the place order summary page more of a thank you for your interest page.
Any suggestions would be much appreciated. Thank you again for any help you can give me.
I'm not sure why the negative votes, I thought this was a place to share and find answers.
I did a work-around which works for now. I may revisit this later. There are still 3 clicks but the flow is a lot nicer.
• I copied the woo thank you php check out template to my child theme and made some custom changes to eliminate the extra order information
• changed button title for smoother flow while still gather the user information in my order information.
• I can trim the template even more but that will take a while because the download function is attached to the order table which is actually the information I want to record.
• Then, I thought about attaching a form to the button at the single product page to capture the user info but that opens another can of worms in record keeping since it won’t populate the order table.
What I wanted to do requires lots of heavy lifting which will take some time for me to figure. If I come up with the answer to my original question I will share with the forum.

WooCommerce Multi-Step Checkout (Billing/Shipping Address and Payment Methods on different pages)

I'm currently working on a multi STRIPE checkout for different STRIPE accounts based on the shipping country.
So far everything works smoothly by using the wc_stripe_params, wc_stripe_payment_request_params and woocommerce_stripe_request_headers filters and overloading the respective classes for the webhooks. There is one problem though.
Upon checkout page load, where the payment methods are, STRIPE renders CDATA values for their JS files.
When the initial shipping country guess through geoip database was correct and the customer doesnt change the shipping country, everything works fine, since the correct public keys were inserted into the JS of STRIPE. When the customer changes the shipping country there is no way to manipulate the already processed JS variables. This is why I want to split up the checkout process so that the last page is just for payment options based upon the before selected shipping country.
I know that there are multiple plugins for multi-step checkout available, but all use ajax for a smooth rendering, which results in the same error. I understand the way how to customize different processes in WP or WC, but I don't know how to really tackle this one since the formon the checkout page is posted to the wc_get_checkout_url() which needs payments selected and done - it doesnt look like there is a real multi step without ajax planned?
Thanks in advance for any help or thoughts
Problem solved by splitting up the checkout process into multiple forms and posting the data as one to the woocommerce checkout controller

How to show a widget only to customers who bought a product in WooCommerce (with Elementor)?

Here is what I am trying to do - a website with online courses using WooCommerce and Elementor. I want to have a page called "My Courses" where customers can see only the courses they've purchased.
I'm not using any LMS.
I will use the plugin Dynamic Conditions for Elementor to show or hide a widget.
I know that WooCommerce has a function to check if a user has bought a specific product.
I don't know how to make a connection between the two, though. That is my problem.
Dynamic Conditions uses Elementor's dynamic tags system to check against. How can I use the WC's function to check if the user bought the product and only if he/she did, then to show them the widget with the course page?
Thanks a lot for any answers with ideas or directions on how to solve this problem!
Using Dynamic.ooo you can benefit from "Visibility" extention (comes with Dynamic.ooo/ don't need seperate plugin installation) which allows you write your customized conditions (in PHP). I myself have not used the "Custom Condition" becuase I don't know much about PHP, but if you know the function and just need to connect them i think that'll do.

Wordpress custom form advanced

just a quick one, are you aware of any wordpress form plugins that allow me to create a form and depending on which options they select, it will display a certain bit of information that submits to a selected email.
Im trying to achieve a web request form for clients and would like them to be able to fill out information as well as select a check box for a certain amount of questions. For example,"would you like to update your own content?"
if they check this box, i would like the form to render all the information in the form and then depending on which checkbox is selected it will give me a bit of content that is different. im trying to automate a proposal template so it writes all this content in an email so i can quickly do proposals for websites etc.
Yes, gravity forms does this. And it's very easy too.
http://www.gravityforms.com/
It is called 'conditional logic'. You enable this on a field, which will display conditional drop downs which you can choose previous 'multiple choice' questions to base your conditions on.
Think you have to pay for this plugin but you could probably find version 4 as a download somewhere to demo before you buy.
You won't be disappointed.

Resources