Kevin Pryce
Forum Replies Created
-
Update: I was able to answer my own question with a function:
/*========================================================================== = HIDE FREE SHIPPING LABEL IF PRODUCT CAT IS IN CART = ==========================================================================*/ add_action( 'wp_head' , 'custom_conditional_css_styles' ); function custom_conditional_css_styles(){ if( WC()->cart->is_empty() ) return; // We exit if cart is empty // HERE your product category $product_category = array( 'sasktel-apple-iphones', 'sasktel-smartphones', 'cell-phones', 'feature-phones', 'sasktel-apple-ipads' ); $found = false; // Loop through cart items checking for our product category foreach ( WC()->cart->get_cart() as $cart_item ) { if ( has_term( $product_category, 'product_cat', $cart_item['product_id'] ) ) { $found = true; break; // Found we stop the loop } } if ( ! $found ) return; // If the product category is noy found we exit // Here come your CSS styles ?> <style> .devnet_fsl-free-shipping { display: none !important; } </style> <?php }
Thank you for the response.
So I am not sure what changed, but upon reviewing the symptom, everything is now working as I expect it to. Perhaps a caching issue?
Sorry for the hassle.
Appreciate the great plugin.
Forum: Plugins
In reply to: [Quotes for WooCommerce] “Enable Quotes” setting not working for meThank for the reply.
I understand your explanation but am wondering why this is the case? From my perspective, if I enable the “global” setting, it should take effect globally.
Can you help me understand the reason why new products don’t respect the global setting please?
- This reply was modified 6 years ago by Kevin Pryce.
Forum: Plugins
In reply to: [Quotes for WooCommerce] “Enable Quotes” setting not working for meI have an update on this symptom.
Any products that already exist in the database when the plugin is installed have quotes enabled. Any new products you add afterwards do not.
See this new product I added. Notice that it shows “add to cart” but all my other products show “request quote”.
https://biomedwaste.com/product/needle-disposal-unit/
Thanks.
Forum: Plugins
In reply to: [Quotes for WooCommerce] “Enable Quotes” setting not working for meYes the blanks remained blank after enabling the checkbox.
I deleted and re-installed the plugin and it appears to be functioning as expected.
Thanks for the help.
Forum: Plugins
In reply to: [Quotes for WooCommerce] “Enable Quotes” setting not working for meHi @pinalshah,
I have a total of 4 products. I am using a fresh install in localhost to test.
I can see the meta keys in the DB, but they have empty values.
thanks!
Solved. I have never seen a theme break the wp-admin. Thanks!
Forum: Plugins
In reply to: [WooCommerce Product Fees] Fee by category+1 for this feature
Forum: Plugins
In reply to: [Simple Cache] Site breaks when enabling compression in plugin settingsHi there.
Link is https://wiltonmusic.com
Of course, I have it turned off right now as my site breaks when it is off. I can turn it on for you to inspect but can we set an appointment so I know when.
Forum: Plugins
In reply to: [Drag & Drop Featured Image] D&D Settings page not showing in Appearance MenuUnfortunately no. I gave up and uninstalled the plugin.
Forum: Plugins
In reply to: [Twitter Bootstrap for WordPress] Twitter Bootstrap Shortcode Generatorha.. nevermind. I found them
https://www.icontrolwp.com/our-wordpress-plugins/wordpress-shortcodes-demo/
thanks for the plugin though.
Forum: Plugins
In reply to: [Twitter Bootstrap for WordPress] Twitter Bootstrap Shortcode GeneratorIt is my understanding that this plugin has shortcodes.. is this true? If so, how to I find out what they are?
Forum: Themes and Templates
In reply to: Single post!Just use
the_post();
You don’t need to loop as you are already on single.php.
Forum: Plugins
In reply to: [WP Catalogue] Odd Layout using WP CatalogueThis is not a slam against the developer. Don’t take it that way. But I tried the plugin in over 15 different themes, half responsive and half not, and never got it to work as shown in the demo, except for in the twenty-twelve theme – which is responsive. Aside from the menu and right column layout issue (which I do undersand is a css issue on my part) the entire sidebar disappears when expanding a product. When expanding a product info, the menu is no where to be found and a bunch of random text shows up. I tried this on three separate installations of wordpress.
I am not upset (I did not pay for this plugin) but was really wanting to use it. I just thought it would work more’out-of-the-box’ as displayed on the demo site.
Like I said though, this is not a shot at the developer. The support and email responses were great, and too me, I appreciate that way more. A+ for support! ?? The true problem with my experience is my non-ability to style it with css.
Forum: Plugins
In reply to: [WP Catalogue] Odd Layout using WP CatalogueI see know that you can adjust the width of
#wpc-col-2 {
width: 712px;
float: left;
}but notice what happens when you expand a product.
Note: I have this happen on all themes, not just this one.