• Resolved chetan0412

    (@chetan0412)


    Hello,

    after current update(5.6.2) i am unable to see any value in order page Profit column.

    Please help me.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter chetan0412

    (@chetan0412)

    Just rolled back to old version (5.6.1)) and everything is fine now.

    please resolve issue.

    Plugin Author ronyp

    (@ronyp)

    Hello @chetan0412,

    My sincere apologies for the above. Could you please share some screenshots for the above issue? It would be great if you export Booster settings and share them with me here so that I can replicate the issue if required.

    Kind Regards,
    Rony P – Support Team

    Thread Starter chetan0412

    (@chetan0412)

    Plugin Author ronyp

    (@ronyp)

    Hello @chetan0412,

    We have found the issue and fixed it. You can find the fix added here.

    You just need to replace a single file.

    woocommerce-jetpack/includes/class-wcj-purchase-data.php

    As the latest version contains lots of security vulnerability fixes, I would suggest you give it a try above fix.

    Kind Regards,
    Rony P – Support Team

    Thread Starter chetan0412

    (@chetan0412)

    Hello,

    Issue solved, thanks for prompt response,

    Regards,

    Thread Starter chetan0412

    (@chetan0412)

    one more issue…

    Howdy!
    
    Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.
    
    In this case, WordPress caught an error with one of your plugins, Booster for WooCommerce.
    Error Details
    =============
    An error of type E_ERROR was caused in line 307 of the file /home/xxx/xxx/xxx/xxxx/plugins/woocommerce-jetpack/includes/class-wcj-purchase-data.php. Error message: Uncaught TypeError: Unsupported operand types: string - float in /home/xxx/xxx/xxx/xxxx/plugins/woocommerce-jetpack/includes/class-wcj-purchase-data.php:307
    Stack trace:
    #0 /home/xxx/xxx/xxx/xxxx/wp-admin/includes/template.php(1401): WCJ_Purchase_Data->create_meta_box(Object(WP_Post), Array)
    #1 /home/xxx/xxx/xxx/xxxx/wp-admin/edit-form-advanced.php(688): do_meta_boxes(Object(WP_Screen), 'normal', Object(WP_Post))
    #2 /home/xxx/xxx/xxx/xxxx/wp-admin/post-new.php(75): require('/home/xxxx...')
    #3 {main}
      thrown
    Thread Starter chetan0412

    (@chetan0412)

    Hello,

    any update on above issue ?

    Thread Starter chetan0412

    (@chetan0412)

    Hello @ronyp

    i have replaced files as you gave.

    now i am getting above error while i try to add new product.

    Help me please. as on now i have re-installed plugin, but again i am not able to see purchase and profit cost.

    Plugin Author ronyp

    (@ronyp)

    Hello @chetan0412,

    My sincere apologies for the above. I have identified the issue and fixed it.
    Please replace the new file with the latest version (5.6.2).

    File: woocommerce-jetpack/includes/class-wcj-purchase-data.php

    Source: https://storage.booster.io/cost_of_goods_fix/cost-of-goods-and-profit.zip

    Kind Regards,
    RonyP – Support Team

    Thread Starter chetan0412

    (@chetan0412)

    Hello, again, new trigger…

    Error Details
    =============
    An error of type E_ERROR was caused in line 366 of the file xxxwp-content/plugins/woocommerce-jetpack/includes/class-wcj-purchase-data.php. Error message: Uncaught DivisionByZeroError: Division by zero in xxxwp-content/plugins/woocommerce-jetpack/includes/class-wcj-purchase-data.php:366
    Stack trace:
    #0 xxxwp-content/plugins/woocommerce-jetpack/includes/class-wcj-purchase-data.php(320): WCJ_Purchase_Data->get_profit_percentage(Array)
    #1 xxxwp-admin/includes/template.php(1401): WCJ_Purchase_Data->create_meta_box(Object(WP_Post), Array)
    #2 xxxwp-admin/edit-form-advanced.php(688): do_meta_boxes(Object(WP_Screen), 'normal', Object(WP_Post))
    #3 xxxwp-admin/post.php(206): require('/home1/xxx...')
    #4 {main}
      thrown
    Thread Starter chetan0412

    (@chetan0412)

    hello @ronyp

    am i the only person who is getting such error?

    because of it really hard to work constant error. each time i need to disable plugin and need to update/add product.

    see now i am unable to modify or add product if variable price is blank. see below screenshot.

    Link – https://prnt.sc/R21AKd4LfJUk

    once i add product purchase cost and error gone, and its deleted all the variable and all the data lost. Now need to add all the variable data again and again.

    • This reply was modified 3 years, 3 months ago by chetan0412.
    • This reply was modified 3 years, 3 months ago by chetan0412.
    Thread Starter chetan0412

    (@chetan0412)

    includes/class-wcj-purchase-data.php

    change this code. let me know if correct . Line number 303 and 306

    foreach ( $products as $product_id => $desc ) {
    				$purchase_price = wc_get_product_purchase_price( $product_id );
    				if ( 0 !== $purchase_price && '0' != $purchase_price && '' !== $purchase_price ) {
    					$the_product = wc_get_product( $product_id );
    					$the_price   = $the_product->get_price();
    					if ( 0 !== $the_price && '0' != $the_price && '' !== $the_price ) {
Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Cost of goods and profit.’ is closed to new replies.