somerandomdude
Forum Replies Created
-
Forum: Plugins
In reply to: [Wash Care Symbols for WooCommerce] custom tabI was having white screen of death. That fixed it, thank you!
Forum: Plugins
In reply to: [Wash Care Symbols for WooCommerce] custom tabBtw I forgot to say the above code worked very well, thank you.
Forum: Plugins
In reply to: [Wash Care Symbols for WooCommerce] custom tabGreat update, though for now I’ll keep the older version as 4.0 breaks my site with these changes and unfortunately I don’t have time to reassess everything atmo. I’m also utilizing additional custom fields inside the same tab.
Does your new tab update include the only appears if information actually put in it?
I have a couple of recommendations:
– Maybe also have a customizable field above or below the table for inserting any custom text or shortcodes, such as: Use the care instructions below carefully to ensure your product stays the best shape for as long as possible”, or maybe somebody wants some custom image or shortcode to a UX block or whatever in the same tab.
– Add also care instructions for ceramics, wood or glass products, like microwave safe/do not microwave and dishwasher safe/ hand wash only type thing.
Anyway, it’s just suggestions and feedback, not a complaint. Good work on the new update and thanks again!
Forum: Plugins
In reply to: [Wash Care Symbols for WooCommerce] custom tabBtw you really saved me today, thank you for helping.
Next time I need to hire a php dev I’m coming to you!!
Forum: Plugins
In reply to: [Wash Care Symbols for WooCommerce] custom tabNvm. I got it working. Sorry for confusion. I had some {} in the wrong place. This is working now completely for the tab itself. If I don’t put any care instruction information in then the tab does not display.
add_filter( 'woocommerce_product_tabs', 'woo_custom_product_tabs' ); function woo_custom_product_tabs( $tabs ) { global $post; $wcsfwc = WashCareSymbolsForWooCommerce::get_instance(); $instructions = $wcsfwc->get_product_values(); if ($instructions) $tabs['_care_instructions_tab'] = array( 'title' => __( 'Care Instructions', 'woocommerce' ), 'priority' => 20, 'callback' => 'woo__care_instructions_tab_content' );However, it still doesn’t display the table as it usually appears; it only display the icons (however this could actually can be beneficial also).
Forum: Plugins
In reply to: [Wash Care Symbols for WooCommerce] custom tabMy apologies, I just realized this isn’t working correctly, as it’s not displaying the table with the text either. It’s only displaying the icons.
Also, would you happen to know how to get the tab also to hide if there is no content?
So I tried using your same code from the tab content, onto the tab itself but couldn’t get it to work. Would you perhaps know a solution? I’ve added the size-guide code also I use to show or hide the tab depending if there is custom field meta data present or not.
add_filter( 'woocommerce_product_tabs', 'woo_custom_product_tabs' ); function woo_custom_product_tabs( $tabs ) { global $post; // Adds the Care Instructions Chart tab $wcsfwc = WashCareSymbolsForWooCommerce::get_instance(); $instructions = $wcsfwc->get_product_values(); if ($instructions) { $tabs['_care_instructions_tab'] = array( 'title' => __( 'Care Instructions', 'woocommerce' ), 'priority' => 20, 'callback' => 'woo__care_instructions_tab_content' ); // Adds the Size Chart tab $product = wc_get_product($post->ID); $custom_fields_woocommerce_title = $product->get_meta('_size_chart'); if ($custom_fields_woocommerce_title) $tabs['size_chart_tab'] = array( 'title' => __( 'Size Chart', 'woocommerce' ), 'priority' => 40, 'callback' => 'woo_size_chart_tab_content' );Forum: Plugins
In reply to: [Wash Care Symbols for WooCommerce] custom tabyou’re an absolute hero. it works!
thank you!
all the best.
Forum: Plugins
In reply to: [Wash Care Symbols for WooCommerce] custom tabI’m currently also displaying the tabs only if there is content inside them using the code below, but get_meta checking for my custom fields.
I’m wondering is there a way we can call your overall meta to check also if there is content? Something like this?
$product = wc_get_product($post->ID); $custom_fields_woocommerce_title = $product->get_meta('_yourpluginmeta'); if ($custom_fields_woocommerce_title)Forum: Plugins
In reply to: [Wash Care Symbols for WooCommerce] custom tabfunction woo__care_instructions_tab_content() { global $product; echo i want your care instructions to display here; }Forum: Plugins
In reply to: [Zesty Emails Custom Template Designer for WooCommerce] Tons of bugssocial media icons do not display or work correctly.
Should I just uninstall this or is this going to actually be useable?
Forum: Plugins
In reply to: [Zesty Emails Custom Template Designer for WooCommerce] Tons of bugsAlso, the test emails being sent are NOT displaying correctly. They do NOT appear as they do in the plugin. They instead appear with the content, but zero formatting, padding, margins etc.
Forum: Plugins
In reply to: [Zesty Emails Custom Template Designer for WooCommerce] Tons of bugsAlso it would be nice if you actually named the sections, so people know we’re editing the header, content or footer.
it works, thank you.
Forum: Plugins
In reply to: [WooCommerce] Setting up secure downloadsFor anyone wondering…
It was because I forgot the / at the start to make absolute path.
Forum: Plugins
In reply to: [Ultimate Member Custom Tab Builder Lite] Tabs for Account Page?I didn’t want faster support. Actually, I want you to DELETE the question and comments.