joeistoybox
Forum Replies Created
-
Forum: Plugins
In reply to: [Gift Wrapper for WooCommerce] Possible to hide text area gift message?Hi johanna75,
try adding this css to bottom of your current themes’s stylesheet (style.css) and see if that does what you would like.
.wc_giftwrap_notes_container {display:none !important;}
Will the JQuery hide it even after navigating to a different page in the same site, and after same page reloads? From what I have been reading, it would require setting cookies. Speaking of cookies, there are a few cookie notice plugins that do hide the notice for X amount of days once the notice has been closed (accepted).
The JQuery seems to be more suited to delaying the displaying of a div. For instance, 30 seconds into viewing a page, the banner will display, but without the use of cookies, it would continue to fire on every page refresh or navigation 30 seconds later and become very annoying. This would be a cool feature to add as well as long as it could be prevented from firing more than once per day/week/month/year depending on the type of notice or how often to remind visitors of the notice.
Hope this helps, and maybe I am wrong about cookies being necessary, and an easy fix is just a few lines of code away.Glad I could help. I look forward to trying 2.0 out just as soon as I can. Keep up the great work.
Ok, I think I figured out how to fix the ssl problem. Actually, the plugin as is messes up the head section of the loaded page, so it really is a problem for both ssl and plain. Around line 101 in the sitewide-notice-wp.php file,
change:
add_action(‘wp_loaded’, ‘swn_banner’)
to:
add_action(‘wp_footer’, ‘swn_banner’)This way the code gets added to the body without messing up the head section. So far all seems to be working. Just wish it had a cookie function to remember that it has been closed.
Loving this plugin even more now.
Forum: Plugins
In reply to: [Sitewide Notice WP] Customers can't make payments on SSL siteOk, I think I figured out how to fix it. Around line 101 in the sitewide-notice-wp.php file, change add_action(‘wp_loaded’, ‘swn_banner’) to add_action(‘wp_footer’, ‘swn_banner’)
This way the code gets added to the body without messing up the head section.
Forum: Plugins
In reply to: [Sitewide Notice WP] Customers can't make payments on SSL siteIt looks like the plugin is inserting it’s code in a way that is causing the head section to be cut into and the rest of the head code is being inserted into the body section after this plugins code.
Forum: Plugins
In reply to: [Sitewide Notice WP] Customers can't make payments on SSL siteI too seem to be suffering from this plugin not playing well with ssl. If I disable, checkout page loads correctly and timely, if I enable this plugin, then the checkout page will never load, just keeps spinning.
My whole site is ssl and has been before installing this plugin. I use really simple ssl plugin to help maintain my ssl on wordpress.Forum: Plugins
In reply to: [Sitewide Notice WP] not friendly in mobile siteHi there, love the plugin. I had to make a few modifications to get it to work right. The notice didn’t display two lines worth of text because the height of the div was set to 50px so it could never grow taller. This effects both desktop and mobile, only the mobile is more likely to force two or more lines of text.
First, I added the custom css: .swn_banner{ min-height:50px; height:auto;} This allows the notice to stretch higher to fit 2 lines or more.
Second, the close button image did not display when going more than one page deep in my site. It needs the background url to have the whole site address. example:
.closeButton{background:url(‘https://example.com/wp-content/plugins/sitewide-notice-wp/images/close-button.png’) no-repeat center center;} Actually, if someone smarter than me could code the wordpress magic that would replace the https://example.com/ it would be even better.These modifications make the plugin work great on my desktop and mobile.
Great information to know. I just assumed that it would revert back to the previous settings before the plugin was activated. I doubt that I will ever be deactivating it again as it has proven to me to be stable and very useful, but glad to know how if I want to keep the current settings. Thanks again for your hard work and dedication to this free plugin. When our site starts generating revenue, we won’t forget about you.
Upon further investigation, it appears that the existing attributes are still in the product data, and filters can still see them, but they are hidden from product dashboard and product live view.
Forum: Plugins
In reply to: [Cartpauj Register Captcha] Not working?I am using woocommerce and this plugin and other ones like it seem to not work with woo.
Forum: Plugins
In reply to: [Gift Wrapper for WooCommerce] Feature RequestThank you for the quick response and pointing me in the right direction on the other things. Also, thanks for making it free. Once my sons site starts making money, we won’t forget about you and your hard work.
Forum: Reviews
In reply to: [Gift Wrapper for WooCommerce] AwesomeHere is an example of the code I found (wish I remembered who posted it so I could give proper credit): I named the function joei_buttons , but you can rename it if you like to some other unique name. My gift wrapping category is “Gift Wrapping” with a slug of “gift-wrapping”. If you have name your category slug anything else, you will need to change it in the has_term area below as well.
Just add it to the bottom of your Theme Functions (functions.php)function joei_buttons(){ $product = get_product(); if ( has_term( 'gift-wrapping', 'product_cat') ){ // removing the purchase buttons remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' ); remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 ); remove_action( 'woocommerce_simple_add_to_cart', 'woocommerce_simple_add_to_cart', 30 ); remove_action( 'woocommerce_grouped_add_to_cart', 'woocommerce_grouped_add_to_cart', 30 ); remove_action( 'woocommerce_variable_add_to_cart', 'woocommerce_variable_add_to_cart', 30 ); remove_action( 'woocommerce_external_add_to_cart', 'woocommerce_external_add_to_cart', 30 ); } } add_action( 'wp', 'joei_buttons' );
- This reply was modified 8 years, 3 months ago by joeistoybox.
- This reply was modified 8 years, 3 months ago by joeistoybox.
Forum: Plugins
In reply to: [Gift Wrapper for WooCommerce] Hide gift categoryPerhaps you might not want to hide any of it. Just use a function to remove the add to cart button for only your gift wrapping category, and then add a link back to cart in the product short description as well as the category description. That way, customers can view each wrapping product in detail, extra pics and details is always nice, but not be able to add it unless in cart.
My theme lets me choose which categories to display links, or buttons for. So the gift wrapping category can be removed pretty easy.
Here is an example of the code I found (wish I remembered who posted it so I could give proper credit): I named the function joei_buttons , but you can rename it if you like to some other unique name. My gift wrapping category is “Gift Wrapping” with a slug of “gift-wrapping”. If you have name your category slug anything else, you will need to change it in the has_term area below as well.
Just add it to the bottom of your Theme Functions (functions.php)function joei_buttons(){ $product = get_product(); if ( has_term( 'gift-wrapping', 'product_cat') ){ // removing the purchase buttons remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' ); remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 ); remove_action( 'woocommerce_simple_add_to_cart', 'woocommerce_simple_add_to_cart', 30 ); remove_action( 'woocommerce_grouped_add_to_cart', 'woocommerce_grouped_add_to_cart', 30 ); remove_action( 'woocommerce_variable_add_to_cart', 'woocommerce_variable_add_to_cart', 30 ); remove_action( 'woocommerce_external_add_to_cart', 'woocommerce_external_add_to_cart', 30 ); } } add_action( 'wp', 'joei_buttons' );
- This reply was modified 8 years, 3 months ago by joeistoybox.
- This reply was modified 8 years, 3 months ago by joeistoybox.