Tony Brocklebank
Forum Replies Created
-
Thanks, I’ve just sent a sample of the file over.
It’s a bit odd, I’ve tried it with the snippet on a single existing product and it works.
As soon as there is more than one new product it doesn’t work.
Import works without the snippet but it doesn’t solve the out of stock problem.
- This reply was modified 6 years ago by Tony Brocklebank.
- This reply was modified 6 years ago by Tony Brocklebank.
Hi,
Thanks, I’ve updated the plugin and added the snippet but it seems to have stopped the import working?
The header comes up – i.e. “Row SKU Product Status Message” but then it just seems to be hanging. I’ve left it running for about five minutes nothing seems to be happening?
Tony
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] HTML problemThanks, I can manage the template replacement (I think) I’ll give it a go.
I don’t do many reviews – but I’ve given it my best shot!
Thanks again for all your help.
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] HTML problemThat’s removed the SKU as well, but I guess I can live with that!
That’s fantastic – brilliant support!
Is there a way make a donation to buy you a few beers to say thanks?
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] HTML problemIs that URL ok?
Yes, it’s the category list under the product name, after the SKU
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] HTML problemAbsolutely superb! Thank you!
I still need to get rid of the category list at the top of the page – can you help with this? Sorry to ask?
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] HTML problemI tried but I can only do it form the email and get the same error – can you repost it here – I can’t see it on the old topic?
Sorry about this!
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Moving categories to a tab globallyIt’s worked but the wrong way round.
The top level parent tags are still there, but the sub categories and lowest level categories have gone.
I was trying to get just the lowest level categories to display?
It might be the way I’ve explained what I needed?
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Moving categories to a tab globallyIt’s sort of worked but the wrong way round?
It’s removed the parent tag for Toshiba, but left all the other lower level tages, but removed all the product categories?
Unless I’ve done something wrong?
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Moving categories to a tab globallySorry, ignore all that – I’d copied from the email – when I copied it from here it worked!
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Moving categories to a tab globallyI’m probably doing something wrong, I’m getting the following error:
Your PHP code changes were rolled back due to an error on line 35 of file wp-content/themes/maxstore-child/functions.php. Please fix and try saving again.
syntax error, unexpected ‘function’ (T_FUNCTION)
Have I added it in the right place? The file is :
<?php // Exit if accessed directly if ( !defined( 'ABSPATH' ) ) exit; // BEGIN ENQUEUE PARENT ACTION // AUTO GENERATED - Do not modify or remove comment markers above or below: if ( !function_exists( 'chld_thm_cfg_locale_css' ) ): function chld_thm_cfg_locale_css( $uri ){ if ( empty( $uri ) && is_rtl() && file_exists( get_template_directory() . '/rtl.css' ) ) $uri = get_template_directory_uri() . '/rtl.css'; return $uri; } endif; add_filter( 'locale_stylesheet_uri', 'chld_thm_cfg_locale_css' ); if ( !function_exists( 'chld_thm_cfg_parent_css' ) ): function chld_thm_cfg_parent_css() { wp_enqueue_style( 'chld_thm_cfg_parent', trailingslashit( get_template_directory_uri() ) . 'style.css', array( 'bootstrap' ) ); } endif; add_action( 'wp_enqueue_scripts', 'chld_thm_cfg_parent_css', 10 ); if ( !function_exists( 'child_theme_configurator_css' ) ): function child_theme_configurator_css() { wp_enqueue_style( 'chld_thm_cfg_separate', trailingslashit( get_stylesheet_directory_uri() ) . 'ctc-style.css', array( 'chld_thm_cfg_parent','maxstore-stylesheet','font-awesome' ) ); } endif; add_action( 'wp_enqueue_scripts', 'child_theme_configurator_css', 20 ); // END ENQUEUE PARENT ACTION add_shortcode( 'yikes_display_product_categories', 'yikes_display_product_categories' ); function yikes_display_product_categories() { global $product; if ( ! is_object( $product ) || empty( $product ) ) { return; } $product_id = $product->get_id(); $product_terms = get_the_terms( $product_id, 'product_cat' ); if ( empty( $product_terms ) ) { return; } $shortcode_html = ''; $shortcode_html .= '<ul class="yikes-product-cats-shortcode">'; foreach ( $product_terms as $term ) { // Filter out Toshiba and child cats. if ( ! empty( $term->parent ) || $term->name === 'Toshiba' ) { continue; } $shortcode_html .= "<li>{$term->name}</li>"; } $shortcode_html .= '</ul>'; return $shortcode_html; }
- This reply was modified 6 years, 1 month ago by Jan Dembowski.
Forum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Moving categories to a tab globallyThanks! Just realised I’ve emailed you instead of replying here, hope that’s ok?
Forum: Plugins
In reply to: [WP Fastest Cache] Possible caching problemFantastic support – thanks!
Forum: Plugins
In reply to: [WP Fastest Cache] Possible caching problemWill do.