Woocommerce Price Not Showing - wordpress

I think this is a weird situation. Usually Woocommerce is a normal plugin, when I install it and Voila Ecommerce ready to use. But, when I install it in my staging server, the price never appear.
I try to debug, I print out all value on $product variable. All information I need is placed in there except "price", but regular price appear. If I put "Sale Price", the price appear, ofcourse 2 prices appear, regular and sale. So the function "$product->get_price_html()" was empty. I have tried to downgrade the Woocommerce version, the result is the same. Unlucky me. You can see it on dev.skripptek.com/kulkulfarm/shop
One problem more, if I use variations, it couldn't saved.
product dashboard
I put sale price at above, and below is null.
I have to googled it, and no one have my problems. It make me stressed and crazy. Is anyone have some problem with me? Please help, it's been 3 days.
Additional information
I already debugged Woocommerce. The "price" is never filled with value when I fill the regular price in DB, but when I fill sale price, the "price" filled automaticly with value.
When I try edit product with quick edit, price is also filled with value but not if I edit directly in edit post. Maybe someone in Automattic can help me with this?
Solved
I update this description, it is solved actually see and expand the comments below. Not sure why it happen, it is just happened in my staging server but in production working fine. Maybe need reinstall the WordPress installation or not compatible with apache version or mysql version.

I'm having a similar issue. It's been working fine with the current child theme (Dazzling) until towards the end of last year.
Products with variants however are behaving correctly. It's the simple product.. if I enter a new product and regular price, it doesn't show "add to cart" and on the previous multiple product listing screen it shows as "read more". If I put a sale price in, it works.
Also, If I remove/clear the sale price that was saved previously and save again, it still has the price I cleared. It's as if wordpress/woocommerce isn't updating the product on this section. All other areas, updating seems fine.
I did a temporary workaround, until this is resolved, by adding a sale price and scheduling it in the past.
I'm seeing a few posts about this issue and starting to suspect it an woocommerce/wordpress issue after an update? I can't be certain though.

Related

How Can I keep Selling Out Of Stock Products?

My client has just upgraded to a new POS system that manages stock and overwrites product data on woo/wp, and the client has had trouble with the "manage stock" setting being automatically applied on woo every time she updates a product on the POS system.
the idea of this is the product needs to show as available regardless of what the stock status. ALL products should show 'add to cart and be purchasable REGARDLESS of the stock status. Any idea how can I achieve that?
From the looks of it, this seems like an issue with the POS. I have tested enabling backorders on WooCommerce and was able to backorder products. Please see if you are able to share the code overwriting product data. As this probably shuts off the back order setting again.
My test case>
Product Configuration
Available Backorder
Page when setting is disabled. (what is probably happening to you)
If you are able to share part of the code I will be able to assist you with this issue because by the looks of it this is an issue with custom code and not with WooCommerce itself.
Keep in mind that this does look different from your webshop, as my test server is currently running a default WP theme.

woocommerce attributes not showing on front end

