wordpress Archives - Code Craftsman https://www.codecraftsman.us/ Tales from a Dev Dad Sun, 27 Nov 2022 22:35:20 +0000 en-US hourly 1 https://wordpress.org/?v=5.9.3 https://www.codecraftsman.us/wp-content/uploads/2020/08/cropped-code-craftsman-logo-32x32.png wordpress Archives - Code Craftsman https://www.codecraftsman.us/ 32 32 How to add a dynamic fallback to an ACF field value in Elementor https://www.codecraftsman.us/how-to-add-a-dynamic-fallback-to-an-acf-field-value-in-elementor/ Sun, 27 Nov 2022 16:45:00 +0000 https://www.codecraftsman.us/?p=717 A new challenge came my way recently with regard to Elementor and Advanced Custom Fields. When using an ACF dynamic value in an Elementor widget control, you do have access to a fallback value, however, it's a fixed value only. For my scenario, I needed a unique fallback value based on the post. Follow along as I share the solution.

The post How to add a dynamic fallback to an ACF field value in Elementor appeared first on Code Craftsman.

]]>
Programmatically add a custom fee to the WooCommerce cart https://www.codecraftsman.us/programmatically-add-a-custom-fee-to-the-woocommerce-cart/ Tue, 15 Nov 2022 02:55:01 +0000 https://www.codecraftsman.us/?p=710 Charging additional fees to an e-com order is a common ask from many online retailers using WooCommerce. This post gets right to the point with a couple solid code snippets to get your custom fee working right away.

The post Programmatically add a custom fee to the WooCommerce cart appeared first on Code Craftsman.

]]>
Add custom fields to WooCommerce product variations https://www.codecraftsman.us/add-custom-fields-to-woocommerce-product-variations/ Sun, 06 Nov 2022 04:14:40 +0000 http://www.codecraftsman.us/?p=662 Here's a simple way to add custom meta fields to WooCommerce Product Variations in PHP. Change your custom property per variant right from the native WooCommerce product editor.

The post Add custom fields to WooCommerce product variations appeared first on Code Craftsman.

]]>
Create a clean zip file of your WordPress plugin folder https://www.codecraftsman.us/create-a-clean-zip-file-of-your-custom-wordpress-plugin-folder/ Wed, 12 Oct 2022 02:31:29 +0000 http://www.codecraftsman.us/?p=613 Want to zip up your custom plugin for distribution, but don't want that huge node_modules directory or package.json to get shipped along with it? There's a script for that.

The post Create a clean zip file of your WordPress plugin folder appeared first on Code Craftsman.

]]>
How to override a WooCommerce product’s price https://www.codecraftsman.us/how-to-override-a-woocommerce-products-price/ Tue, 04 Oct 2022 02:55:28 +0000 http://www.codecraftsman.us/?p=585 Taking full control of the price rendered by WooCommerce can be a tricky task, especially considering variation products and all the different locations it can be displayed. I'll show you the combination of hooks that worked for me.

The post How to override a WooCommerce product’s price appeared first on Code Craftsman.

]]>
How I built my hyper-fast blog for free https://www.codecraftsman.us/how-i-built-my-hyper-fast-blog-for-free/ Sun, 25 Sep 2022 04:10:24 +0000 http://www.codecraftsman.us/?p=551 It's a thing of beauty when you see your blog post a full 100 Google Page Speed score. To think that it was done completely free just makes you all warm and fuzzy inside.

The post How I built my hyper-fast blog for free appeared first on Code Craftsman.

]]>
Add Bcc address to all WooCommerce emails https://www.codecraftsman.us/add-bcc-address-to-all-woocommerce-emails/ Wed, 08 Jun 2022 02:50:14 +0000 http://www.codecraftsman.us/?p=479 Record keeping is an important part of operating a business. Having a paper trail for reference can save you from customer order conflicts and this post will show you one method to accomplish this. Knowing exactly which email notifications have been sent from Woocommerce for an order will help you to solve those issues quickly.

The post Add Bcc address to all WooCommerce emails appeared first on Code Craftsman.

]]>
Extend BC for WP: Show customers their available store credit https://www.codecraftsman.us/extend-bc-for-wp-show-customers-their-available-store-credit/ Tue, 03 May 2022 16:45:00 +0000 http://www.codecraftsman.us/?p=421 The Bigcommerce for Wordpress plugin adds flexibility to the BC platform, but needs some upgrades here and there. In this post I'll show you how to add a summary for the customers available store credit.

The post Extend BC for WP: Show customers their available store credit appeared first on Code Craftsman.

]]>
Integrate the Elementor theme system into reusable templates https://www.codecraftsman.us/integrate-the-elementor-global-theme-system-into-reusable-templates/ Thu, 22 Oct 2020 02:33:26 +0000 http://www.codecraftsman.us/?p=253 The new theme system in the Elementor Wordpress plugin is great at first glance, but how can we make it work in a real website development flow? I'll show you how to setup a Wordpress theme using reusable templates styled by the global Elementor Theme settings.

The post Integrate the Elementor theme system into reusable templates appeared first on Code Craftsman.

]]>