ghimus
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Share Buttons Adder] PHP ErrorsDitto on multisite, secondary site admin panel.
Theme: Avada
Symptoms: Can’t configure plugin via admin panel, the page throws the following:Warning: array_keys() expects parameter 1 to be array, null given in /home1/XXXX/wp-content/plugins/simple-share-buttons-adder/inc/ssba_admin_panel.php on line 940
Warning: array_diff(): Argument #1 is not an array in /home1/XXXX/wp-content/plugins/simple-share-buttons-adder/inc/ssba_admin_panel.php on line 940
Warning: Invalid argument supplied for foreach() in /home1/XXXX/wp-content/plugins/simple-share-buttons-adder/inc/ssba_admin_panel.php on line 946
Warning: Invalid argument supplied for foreach() in /home1/XXXX/wp-content/plugins/simple-share-buttons-adder/inc/ssba_admin_panel.php on line 328
It’s good practice to use different variation sets for different products, so you can avoid a situation like yours, where you have the same variation set for different categories of products.
If you want to set the product price regardless of Variation:
– Review your variations to make sure they do NOT have a price modifier.
– Edit your product, uncheck the Size Variation, Update Variations, set the price, update the product, check the Size Variation then Update Variations again and finally Save.Rinse and repeat.
Alternatively, if you’re tech savvy and likely to get bored easily (especially if you have many products to edit), you can employ something like Selenium IDE to automate your browser actions according to your logic, but that’s another story altogether.
You can actually set the price for each variation then apply it retroactively to existing products that use the respective variation. It’s a pretty handy trick!
Go to Variations, Edit your desired Variation, Set Price (read the inline help for another cool trick) and check “Apply to current variations”.
Assuming you have 20 shirts in your inventory, all of them contain the M size, and you just updated the variation for M to be priced $25, then all your M-sized shirts will cost $25.
Let me know how it turns out.