Xaifu
Forum Replies Created
-
Hello,
Thank you for the snippet. I haven’t had time to test it on my website until now.
I’ve noticed that the snippet disables the subscription form but still shows the submit button. When the button is clicked, the form launches in a popup. This is odd since I have the form configured as inline in the plugin options.
Is there a way to resolve this issue?
Thank you for your invaluable help.
Thank you for your response.
The problem I have is that it is a website with more than 20,000 products and its stock is updated automatically through WP All Import, so I am looking for a solution that automatically deactivates the form on products with the value B in a custom field.
That is why I am looking for a hook or some way to do it. If it is not possible, I will continue to use the method of hiding it conditionally by loading a CSS with display:none.
Hello,
This is a private website that is not open to unregistered users. I am currently using the following code to load conditional CSS:
// Get the value of the custom field 'stock-letter' for the current product
$tipo_stock = get_post_meta($product->get_id(), 'stock-letter', true);
// If tipo_stock is not 'B', add custom CSS to hide the subscription formif ($tipo_stock !== 'B') { add_action('wp_head', function() { echo '<style>.cwginstock-subscribe-form {display: none !important}</style>'; }); }
Can I use something similar to disable the generation of the form using a hook that prevents the form from being generated for these products?
Thank you for your response @shameemreza
My conclusion is that since I have product ratings and reviews disabled, I can completely eliminate the wc_update_product_lookup_tables_rating_count_batch process. I assume there may be consequences that I have not foreseen, but I would just like to confirm that this process is limited to updating the count of ratings and reviews and nothing else. Is that correct?
The archive page of the CPT where I’m using Filter Everything uses a content template from Generate Press.
To address the issue of content being displayed even when the results are zero, the technical support team from Generate Press mentioned that they can fix it if the developers of Filter Everything can provide insights on:
“How do we determine that the AJAX query has returned zero results?
If we can identify that, then we might be able to instruct the Content Template to step aside.”Does Filter Everything have any method to signal when the result is zero?
Regards
DanielForum: Plugins
In reply to: [Solid Post Likes] Like counter inside a query loop blockHello @oacstudio
Thanks for the fix. In my case, I was using Generate Blocks to create the custom query loop and it worked perfectly.
Best regards
Forum: Plugins
In reply to: [Solid Post Likes] Like counter inside a query loop blockThanks for the explanation!
I will find that option very useful when it becomes available. I look forward to it being added to the plugin.
Regards
Although it is logical to define breakpoints at the beginning of the project and not to touch them later, it is good to know that Greenshift will offer this possibility in the next updates.
Thank you for your quick response!
I am now checking it again, and I see that it is indeed applying the new breakpoints correctly. We consider it solved.
Regarding: Reusable css must be also updated before render.
Does that mean that yes, the breakpoints of a global reusable css are automatically updated every time I change the general breakpoints?
I have modified the code that was generated inside Global Reusable CSS to clean it up so that it only contains the values I need to keep. I understand that if I have modified it, it will not be automatically updated, right?
In any case, is it correct to modify Global Reusable CSS to “clean the code” or is it better not to touch that code?
Hi!
Is this problem corrected?
I have modified the default breakpoints, but it keeps applying the original ones at all times. I have cleared cache, reset the block where I want to see the changes applied and created a new block from scratch to see if this way it would take the new breakpoints, but there is no way.Another question, if I have a Global Reusable CSS created and then I change the default breakpoints I guess that the Global Reusable CSS is not updated, is it so?
Thanks for your help!
- This reply was modified 2 years, 2 months ago by Xaifu.
Forum: Plugins
In reply to: [WooCommerce] Error in checkout if checkout fields are deactivatedHi Margaret
In the official WooCommerce documentation, it is explained how to remove checkout fields https://woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/#section-2
That is the same method I’m using in my test website where I am getting the weird error that I have reported.
Also, I’ve tested the WooCommerce Checkout Field Editor extension https://woocommerce.com/document/checkout-field-editor, and I have encountered the same problem when validating checkout fields.
Because of this, I thought it might be a WooCommerce error when validating the fields that have been disabled.
Forum: Plugins
In reply to: [WooCommerce] Change text in Update Cart Button using filtersThanks Maykato
I will opt for the translation method as I see that there are more texts I need to modify.
Thank you!
Thanks for your help Igor!
I understand from your answer that in terms of performance, hosting several WooCommerce on the same hosting I will not see much difference if I do the installations separately or if I do them in a multisite.
Is that correct?
Forum: Plugins
In reply to: [WP Show Posts] Problem with Gutenberg escaping shortcode attributesThe php snippet you provided has saved me!
Also, now the shortcode is cleaner and easier to edit for my client.
Thank you very much for your help!
Forum: Plugins
In reply to: [WP Show Posts] Add class to listsThanks for your response!
Although I needed to avoid using php for some other reasons, I have found a workaround so finally I can use this filter to add the class to my list 1402:
add_filter( 'wpsp_settings', function( $settings ) { if ( 1402 === $settings['list_id'] ) { $settings['inner_wrapper_class'][] = 'custom-class'; } return $settings; } );
- This reply was modified 3 years, 8 months ago by Xaifu.