-
Author
-
December 13, 2014 at 01:18 #38930ellosParticipant
Hi, the moment I add the discount price to variation in WC I get the error:
Warning: Division by zero in /home/gansello/public_html/wp-content/themes/kleo/lib/plugin-woocommerce/config.php on line 459
Please also see the screenshots.
Thanks.Elijah.Attachments:
You must be logged in to view attached files.December 13, 2014 at 01:31 #38939ellosParticipantLooks like it is something with the child theme… the moment I deactivate it the error disappears.
December 13, 2014 at 01:35 #38940ellosParticipantYep, seems like a bug – I’ve removed all lines of code I had in functions.php in child theme and the error is still there.
December 13, 2014 at 02:22 #38960ellosParticipantNope, after a while it started showing even in the main theme…. not sure what is it.
December 13, 2014 at 02:30 #38961ellosParticipantOK, narrowed it down, it’s a combination of 2 factors, but still looks like a bug. If yo do the following:
1. In the Theme Options > Woo Commerce specify Show percentage badge on products list
and
2. Use Sale price in Variation of the product, then you get“Warning: Division by zero in /home/gansello/public_html/wp-content/themes/kleo/lib/plugin-woocommerce/config.php on line 459”
So it has nothing to do with child theme. (The reason I was not seeing in the main theme is becasue when I switched to it it cleaned all the setting in Theme Options back to defaults).
So I guess we can officially call it a bug.
Thanks.
Elijah.December 15, 2014 at 18:20 #39187AbeKeymasterHi, until next update please see this fix https://archived.seventhqueen.com/forums/topic/woocommerce-error-when-variation-on-sale
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.December 16, 2014 at 06:53 #39249ellosParticipantThe error is gone, but for some reason discount percentage is not calculated.
Please see attached (still shows 0%)Also – just to make sure that I did the right thing:
1. I saved wp-content/themes/kleo/lib/plugin-woocommerce/config.php as config.php.orig
2. Created new config.php in the same dorectory and copied all the content to this files from the one in your link.Thanks
ElijahAttachments:
You must be logged in to view attached files.December 17, 2014 at 17:53 #39489AbeKeymasteryes the procedure is fine. let me do some checks since I think from the screenshot I need to make some more variations to test
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.December 18, 2014 at 00:02 #39519AbeKeymasterindeed there were some extra checks needed and now the percentage is correct. I changed the attached file from the post above so re-download it and do the change again.
Thanks
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.December 24, 2014 at 21:16 #40273ellosParticipantSorry, Abe, was away, holiday season. Just to make sure, cause I’m a bit lost… when you say : I changed the attached file from the post above so re-download it and do the change again”… Do you mean I should go to that post
https://archived.seventhqueen.com/forums/topic/woocommerce-error-when-variation-on-sale
then download woo-config.txt and replace the content of wp-content/themes/kleo/lib/plugin-woocommerce/config.php with the file you mentioned?Thank you.
Elijah.December 27, 2014 at 02:01 #40413AbeKeymasterHi @ellos
you can just get 2.3.1 KLEO version which contains that fix. If you wanted to fix it with the file then just replace the content from theme file with the content from the file attached.Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer. -
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.