rockysaxxx
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [GeneratePress] Pagination/css in customizerHmm, I guess the only way would be to change every setting in the customizer one by one and look if anything was added in the files :/ I noticed for example – contrary to what you ahd mentioned – that giving the container a different size does add another line of css.
Forum: Themes and Templates
In reply to: [GeneratePress] Pagination/css in customizerAh, too bad ??
Re the css: well, I need to use a child theme anyways so instead of having additional dynamic css placed inline through the theme settings in the customizer (like font-weight, logo size, entry-content margin etc), I’d rather place them in my child theme’s css since it is loading anyways…does that make sense? I only want to use the customizer for the theme settings where there already is a declaration and it wouldn’t more lines of css.
Forum: Themes and Templates
In reply to: [GeneratePress] Pagination/css in customizerThank you. Unfortunately the prev and next doesn’t really make for good usability either…I would love if the theme could modify it so that all naviagtions (for post archives, products, custom post types and also page breaks would look the same and you have a continous design!
Re the css: so is there a list of which elements have a setting by default? I reset the customizer and found several inline references for css from the theme.
Forum: Developing with WordPress
In reply to: Preventing postmeta update for empty valuesThanks. Not sure if there any risks when applying it globally…do you think there might be plugins which add fields with empty fields on purpose?
No, I did not use Gutenberg – for products, Gutenberg is not available.
Forum: Developing with WordPress
In reply to: Preventing postmeta update for empty values@bcworkz Thank you! So now I tried
add_filter('add_post_metadata', function($check, $object_id, $meta_key, $meta_value, $prev_value) { if( false !== strpos($meta_key, 'my_key')) { if(empty($meta_value)) { return false; } } return $check; }, 10, 5);
and this seems to be working – when I try to manually add a custom field ‘my_key’ on the edit product page with no value, it can’t be saved. There is no error message though, it simply won’t save. And when I upload a csv where only one product has a my_key with an actual value, the ield is only created for this product – so it seems to be working. But could this cause any problems do you think? And how would I add multiple meta keys into this code?
And I guess I would still need the update function because it still is possible to update the my_key value to be empty afterwards…
- This reply was modified 3 years, 6 months ago by rockysaxxx.
Forum: Developing with WordPress
In reply to: Preventing postmeta update for empty values@bcworkz No, unfortunately it does not work either…
Forum: Developing with WordPress
In reply to: Preventing postmeta update for empty values@bcworkz Thanks, I don’t have much PHP knowledge but I have tried this
add_filter('update_post_metadata', function($check, $object_id, $meta_key, $meta_value, $prev_value) { if(strpos($meta_key, 'my_key')) { if(empty($meta_value)) { delete_post_meta($object_id, $meta_key, $prev_value); return true; } } return null; }, 10, 5);
without luck. I am using Woocommerce’s native product ex- and importer.
Forum: Plugins
In reply to: [WooCommerce] Custom fields and csv import@grigaswp No, that does not work – if you have 15 custom fields for 1000+ products and then have to select each group for each field where you don’t want each of the fields imported…that would take forever! I tried this
add_filter('update_post_metadata', function($check, $object_id, $meta_key, $meta_value, $prev_value) { if(strpos($meta_key, 'my_key')) { if(empty($meta_value)) { delete_post_meta($object_id, $meta_key, $prev_value); return true; } } return null; }, 10, 5);
but it does not seem to work.
Forum: Plugins
In reply to: [WooCommerce] Meta fields differenceThank you!
Forum: Plugins
In reply to: [WooCommerce] Meta fields differenceThank you, that makes sene! But in the way the fields are stored and available for other purposes, it is the same?
Forum: Plugins
In reply to: [WooCommerce] Permalinks and slugs@amandasjackson Oh man…it is not possible to have /kids/earrings and /women/earrings? Is there a way to modify it to allow this structure?
Forum: Plugins
In reply to: [Mollie Payments for WooCommerce] No translation available for stringJa, danke @aweissinpsyde. Ich warte auf Eure Rückmeldung!
VG
Forum: Plugins
In reply to: [Mollie Payments for WooCommerce] No translation available for string@aweissinpsyde I just did but I am getting failure notices trying to send it:
“Unauthenticated email is not accepted due to the sending domain’s SPF policy.”
- This reply was modified 4 years, 2 months ago by rockysaxxx.
Forum: Plugins
In reply to: [Mollie Payments for WooCommerce] No translation available for string@aweissinpsyde no it does not come from Woocommerce ad I am not using any other plugin. I tried Loco but it could not find the string. It has to come from Mollie since the sentence is wrapped in
<div class="mollie-notice"></div>
and obviously it has to do with Mollie since the text has to do with credit card payment. It must be hardcoded somewhere into the plugin without the ability to being translated.
Forum: Plugins
In reply to: [WooCommerce] Problem with shipping and taxesHi,
thanks for your reply. Unfortunately the website is not live yet, but here is a screenshot of the flatrate settings. I have two products, one with a shipping class and one without. The one with the shipping class has the reduced tax rate of 7 %, the one without the shipping class has the standard rate of 16 %. If I just add the product with 16 % tax rate to the cart, the shipping cost is calculated as 390/116 = 3.90. If I just add the product with 7 % tax rate to the cart, the shipping cost is calculated as 390/107 = 3.90. Both correct.But if I add BOTH products to the cart, the shipping cost is calculated in some bizarre way to 4.23 instead of still 3.90!