On some sites a cart may be completely unnecessary. You may only have one product and the quantity selector might be superfluous. Forcing the customer to go through the cart page is pointless step and just adds another step where you might lose the sale. First disable the cart in Classic Commerce > Settings > … Read moreSkip cart and go straight to checkout
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