If your site takes orders but no payment is necessary then all of the payment gateways can be disabled with this one line of code.
It’s possible to add extra custom fields to the checkout process if you want to collect more information from the customer. In this example, extra fields for “student name” and “student year” are being added. There are a number of steps involved. First, the fields need to be created; then the data entry fields are … Read moreAdd extra fields to checkout process
Payment gateways such as PayPal and Stripe charge a small amount for processing a transaction. This code adds a credit card surcharge as a percentage of the cart total to cover that amount. Examples are shown for PayPal and Stripe, adding 3% for each.
You might be offering free items for download on your site, but suggesting those who do so make a donation. This code adds buttons in the checkout process to allows users to optionally choose a range of donation amounts. In this example the amounts are $2, $5 and $10. You will need to set up … Read moreAsk for donation in checkout process
This code allows to you offer set discounts when a customer buys in bulk. The price is adjusted in the cart automatically. Change the thresholds and discount percentage to suit your purpose.
If the cart only contains virtual products there is no point making a customer fill out the address fields. This code checks if there are only virtual products in the cart and, if so, hides the unnecessary fields.
The main address fields can be made into a textarea data entry fields with this code. This could be used in conjunction with the remove checkout fields function to hide the second address field.
This code displays the total cart weight to the customer on the cart and checkout pages.
If you want to restrict orders based on a maximum or minimum order weight, you can do so with the following code. This function displays an error message for total cart weights above 100 in three places – on the cart page, on the checkout page and when an order is initiated. The order will … Read moreDeny checkout based on cart weight
To streamline the checkout process you can combine the cart with the checkout page to make a single-step checkout process.