stevehoo
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce Cart Stock Reducer] Out of stock noticeI’m here with the same woe after updating to WooCommerce 3.0.1. I can confirm the easy fix works well. Thank you for the prompt fix.
Forum: Plugins
In reply to: [Homepage Control] Plugin doesn't workIs
Settings > Reading > Front page displays > Front page
set to a page you’re using for your home page?On that page’s editing version, are you able to set the
Page attributes > Template
to ‘Homepage?’Forum: Plugins
In reply to: [WooSidebars] Widgets disappearing when returning to widgets adimin pageI had this. I deleted the sidebar, started again. All is well now.
Forum: Plugins
In reply to: [Homepage Control] Plugin doesn't workWorking for me now. Somehow the homepage template jus would get used. Finally, somehow the homepage template has taken.
All is wellForum: Plugins
In reply to: [WP-Lister Lite for eBay] How to: remove anchors from around attached imagesAh, sorry, I wasn’t asking anything, just saying what had worked for me, adding to the footsteps in the snow.
Loving the plugin.
SteveForum: Plugins
In reply to: [Permalinks Customizer] Breadcrumbs & WoocommerceForum: Plugins
In reply to: [WooCommerce] Duplicate Slugs for CategoriesWHAAAAAAAAA!??? No duplicate slugs? Truly, I couldn’t believe this, I searched and searched and discover, indeed such a simple, normal, ordinary url structure is banned in WordPress/Woocommerce. Bug? More like deeply flawed.
I’ve tried every plugin I thought could fix it. The mysterious “Duplicate category paths” plugin doesn’t exist. Nothing works.
I’ve had to work around by using file names to indicate path structures.
Instead of:- mysite.com/mens/trousers – a normal cateogory
- mysite.com/mens/trousers/denim – a nested product page
- mysite.com/womens/trousers-1/denim-1 – a nested product page with allowed slugs
I’m going for:
- mysite.com/mens-trousers – a page, made to look like a cateogory
- mysite.com/mens-trousers-denim – a product page
- mysite.com/womens-trousers-denim – a product page
Categories seem useless. I’ll use tags and use this
[woo_products_by_tags tags=”denim”].
Probably, all of my products will thus be at one level. But at least my urls will be friendly.
Madness.
Be happy for ever,
SteveForum: Plugins
In reply to: [Homepage Control] Plugin doesn't workI’ve the same problem. The lights are on but nobody is at home. It looks like it’s working, but it isn’t.
On digging deeper I installed Show Current Template plugin and I spy that although I’ve specified the static front page use the homepage template it doesn’t. It’s using archive-product.php
I don’t know why nor, as yet, how to correct this.
HTH,
SteveForum: Plugins
In reply to: [YOURLS Link Creator] Yourls url for achivesThank you for the clarification. In your spare, spare time; if there were a replacement for wp_shortlink i.e. yourls_shortlink that would be fab ??
Raining here on a Saturday & working too in my spare time.
Be happy for ever,
SteveForum: Plugins
In reply to: [YOURLS Link Creator] Yourls url for achivesArchive pages get so little love, and they’re so important. I see wp shortlink gets the first product/page/post in the loop and I can’t find a way round it.
Forum: Plugins
In reply to: [YOURLS Link Creator] Yourls url for achivesI came here looking for this too.
[woo_multi_currency]
[woo_multi_currency_pain_horizontal]
[woo_multi_currency_pain_vertical]
[woo_multi_currency_layout3]
[woo_multi_currency_layout4]
[woo_multi_currency_layout5]Finally found them. Tsk!
I have the pro version – love it, but cannot find the extra shortcodes – anywhere!
Forum: Hacks
In reply to: Add variation to the added to cart messageI didn’t. I dig through Google, deeper this time, found this. And made this. It works for me but I’ve taken much of the error checking out.
Hope it helps others.add_filter('wc_add_to_cart_message', 'handler_function_name', 10, 2); function handler_function_name($message, $product_id) { $variation_id = isset( $_REQUEST[ 'variation_id' ] ) ? $_REQUEST[ 'variation_id' ] : null; // Collect the product, product variations and attributes $var_product = get_product( $variation_id ); $variations = $var_product->get_variation_attributes(); $attributes = $var_product->get_attributes(); $name_output = null; if ( is_array( $variations ) ) { foreach( $variations as $key => $value ) { $key = str_replace( 'attribute_', '', $key ); // Clean the attribute name $attribute = $attributes[$key]; // Get the attribute data // Check if the attribute is a taxonomy if( $attribute['is_taxonomy'] ){ // Get the taxonomy name $attr_name = get_term_by( 'slug', $value, $key, 'ARRAY_A' ); $attr_name = $attr_name['name']; } else { $attr_name = ucwords($value); // Clean up the custom attribute name } $name_output[] = $attr_name; // Load them into an array to be imploded } } $product_title = get_the_title( $product_id ); // Get the main product title $product_title .= ( $name_output ? ' Edition Number ' . implode( ', ', $name_output ) : '' ); // Add variation(s) if not null $added_text = sprintf( __( '"%s" was successfully added to your cart.', 'woocommerce' ), $product_title ); // Output success messages $return_to = apply_filters( 'woocommerce_continue_shopping_redirect', wp_get_referer() ? wp_get_referer() : home_url() ); $message = sprintf( '<a href="%s" class="button wc-forward">%s</a> %s', $return_to, __( 'Continue Shopping', 'woocommerce' ), $added_text ); $message = sprintf( '<a href="%s" class="button wc-forward">%s</a> %s', wc_get_page_permalink( 'cart' ), __( 'View Cart', 'woocommerce' ), $added_text ); return $message; }
Forum: Hacks
In reply to: Add variation to the added to cart messageOK James. Newbie apologies.