Linnea's Candy Supply

Custom Woocommerce Site Build

Back to Projects

Problem

Linnea's Candy Supply required a complete revamp of thier ecommerce site with the focus on a new design and maintaining existing functionality as well as developing new functionality to better serve their internal team and well as their clients

Solution

Building on the functionality of woocommerce, I developed custom solutions to the unique business requirements of the client, resulting in an improved shopping experience for their clients and improving internal team member workflows.

Highlights

Take a closer look at the specifics of the functionality developed for Linnea's Candy Supply


Custom Elementor Filtering

We utilized Elementor page builder for the front end build of the site, but there was a need for a more dynamic and scalable filter on the product archive pages. Utilizing Elementor hooks, filters, and query id, I wrote custom scripts to alter the base WP_Query of the Elementor loop element so it would display the filtered products by product category.

test image

Regional Product Pricing

The clients business rules required that most products have 2 prices, one for east coast customers and the other for east, however for clarity and usibility they only wanted the price of the corisponding region to be displayed based on the region that the user was assigned. This multifacited problem required a dynamic solution. I first had to create a system that assigned each user to either east or west region, integrating and automating this process with their online application form. I then had to setup custom product feilds to assign each regions price. With the region assigned to the user, I could then use this data to modify the woocommerce funtionality to display the correct region price for each user.

test image

Product Quantiy Discount Table

The client offers discounted pricing based on quanity or total weight purchased for each individual product. Using woocommerce hooks and actions I created functionaltiy that met all the dynamic needs of this table. First, I had to setup custom prodcut fields for products to accept the different price breaks as well as the differnt quanity/weight ranges. Using that data I populated the table using server-side code. I then I had to create the functionality that determined if the product was supposed to discount based on wieght or quantity while not over complicating the process. I landed on a solution that keeps quanity as the primary metric, but if a product is specifically marked as being sold by weight then a custom script is used to calulate the discount based on its weight and range. Finally, I ran custom code to update the price shown on the page for the product based on the current quanity entered into the qunaity field. I also had to ensure that this pricing is reflected though the whole checkout process so it is shown and used in the cart and checkout screen, and most importantly that the discounted price is used when calculating the final total at checkout.

test image

Passing custom checkout data to email notificaions

Client processes a lot of their customer order information in-house and requires specific data to be passed during checkout to the order confirmation emails that are recieved internally. This includes the customers unique account number, shipping preference, last 4 of ther credit card number, payment term, and region. All of this custom data first has to be gathered during the checkout process using custom fields then passed through the woocommerce checkout hooks to save that data in the checkout meta, finally taking that custom data and including it in the email notification.

X