madeincosmos
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Schema error for aggregated product ratingsHi @bukers,
That’s a great question! WooCommerce doesn’t currently support schema.org microdata, as there hasn’t been enough interest in this yet. If you believe this should become a priority for our developers, please add your votes and comments to this suggestion on our ideas board:
In the meantime, you can check out the Schema Markup WooCommerce Plugin – we’re not the authors of this extension, but it seems to add the information you’re looking for.
Cheers!
Forum: Plugins
In reply to: [WooCommerce] How do you allow a product to be bought but with a note?Hey Rich,
The easiest way to achieve the result you’re looking for is with the ‘Allow backorders’ option: https://cld.wthms.co/jsh1sq
If you enable backorders and there’s 0 products in stock, the customer will see a backorder message on product and cart pages:
https://cld.wthms.co/tQ9wRhYou could use a translation plugin to customize this message to suit your specific needs.
If the product is currently in stock, the customers will be able to check out normally.
Does this look like something that would work for you?
Cheers!
Forum: Plugins
In reply to: [WooCommerce] WC()->cart->get_cart() is deprecated?Howdy!
WC()->cart->get_cart()
should certainly work with WooCommerce 3.x. Can you please let us know what the error message is? It would help a lot to understand where the error could be coming from.Cheers!
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Bookings = Not loading WebsiteHowdy!
We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please start a new thread.
Cheers!
Hi there,
WooCommerce doesn’t automatically regenerate downloadable product permissions on past orders – it would require very heavy database operations which could seriously slow down or overload the site so it was removed from WooCommerce core. You can always regenerate permissions on individual orders using the Actions menu on the order page: https://cld.wthms.co/5gDjyQ
If you absolutely need to generate permissions on all orders at once, I found a code snippet that should do this:
https://codegist.net/code/woocommerce-generate-download-permissions/
I’d recommend to try it out on a test site first as it can overload the site, and increase the PHP time limit after adding it.
Cheers!
Forum: Plugins
In reply to: [WooCommerce] Can’t update latest versionHowdy!
We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please start a new thread.
Cheers!
Hi @vinit-sharma!
@mumbomedia is right. What you describe sounds like default WooCommerce behavior if there’s more than 30 variations added. This is to speed up the product page loading, but you can use the filter
woocommerce_ajax_variation_threshold
to increase this limit.We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please start a new thread.
Cheers!
Forum: Plugins
In reply to: [WooCommerce] cannot integrate eshop (css)Hi Gabriel,
I’m not 100% sure if I understand you correctly. Are you looking for a way to make the widgets on the right flow under product / category items? https://cld.wthms.co/AvPKoW
If that’s the case, redoing the content wrapper is not enough – the widgets on the right are added inside a sidebar with its own floats and styling. Ideally you should probably look for a theme that has a widget area under main content rather than in the sidebar.
Cheers!
Hi @ashishtheword,
The code you’ve attached only creates the parent product and sets its attributes, but doesn’t create any variations. To do this we’ll need to create new objects of the
WC_Product_Variation
class and link them with the parent product:https://docs.woocommerce.com/wc-apidocs/class-WC_Product_Variation.html
Here is an example I found that you can use as a starting point:
Cheers!
Hi @tecken1,
Thank you for reporting the problem! What you describe is a caching problem introduced in version 3.2.1. It has been fixed in WooCommerce versions 3.2.2 and newer. Here is some background story:
https://github.com/woocommerce/woocommerce/issues/17377
The problem should be fixed for now, but please let us know if it’s still not working as it should.
Cheers!
Forum: Plugins
In reply to: [WooCommerce] Product Reservation/Not Booking!Hi @ricroman,
The easiest solution to achieve the result you’re looking for will be to reserve product stock when it’s added to cart. Even though it’s not a default feature in WooCommerce, I found a free plugin called **WooCommerce Cart Stock Reducer** – we’re not its authors, but according to the product page it seems to do the job.
Please note that this plugin wasn’t updated in a few months, so you might want to try it out on a test site first.
Cheers!
Forum: Plugins
In reply to: [WooCommerce] Change background of div class using product category IDsHi @jyogi,
Each product can have 0, 1, or more categories. You can use
$product->get_category_ids();
to find all categories assigned to a product, but the result will be an array. If you’d like to assign a background color depending on product category, @superkot’s solution with CSS classes will be much easier to do this.Cheers!
Forum: Plugins
In reply to: [WooCommerce] Duplicating ComponentsHi @adamboyle,
You should be able to duplicate all products in WooCommerce on the product list – when you hover over a product, there will be a small **Duplicate** link under its name:
Cheers!
Forum: Plugins
In reply to: [WooCommerce] There is a security hole in Rest API for couponHi @actsoneceo,
WooCommerce API only allows changing things remotely on your site to the users who know the API key and secret. This information is only available in WP Admin, so the customers shouldn’t have access to this.
We’re not the authors for the Sumo Coupons plugin, so I’m not 100% sure of how it works, but I found on the product page here that it has an option to generate a coupon for a comment or daily login:
https://fantasticplugins.com/sumo-coupons/
I’d recommend to review all plugin settings and make sure the coupons are only generated when you want it. The plugin authors will be able to help you with this:
https://fantasticplugins.com/support/
Cheers!
Forum: Plugins
In reply to: [WooCommerce] Add To Cart Button Re-Directs To HomePageHi @brandonberner,
This sounds strange, I haven’t seen the same problem on any site yet. If the problem still occurs, can you please let me know what is the product slug? What if you duplicate the product – does the same problem happen for the duplicate too?
It might be also worth revising if there are any redirects set in the
.htaccess
file. Here is the default WordPress.htaccess
file that you can compare with yours:https://codex.www.ads-software.com/htaccess
Cheers!