This topic has 10 replies, 3 voices, and was last updated 9 years by mattylb.

  • Author

    Tagged: 

  • #37627
     karimun
    Participant

    The error

    Warning: Division by zero in /htdocs/public/www/wp/wp-content/themes/kleo/lib/plugin-woocommerce/config.php on line 459

    shows up for a variable product if sale prize is set on one variation.

    Please see the attachment and propose a fix.

    Attachments:
    You must be logged in to view attached files.
    #37629
     karimun
    Participant

    I run WP 4.0.1 and WooCommerce 2.2.8

    #38905
     Abe
    Keymaster

    Hi, sorry for the late reply. I am doing some checks and come back with a fix.
    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.

    #38920
     Abe
    Keymaster

    Until next version please replace this file contents with the one from the file attached wp-content/themes/kleo/lib/plugin-woocommerce/config.php

    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.

    Attachments:
    You must be logged in to view attached files.
    #39115
     karimun
    Participant

    Thank you!

    #41083
     mattylb
    Participant

    Uh Oh – While this did fix the discount calculation for variable products, it either broke or didn’t fix the same issue that occurs with external/affiliate products that are on sale. 😉

    screenshot is attached.

    Attachments:
    You must be logged in to view attached files.
    #41246
     Abe
    Keymaster

    Hi, so @mattylb what kind of settings does the product have?

    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.

    #41296
     mattylb
    Participant
    This reply has been set as private.
    #41673
     mattylb
    Participant

    btw, I had to move the sale price to the reg price field because I didn’t want a blank % sign showing but I’ll change it back to a sale item if you need to see the example on my site. Please let me know if you’re able to duplicate this on your end so I can change it back until it’s fixed. Thanks!

    #42095
     Abe
    Keymaster

    fixed. Just replace this file content with the content from the file attached wp-content/themes/kleo/lib/plugin-woocommerce/config.php

    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.

    Attachments:
    You must be logged in to view attached files.
    #42119
     mattylb
    Participant

    That worked! Thank you 🙂

Viewing 11 posts - 1 through 11 (of 11 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?