I have setup a Woocommerce store with hundreds of variable products (months ago). Everything has been working great with product variations/attributes so far, but today I got a message saying that customers are unable to pick a size for some of our products.
So, I have been looking into this, but I do not see why this is not working as intended...
I have set the attributes correctly on the back-end, I know this because it has been working as intended for the last 6+ months. I have also looked at the attributes & variations settings for these products, and they are all still set correctly.
Then, I double-checked to make sure the variation still had a price set, which it does.
Then, I checked the front-end of the site, and sure enough, the "size" attributes no longer show any options.
Any thoughts on why this might be? I have looked around stackoverflow a bit already... and the only thing I have found that I haven't tried yet, is: disabling all the plugins and reverting the site's theme to a default theme... I am really trying to avoid going down that road...
Sample URL (manually set product "Size" attributes on product page back-end):
https://www.worldequestrianbrands.com/product/contour-all-purpose-pad-with-bare-flaps/
Any/all help is greatly appreciated!
WordPress: 4.7.4 - WooCommerce: 3.0.5
Update #1:
Follow up:
After investigation, and an email from a fellow stackoverflow user, I have narrowed this down to a plugin version incompatibility with WooCommerce 3.0.5. Rolling back to WC 3.0.4 restored all the products' custom attributes to the front-end of the site. I am not sure what or why this issue happened, all I know is that rolling back WC was as a temporary workaround.
More Info:
When I first posted this issue on stackoverflow, I was running WC 3.0.5. When running that version, this was my experience:
I have Variable Products setup with multiple Custom Attributes (set for each product, not through the WooCommerce > Attributes settings admin-sidebar feature of WC).
If I went to edit a Variable Product with custom attributes, all of custom attributes showed up fine on the back-end, but only 1 of the custom attributes would not show any options on the front-end (e.g. "size" attribute).
Looking again at the back-end of the product, the size attribute is listed, with variations, and a set price.
I tried clicking "Update" on a product, just to see what would happen, and when the back-end page reloaded, the custom attribute I set was gone (e.g. "size").
So, I figured it wasn't loading that Custom Attribute for some reason, so I went to the proper: WooCommerce > Attributes, and set the "size" attributes there
Then went back to the variable products, and added the newly set "size" attributes, from the proper WooCommerce > Attributes that I setup
Clicked "Update" to commit the changes, and there we go, now the "size" attribute shows up correctly on the front-end
I manually updated over 100+ products this way
A fellow stackoverflow user emailed me and mentioned he had the same issue, but rolling back to WC 3.0.4 worked for him, as a "workaround"
I rolled WC back from 3.0.5 > 3.0.4, and boom, all the Custom Attributes we have set are now loading on the front-end of each product, as intended.
So, after all of that... I am still not sure exactly what is causing the issue, all I know is rolling back WC seems to allow certain Custom Attributes to be displayed again, on the front-end.
If I find out anything else, I'll be sure to update here!
Thank you again for any/all help with this! I am glad this 'workaround' is possible, for now, but the root of the issue is still unresolved.
I have not looked at any PHP or any other server logs yet, due to limited time, but I am happy to report any follow up info I can - or the actual issue AND solution! :)
Any other insights are greatly appreciated! I am still curious why this is happening...
Cheers!
Update #2:
This seems to be a known issue with WooCommerce 3.0.5, as stated on github
"We've identified the cause of the errors. This issue happens when you have a custom attribute with the same name as a global attribute. We're working on a fix now."

Woo commerce - variable product prices missing from WP

hoping for some help.
We use the following - Wordpress/ woo commerce /wcvendors pro. Prices for variable products are disappearing from wp engine view despite being in the product variation information. It doesn't impact every product on our site but a fair few. How it occurs is, the price is disappearing when you go in and edit the product. If we quick edit the product the price reappears. But it will dissapears again if we use the edit button. Initially the problem started because under the "Products" and "Inventory" We had checked the following setting: "Hide out of stock items from the catalog". Now this button is not ticked but it is still causing us issues.
It seems you have an error on the product page which cause the price not to be saved.
There can be some reasons, here are two I see occasioanlly:
PHP error is caused during the save, and therefore the data is lost. WordPress and WooCommerce works flawlessly together, so the first suspects are other plugins and your theme. Try first to turn off all your plugins and switch to another theme to see if this happens again. If not try to activate your theme, and recheck, and then the plugins one after the other, and check after each activation, until you find the one makes the problem.
Too many data is being saved at one time. It can be too many variations or too many custom fields. This can be fixed by changing some PHP settings. Please have a look here especially under the WPEngine note, and also check this plugin.

WooCommerce - Price not including tax on mobile view

(This question is asked over on the Wordpress Stack Overflow, but no one seems to want to answer, so I'm putting it here)
I have a quick question. I have a site http://frenchicpaint.co.uk Everything is fine, except...
When you view thew site on a mobile/iPad, prices are shown exclusive of tax, yet when you view the site on a desktop the prices are inclusive of tax...?
I've only just noticed it, and can't see any option to change it...
Anyone have any ideas how I can get the prices to show INCLUSIVE of tax on the mobile version?
Thanks
Solved it! In woocommerce settings tax the option must be tax based on shop adress - if not the prices are shown excl tax waiting for the customers adress to calculate tax... Why it only affected the mobile view I dont know.
I have just discovered that I have the same problem :-( at http://sqoop.no/produkt/adventure-food-biff-satay/
I wonder if it appeared after one of the recent upgrades. My site is still in catalogue mode, perhaps this has an effect? Im looking for a solution and will post it here if I get it.
.. found this answer:
"mikejolley commented 9 days ago
You'd need to change the "Display Prices in the Shop" option based on user agent. Not something core will do for you".
Im not sure what "option based on user agent" meens, but it seems to solve the problem for the guy who posted the question.

woocommerce variation/add to cart not showing

so, I have coded a wordpress theme and integrated woocommerce with it. It has used only simple products for some time, and I was using a simple product to test codes, as it works fine. But I recently added a variation product and then, the add to cart button also gone ( variation select dropdown is there, but values are not bonded to drop down.
If anyone can give me a hint, showing what I have done wrong, that would be a big favor.
I just got the same issue and it solved when I manually entered a price for the variable products. Unfortunately I didn't find out yet why I have to enter it, even for the same value. But it fixed it.
Hope it helps !

Resources