Forum Replies Created

Viewing 15 replies - 1 through 15 (of 19 total)
  • Thread Starter fugglesby

    (@fugglesby)

    Hey there Frank

    • as part of earlier troubleshooting I already updates to 10.6.1 and so was on that version when providing updated information.
    • I wasn’t aware of HPOS- sounds good but also potentially site breaking. Our website is based around custom products made to order with lots and lots of options which is not particularly common so it relies on some quite old plugins.
    • For this torubleshooting I have been creating orders, receiving payments manually through admin. Zero interaction with this plugin.

    Your recommendations:

    • as part of earlier troubleshooting I already updates to 10.6.1 and so was on that version when providing updated information.
    • See above
    • Payment method shouldn’t be relevant here- these status changes were done by admin from product page.

      Maybe if you try without HPOS you can replicate this behaviour?
    Thread Starter fugglesby

    (@fugglesby)

    I have been going through things further and have confirmed the refund totals issue stems from refunding it by moving the status over to refunded. This just dumps a -100% of total revenue at the bottom of the order and analytics then deducts this entire amount from net sales. Incorrect behaviour.

    If instead I go into the totals at the bottom and enter a refund of the full shipping amount in the shipping tab and then the Net Payment amount in the “amount to refund” tab then analytics displays the correct behaviour of showing a net sales deduction that is 100% of net sales rather than 100% of net revenue. It needs the shipping box filled in order to make the correct calculation here. I have verified this behaviour for both cases.

    Fixes:
    -analytics logic side: You could place some logic into the calculator to ensure that the total amount deducted from net sales for a specific order never exceeds 100% of the net sales taken in for that order. It seems that net revenue is already calculated separately so maybe no issues there? Perhaps some users would prefer to have this reporting take into account lost shipping costs when assessing net sales but I don’t think “net sales’ is the right place for that to go. As you have said this is an operational cost.

    -woocommerce side: You could change it so that the default behaviour when moving an order status from processing to refunded is to fill out the shipping refund tab automatically. This would ensure analytics behaves correctly and seems a more robust approach anyway. You could keep the current behaviour of not filling the shipping refund form when moving status from shipped to refunded as this money would presumably be spent at this point and it would maintain the current behaviour for those that find it useful. I think the usefulness is questionable though and the capability for confusion is high.

    • This reply was modified 2 months ago by fugglesby.
    Thread Starter fugglesby

    (@fugglesby)

    Thank you for the reply. I have not discussed shipping labels at all in these prior messages and am not using them in our operations at all.

    My flow matches your expected core flow exactly.

    I will answer your questions on the exact steps with specific reference to the example order 15190 that was provided in these prior screenshots.

    Here is a screenshot showing what that info looks like in a downloaded report.

    Here is a screenshot of the order itself.

    • What was the order status before you issued the refund Processing
    • Whether you refunded the full amount or a partial amount I processed this refund by moving the order status from processing to refunded. I moved the funds manually from my bank back to the customers account. The amount refunded is 100% of the payment.
    • Whether the refund included shipping charges Yes
    • Whether you also refunded a shipping label, and if so, how I do not use shipping labels.
    • What you expected Analytics to show Net sales gain of 204. On refund a Net sales refund of 204
    • What Analytics actually showed Net sales gain of 205 (weird rounding error described in last message). Net sales refund of 252 (this amount corresponds to net sales plus shipping AKA net revenue)
    Thread Starter fugglesby

    (@fugglesby)

    As I work my way deeper and deeper into cross referencing these reports I keep stumbling across new bugs in analytics.
    I am cross referencing our actual received payments from bank accounts both with the analytics export you get from the orders tab and an actual export from woocommerce orders itself.

    The net revenue for all 3 is correct in all 3 of these sheets.

    The net sales/ line item costs shown in the actual order export unsurprisingly matches up with the information shown in the order page itself.
    However analytics order export does not! There are seemingly random rounding events all throughout the sheet . The net revenue though is correct which means that an inverse rounding error is happening somewhere else- likely in shipping. Not all values are being rounded. Some are being left with the 0.5. Some are being changed from a dollar exactly to 1.50. Super strange.

    Here are 4 screenshots showing the same order with various totals in these different locations:
    Woocommerce orders backend
    Woocommerce orders export
    Woocommerce analytics orders export (in error)
    Woocommerce analytics orders page (in error) This shows 15176 as an example of a value that SHOULD have $61 as the correct value but is being given 50 cents- presumably from shipping.

    At this stage I cannot trust analytics at all and will be manually exporting orders monthly and resubmitting finance documents for the entire financial year. The potential implications of these analytics bugs are serious in terms of tax compliance and employee pay calculations and these bugs should be taken as seriously as possible.

    Thread Starter fugglesby

    (@fugglesby)

    The initial screenshots where in regards to the product analytics error. There weren’t any screenshots regarding the net revenue/net sales refund error. Here is a screenshot showing what that info looks like in a downloaded report.

    Here is a screenshot of the order itself.

    Note that the sales value is 205 but when refunded it shows up as a net sales value change of -252 (including shipping) rather than -205. All our refunds are manual and performed through the orders page. It is possible that analytics shows different behaviour for orders that have status moved into refunded (and leave wordpress to figure it out) vs have refunds added to the order and then have the status moved into refunded.

    The payment method error is not related. The plugin is Add Himalayan Bank Payment In WooCommerce by Sanjeev Aryal. It’s just janky nepalese e-finance stuff.

    Some further info on the “move order back into processing but order date remains fixed” error. Other people have encountered the issue and have discussed solutions to it. I have added this PHP here to my functions.php and that has fixed the issue. I feel that this should be the default behaviour for woocommerce.


    Thread Starter fugglesby

    (@fugglesby)

    Hey there- thanks very much for the reply 🙂
    Glad to hear you have got eyes on this bug already.

    The second issue is regarding the way that analytics immediately assumes that refunded shipping costs are a loss and deducts the net revenue from the net sales. it isn’t related to order status change.

    Yes- the orders were in status “processing” which is a paid status.
    Every now and again we receive a phantom payment error in a plugin that we use for our payment gateway. We are a Nepali company working so have very limited legal options for ecommerce aside from a few janky plugins. These phantom payment errors themselves are not caused by woocommerce, but woocommerce rigidly defining a payment date and then not allowing that to be edited is a woocommerce issue.

    I’m aware of this analytics settings and have it set as date paid- this is the most applicable for finances.

    Thread Starter fugglesby

    (@fugglesby)

    Hey there David- thanks for your continued efforts here. From my end there is only one block added in the builder but sure maybe it places a mobile gallery and a non mobile gallery. For the timebeing 5.2.20 will load no images on any product pages so I am attempting rollback.

    Thread Starter fugglesby

    (@fugglesby)

    The product gallery is still duplicated. It is stacked vertically. I can’t tell you whether they are both functioning or not as the images are not loading in- just that grey pulsing loading background.
    The php changes you told me to make are not active during this behaviour. It is there for pages with CSS disabled and for normal pages where my css fix is temporarily removed

    Thread Starter fugglesby

    (@fugglesby)

    done 🙂

    Thread Starter fugglesby

    (@fugglesby)

    Unfortunately not sorry- the product galleries are now:
    -stacked vertically rather than horizontally
    -the same size
    -both functional where previously one was unclickable, wouldn’t update images etc

    Thread Starter fugglesby

    (@fugglesby)

    Nope. You can also see on this test page that they both remain regardless of screen size.

    Thread Starter fugglesby

    (@fugglesby)

    Thread Starter fugglesby

    (@fugglesby)

    I removed the CSS I was using to counteract this and opened in a new incognito window- the issue seems to remain on my end.

    Thread Starter fugglesby

    (@fugglesby)

    Hey there David- thanks very much for the reply.
    The product gallery block within the FSE template is only added once.
    If I delete the product gallery block from the template this non functional duplicate product gallery still shows up. I have made a duplicate product page which is not targeted by these css fixes that the customers see for your reference.
    https://kailashblades.com/product/bhura2/
    This is with the product gallery added to the template. With the product gallery deleted from template the layout for product options moves left but the massive broken gallery remains in place.

    Thanks for the pointer on the SVI global tab- I’ll have a dig around and see if I can fix it in there 🙂

    Managed to get another HBL payment gateway plugin working. Moving those identical configuration details over to this one didn’t get this one working- hopefully this info helps troubleshoot problems in future 🙂

Viewing 15 replies - 1 through 15 (of 19 total)