ColorlibHQ / pixova-lite

A modern design with clean lines and styling for a wide variety of content. Exactly how a business design should be. Pixova features a custom parallax, randomised header - you can add as many images as you want to the main header area. Animations have been added, theme is optimized for loading speed.
https://colorlib.com/wp/themes/pixova-lite/
Other
1 stars 11 forks source link

Problem with inventory #95

Open nodarik opened 5 years ago

nodarik commented 5 years ago

Reported here: https://colorlib.com/wp/forums/topic/pixova-1-22-1-woocommerce-bug-with-inventory/

Shortly:

I have a bug in inventory management in Woocomerce when the Theme is active. I have tried switching themes to twenty seventeen and the bug disappears. When an order is placed on an item that has inventory management switched on the stock level should decrease by the amount ordered but it Pixova is live instead the stock level is overwritten with the negative stock amount.

E.g Initial Stock = 100 Order Quantity = 4 If Theme is Twenty Seventeen – New Stock Level = 96 If Theme is Pixova – New Stock Level = -4

indeed i tested it and its not working

razvanaldea89 commented 5 years ago

Can't seem to replicate this issue. Could you tell me what version of woocommerce it is used?

robwalsh commented 5 years ago

WordPress 4.9.9 Pixova: 1.22.1 Woocommerce 3.5.4

robwalsh commented 5 years ago

I can provide a temp login (privately) if you want to see it in misbehave under Pixova and then behave under Twenty Seventeen

razvanaldea89 commented 5 years ago

Seems like a function from the importer is messing with the post meta update. Looking for a solution to fix this issue.

robwalsh commented 5 years ago

How is it coming along @razvanaldea89 ?

razvanaldea89 commented 5 years ago

@robwalsh to make sure, are you using the lite or the pro version of pixova theme ?

robwalsh commented 5 years ago

I'm on Pro v1.22.1 (I'm happy to try a patch if you need a tester)

razvanaldea89 commented 5 years ago

So, the Pro version isn't supported anymore, but I can give you the modifications I made so you won't have anymore problems with the inventory. If you have access to files go to pixova-pro->framework->importer->macho-importer.php and comment line 176 with the update_post_meta($post_id, $meta_key, $meta_value); This is a fix if you don't want to import demos anymore ( and I assume you won't be importing )