D Smith a11n
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Filer Out of stock on particular page.Hey buddy!
This guy has an answer that shows only out-of-stock products: https://tarei.me/2014/02/03/build-custom-wp-query-loop-getting-woocommerce-stock-products/
In your case, since you want to show in-stock items only, you can change
'value' => 'outofstock',
to'value' => 'instock',
- This reply was modified 8 years, 1 month ago by D Smith a11n.
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Price Filter WidgetHey buddy!
This sounds like a straight-up code conflict, unfortunately. Your options are to either choose between whatever you’re using jquery-cookie for and Price Filter, or dig deep enough to sort out exactly where the conflict is taking place.
If you look at an affected page using Developer Mode (available for instance in Chrome or Firefox) you should be able to at least begin to sort out just where and how the conflict is occurring, which is the first step to trying to resolve it.
Hi Julius!
You can do this, although it’s slightly complicated. That statement & functionality is in the file woocommerce/includes/class-wc-cart.php — specifically, at line 919:
// Force quantity to 1 if sold individually and check for existing item in cart if ( $product_data->is_sold_individually() ) { $quantity = apply_filters( 'woocommerce_add_to_cart_sold_individually_quantity', 1, $quantity, $product_id, $variation_id, $cart_item_data ); $in_cart_quantity = $cart_item_key ? $this->cart_contents[ $cart_item_key ]['quantity'] : 0; if ( $in_cart_quantity > 0 ) { throw new Exception( sprintf( '<a href="%s" class="button wc-forward">%s</a> %s', wc_get_cart_url(), __( 'View Cart', 'woocommerce' ), sprintf( __( 'You cannot add another "%s" to your cart.', 'woocommerce' ), $product_data->get_title() ) ) ); } }
That is where the behavior around that action occurs, and is where you’d insert any other behavior you wanted (such as redirecting to the checkout page).
Forum: Plugins
In reply to: [WooCommerce] Product featured image linkHi there!
There absolutely is– a lot of this behavior depends on your theme and the templates it uses.
Here is an intro to overrides, which are the most update-safe way to tweak the behavior.
Hey there!
It’s hard to diagnose without knowing the address of your site– but does it only happen when you have two items in the cart? Does changing the address it’s shipping to make a difference? I wonder whether the issue might be the default customer address falling into a Shipping Zone that lacks one or both of those methods…
Forum: Plugins
In reply to: [WooCommerce] Problems with woocommerce my account pageHello!
Good call on trying a default theme and disabling other plugins– those are always crucial testing steps.
The next question I’d have is whether you have your WooCommerce Pages declared correctly, as described here: https://docs.woocommerce.com/document/woocommerce-pages/
Forum: Plugins
In reply to: [WooCommerce] coupon exclusion not workingHey Nicole!
What error message is the coupon giving you? That’ll be the first clue to unraveling this mystery!
Forum: Plugins
In reply to: [WooCommerce] .wp_woocommerce_termmeta’ doesn’t existHi there!
Without knowing the address of your site (and thus not knowing just how much data your tables contain), this sounds to me like it might be easier and faster to export your data, do a clean install of WordPress and WooCommerce, and then re-import– rather than trying to repair the tables by hand.
Forum: Plugins
In reply to: [WooCommerce] change the product detail when adding to cartHey there!
There is discussion here about how to override set prices in WooCommerce.
As they note on that page, to override prices for each item in the cart separately, you’d need to save the overridden product prices into the session using the hook woocommerce_add_to_cart.
Forum: Plugins
In reply to: [WooCommerce Stripe Payment Gateway] error on checkoutHello!
Issues like this are sometimes caused by a conflict with another WordPress plugin or your theme. Can I ask you to temporarily disable all non-Woo plugins and see if that resolves the issue? If it does, then you can slowly re-enable the plugins until you find the one causing the conflict.
If the step above does not resolve the issue, the next step is to switch back temporarily to a default WordPress theme like Twenty Sixteen and check again to see if that fixes the problem.
Forum: Plugins
In reply to: [WooCommerce] ajax=get_refreshed_fragmentsHi @lazariev!
There is lots of discussion of (and solutions to) your question in this thread: https://www.ads-software.com/support/topic/wc-ajaxget_refreshed_fragments-1/
Forum: Plugins
In reply to: [WooCommerce] Last product as title!?Intriguing!
Have you told WooCommerce what pages to use for your shop? If you set a page as your shop, you should be able to title it whatever you want!
You might also want to check whether your theme is the problem by switching temporarily to a default theme like Twenty Sixteen, and seeing if that changes anything.
Forum: Plugins
In reply to: [WooCommerce] Can’t set” add” a product imageHi Nancy!
What a confounding problem. Are you able to add any images at all to your website? If not, that may be the root of the issue!
I recommend checking with your host to make sure you have enough storage space and that your upload permissions are correctly set.
It’s also worth asking– do the images you’re trying to add have very large file sizes? If so, it’s worth searching plugins for an image optimizer plugin and seeing if that makes a difference!
Forum: Plugins
In reply to: [WooCommerce] How do I add a custom headerAn easy way to do this if you don’t have a lot of pages is just to add a series of page-specific header calls to custom.css.
For each page you want to add a custom header for, add the following, with PAGEID replaced by the page’s id and IMGURL by the address where the header is located
.page-id-PAGEID #header { background: url("IMGURL") no-repeat scroll 0 0 transparent; }
- This reply was modified 8 years, 1 month ago by D Smith a11n.
Forum: Plugins
In reply to: [WooCommerce] How to display the products out of stock always in the end?Hi there!
There is an extension called “WooCommerce Extra Product Sorting Options” by SkyVerge that does this– might be worth checking out!
https://www.ads-software.com/plugins/woocommerce-extra-product-sorting-options/