CharlyIBC
Forum Replies Created
-
Forum: Plugins
In reply to: WooCommerce – exclude category from shopI cannot say this will work for you, but of all I tried, it did the trick for me. I’m using WooTheme Mystile and WooCommerce 2.1.2 with WP 3.8.1
Under the custom Theme Functions.php or your childtheme functions.php place this code:
/* Exclude Category from Shop*/ add_filter( 'get_terms', 'get_subcategory_terms', 10, 3 ); function get_subcategory_terms( $terms, $taxonomies, $args ) { $new_terms = array(); // if a product category and on the shop page if ( in_array( 'product_cat', $taxonomies ) && ! is_admin() && is_shop() ) { foreach ( $terms as $key => $term ) { if ( ! in_array( $term->slug, array( 'project1', 'susan' ) ) ) { $new_terms[] = $term; } } $terms = $new_terms; } return $terms; }
The only thing you need to replace is ‘project1‘, ‘susan‘ Now these are 2 categories that are not shown on a shop page and the slug names for the categories removed. For instance if you want to remove category1, look up the slug you used and put that in single quotes. If it’s category 1 then this is the slug code you’d use: ‘category1’
If you just want 1 cat., then remove the comma ‘susan’ or if you want more removed, just add a comma after ‘susan’, ‘newcategory’, ‘anothercategory’ and so on. Hope this works for you!
Forum: Plugins
In reply to: [WooCommerce] Remove login from checkout page in WooCommerceatgdesign if you use Firebug or whatever web dev tool, you can right click on the box and find what you need to put in your custom.css or child.css as display: none; But you need to be sure you use the right ccde.
If you don’t know how to do this, post a link to your site for someone to assist in the code you need.
Forum: Plugins
In reply to: [WooCommerce] Proceed to Check – Returning Customer – BrokenIf memory serves, with Enable Guest Checkout ticked, that still leaves the box for customer account login. If you want to remove that all together, because you don’t use customer account logins, please post a link to your site. I tried finding the code I used, but too many lines of custom code to go through.
Forum: Plugins
In reply to: [WooCommerce] Need help with code to remove autocomplete in checkoutIn case you need all the code to help out:
https://docs.woothemes.com/wc-apidocs/source-class-WC_Form_Handler.html#7-897
Forum: Plugins
In reply to: [WooCommerce] Variable products -> only dimensionsIf I’m understanding correctly, yes. Under Attributes I have 3: Print Options, Extras, More Options and variables are set to the combinations available. So you’re able to set them up in any way you like. Personally I preferred to put the size of prints and medium along with price in my Print Options. The extras and more options pertain to what can be added free or at extra cost.
Tip: If you set your attributes in WC attributes to use with products it will save time. I didn’t know that at first, so just passing it on.
If you’d like to see what I’m speaking to:
Forum: Plugins
In reply to: [WooCommerce] Block sales in British Columbia Canada?Go to https://www.woothemes.com, sign in, then click on Submit a Ticket in the menu
Jennifer – Have you tried another theme, like Twenty Fourteen to see if you can save a product with price? If that works then you know it’s your theme causing the issue. Have you tried deactivating plugins to see if one of them is the cause?
If you still cannot find what is causing the issue after the above, I’d suggest contacting the Ninja’s by submitting a ticket.
Forum: Plugins
In reply to: [WooCommerce] Block sales in British Columbia Canada?My apologies. I just remembered reading something about excluding by certain providence or zip codes a while back. I was looking for something else when I happened upon it. Though may not be a timely solution, I would submit a ticket to the WC Ninja’s to see if they can point you in the right direction on this.
Personally I think it was a bad idea to not give the option for users to use old or new variation in price. That said, I wish I was better at code to help you out.
But I will say that I find it strange why that much code is needed. If this was my issue, I’d set my Coming Soon plugin saying I was doing maintenance so no one would see if I took my site to white screen or not and I’d remove that code; cut/paste somewhere safe. Then I’d play with .css and/or function/action to get what I wanted. Of course within my custom .css and theme functions, as I don’t use a child.
Although I hope someone else can help you out. Good luck!
Let me preface by saying I’m not a coder by any means. But what I do know is I had one function stopped working after updating to 2.1.2 and the reason was they changed woocommerce to wc in that particular function. So I’d look for the function code to see what they changed, if anything, and fix code with what you find. Or you might have a look here:
Hope you get things worked out.
Forum: Plugins
In reply to: [WooCommerce] Block sales in British Columbia Canada?Have you tried excluding BC from Countries you sell to under the General tab > General Option in WC settings?
For instance, I have Selling Location(s) set to Sell only to specific countries and under Specific Countries I have only United States. That means only the States in the US will show up in checkout. Hope this helps.
I can see on the example w/o price showing that the div class for single variation is empty. This is the div that puts in the code for prices on your site.
Have you put in an special .css or function/action related to prices on your site?
Forum: Plugins
In reply to: [WooCommerce] Featured Image Not ShowingMy apologies for not understanding exactly what you wanted. If you want to put images on the shop page above everything, try inserting them above the code for the moving slider. Hope this now works for you.
Forum: Plugins
In reply to: [WooCommerce] Featured Image Not ShowingOh! Well to set that you would do it in your site header/banner/logo settings. Or do you want it to be different from your other pages? Even then you wouldn’t change that within the Shop page itself. ??
Forum: Plugins
In reply to: [WooCommerce] Featured Image Not ShowingAh now I understand one thing. lol The page options are not inherent to WC, but your theme. Perhaps ask about this issue on their support page?
As to the Featured image, not sure what you are wanting instead of what you have. I see a moving slider of featured products and below that thumbnails of your products listed which cover 3 pages. So that’s not what you want on your Shop page? What would you like?
I don’t think you can to set a featured image for the shop page. If you did get it to work, I think it would remove all the product images. Certainly don’t quote me on that though.