Challenges
This site was hot on the heels of Apologia, my first e-commerce site. The hard lessons learned there was a huge help in building Numa as the process was much smoother. The biggest challenge was piecing together the complex nuances of each product. For example, each coffee roast had two options for the user to choose from: bag size and grind type (whole bean or ground). This was fairly easy to do with Product Variations in WooCommerce, but the complexity came with the “ground” logic. If a user chose the “ground” option, they would then be prompted with another dropdown to select the “grind type”. This “grind type” would not affect the SKU or price of the product, so it needed to be a product attribute, but NOT a part of the product variation. Through some complex PHP and WooCommerce hooks, I was able to insert that information when needed, tack it onto the product, and carry that information through the whole purchase process. The end goal was that both the customer invoice and the store owner invoice showed exactly what the customer ordered.