Filter Out Invalid Woocommerce Variations
I had a large number of Woocommerce variations for a project and the dropdowns were showing options that were not possible to create a product from. To remove these unwanted options, I need to increase a variation threshold.This probably is due to the woocommerce_ajax_variation_threshold. If your product contains more variations than the threshold specifies, woocommerce will wait until all variation options have been selected by the user before determining if the selected combination of options is valid(in stock, exists, etc).Just set the threshold to a higher value. If your product has 30 possible combinations(whether they actually exist or not) set the threshold to something higher than 30, like 1111 for example.You can use the snippet below in your functions.php file./* Increase Woocommerce Variation Threshold */ function wc_ajax_variation_threshold_modify( $threshold, $product ){ $threshold = '1111'; return $threshold; } add_filter( 'woocommerce_ajax_variation_threshold', 'wc_ajax_variation_threshold_modify', 10, 2 );Full discussion here
Hide Gravity Forms Submit Button on Click
This is a pretty simple script I found to hide the submit button of a Gravity Form when the user clicks the button.
Updating Sales Dates in Woocommerce via Database
It has been difficult to find the answer to when a Woocommerce sale ends. Here is a phpMyAdmin script that might solve your problem.
Facebook Political Ad Policy Changes
In the wake of 2016 and Cambridge Analytica, Facebook has made some big changes to the ads platform. If you're not verified you won't be able to run ads with politically based messages. Learn what these changes mean for Republicans and just how you can get verified.
Why is Social Media Important for Republicans?
Brands are everywhere today, and Republicans need to effectively market their brand across the social media spectrum. Here are a few areas where Republicans county parties, groups, or candidates can effectively engage multiple generations with their social media marketing strategy.
Where to Start in Digital Marketing
Starting a Digital Marketing effort for your local business or Republican county party doesn't have to be a daunting challenge. With the right plan in place and having a good team around you can start to transform your online engagement. Working with an expert like me helps too! Learn more about getting started.