On sites that sell unique, specialised products, it can be useful to leave an item on display for a while, even though it has been sold. It gives the impression that there is regular activity in sales and can encourage potential buyers. A good way to do this is to simply add a “sold” watermark … Read moreAdd a watermark overlay to sold item images
To add a cart summary anywhere in your theme template use these few lines of code. The number of items in the cart and the total value will be displayed. This summary also acts as a link to the cart.
This snippet adds an extra line in the cart under product name, to show the category or categories.
You may want to include a free “gift” or bonus item when a certain product has been added to the cart. With this code, if a product with a set ID is added to the cart, another product automatically gets added as well. The second product should have price = 0 if it is to … Read moreAdd a gift item to the cart when another item added
If you are offering multiple coupons it can be useful to know which of them was used in an order. This code adds the coupon code to the order details and displays them in a separate row in the emails sent to the customer and admin.
If your preferred currency is not included with SC Commerce you can easily add it (and a custom currency symbol) using this 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
This snippet adds a shortcode that can be used to quickly insert a link to any individual product page. The product is specified by id, for example [product_url id=”428″] and the title of the product is used as the link text.
To make it easier for customers to get back to the shop page from an individual product page use this code to add a button.
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.