Title: Olli Kousa's Replies | WordPress.org

---

# Olli Kousa

  [  ](https://wordpress.org/support/users/kousa/)

 *   [Profile](https://wordpress.org/support/users/kousa/)
 *   [Topics Started](https://wordpress.org/support/users/kousa/topics/)
 *   [Replies Created](https://wordpress.org/support/users/kousa/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/kousa/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/kousa/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/kousa/engagements/)
 *   [Favorites](https://wordpress.org/support/users/kousa/favorites/)

 Search replies:

## Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Offload, AI & Optimize with Cloudflare Images] Network settings issue](https://wordpress.org/support/topic/network-settings-issue/)
 *  Thread Starter [Olli Kousa](https://wordpress.org/support/users/kousa/)
 * (@kousa)
 * [4 months, 3 weeks ago](https://wordpress.org/support/topic/network-settings-issue/#post-18852600)
 * I did not in fact have that enabled.
 * With the “Network wide settings” enabled in the main site, along with automatic
   offload and full offload, the subsites still seem to have all settings disabled.
   I tried uploading image but it is not offloaded and I cannot manually remove 
   local files from any offloaded media.
 * So whether I have the network wide settings disabled or enabled, all subsite 
   settings are always disabled either way.
 * With `cf_images_settings` filter I could force `full-offload` so that I can remove
   local files via media library, but the `auto-offload` didn’t seem to work if 
   the network wide settings was enabled. EDIT: This discrepancy could have been
   due to async offload, so probably not worth reading too much into.
    -  This reply was modified 4 months, 3 weeks ago by [Olli Kousa](https://wordpress.org/support/users/kousa/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Omnibus — show the lowest price] Lowest price for 30 days: {price}.](https://wordpress.org/support/topic/lowest-price-for-30-days-price/)
 *  [Olli Kousa](https://wordpress.org/support/users/kousa/)
 * (@kousa)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/lowest-price-for-30-days-price/#post-17464717)
 * We’re seeing similar issues where the lowest price either shows the current sale
   price, doesn’t show up at all or shows zero. All of which are wrong.
 * Store I debugged this with has only variable products, not sure if this is the
   case for others too.
 * I noticed that there are no new database entries for the product after saving
   it with different price. I tried both ways of saving variations, neither worked.
 * I looked at the `action_save_post_product` function that’s hooked to `save_post_product`.
   I think it should be using `woocommerce_update_product` instead. When saving 
   variations via ajax it didn’t seem to trigger at all and when saving whole product
   both `$product->get_regular_price()` and `$product->get_sale_price()` functions
   return empty, causing the “update if needed” check to fail.
 * Overall the plugin seems rather buggy at the moment. As a sidenote, I think the
   migration should’ve been done to custom table, not posts. That would’ve improved
   performance even more and kept the posts table cleaner. 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Paytrail for WooCommerce] Issue with gift cards](https://wordpress.org/support/topic/issue-with-gift-cards/)
 *  [Olli Kousa](https://wordpress.org/support/users/kousa/)
 * (@kousa)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/issue-with-gift-cards/#post-17324281)
 * We’ve got few similar reports from users. We have the free version of the Gift
   Card plugin. We have also had succesful gift card orders with partial payment
   so it’s not consistent.
 * There’s the following fatal error in the logs. Stack trace suggests it’s related
   to “fix_rounding_error()” function.
 *     ```wp-block-code
       Fatal error: Uncaught Error: Call to a member function setUnitPrice() on null in /data/wordpress/wp-content/plugins/paytrail-for-woocommerce/src/Gateway.php:1297
       ```
   
 * I checked that all orders utilizing gift cards that failed had the “order total”
   off by 1 cent compared to the item_subtotal + shipping + tax. So it would make
   sense that it’s related.
 * Didn’t go too deep into it but it seemed like the error only happened with orders
   that had gift cards used on them.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPC Composite Products for WooCommerce] Sum of compontent prices added to cart total despite composite set to base price](https://wordpress.org/support/topic/sum-of-compontent-prices-added-to-cart-total-despite-composite-set-to-base-price/)
 *  Thread Starter [Olli Kousa](https://wordpress.org/support/users/kousa/)
 * (@kousa)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/sum-of-compontent-prices-added-to-cart-total-despite-composite-set-to-base-price/#post-16809027)
 * Had some luck and was able to determine the cause to be Woo Discount Rules -plugin.
   Both plugins hook into before_calculate_totals action and modify product prices.
 * The plugin was off at one point which must’ve caused the confusion. Should’ve
   tested for conflicts right away anyway.
 * For us the solution is to most likely ditch the discount-plugin (for this and
   many other reasons) but this could still be relevant issue for other people.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kustom Checkout for WooCommerce] Aborted payments – Incorrect order_id](https://wordpress.org/support/topic/aborted-payments-incorrect-order_id/)
 *  [Olli Kousa](https://wordpress.org/support/users/kousa/)
 * (@kousa)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/aborted-payments-incorrect-order_id/#post-15449945)
 * We’re having the same issue. Few cases out of 25 so far after launching Klarna
   Checkout earlier this week.
 * Case 1: One customer managed to create three separate orders in WooCommerce
    
   [1. Order (image)](https://t4682137.p.clickup-attachments.com/t4682137/934fc1dd-0c9e-4d5b-bb6e-5e86ec3f83aa/order1.image.png?view=open)
   with correct row data (product and prices), but no information, Klarna key and
   order total 0€. [2. Order](https://t4682137.p.clickup-attachments.com/t4682137/0a71895e-3087-4a05-b604-a4696b45e126/order2.png.png?view=open)
   with customer address (no email or phone number), rather odd costs (only incorrect
   tax). [3. Order](https://t4682137.p.clickup-attachments.com/t4682137/2a11b270-d6a3-48df-ab08-2e9cc124fdf5/order3.png.png?view=open)
   with everything correctly.
 * Case 2: Only [one order](https://t4682137.p.clickup-attachments.com/t4682137/e2a92ac5-cc1b-4d6d-88a6-53e574d31ae8/image.png?view=open)
   in WooCommerce which is not linked to the succesful klarna payment.
 * Also few other cases where customers haven’t been redirected back to success 
   page or something similar, so they’ve ended up making another order. Everything
   shows up correctly otherwise, so these are harder to debug.
 * Both cases 1 and 2 are linked to the same error:
    `ERROR Push callback but no
   existing WC order found for Klarna order ID`
 * We’ll continue to investigate further, but any insight would be very welcome.
   The problems seem to be very inconsistent and there could be multiple parallel
   issues.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kustom Checkout for WooCommerce] Changing the “Fee” label](https://wordpress.org/support/topic/changing-the-fee-label/)
 *  Thread Starter [Olli Kousa](https://wordpress.org/support/users/kousa/)
 * (@kousa)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/changing-the-fee-label/#post-15449811)
 * Yes, the fee name is what I’m trying to change. I have the following code:
 * `$cart->add_fee( 'Membership discount -5%', -$discount);`
 * But still the checkout labels it as “Additional fee” (“Lisämaksu” in finnish)
 * Here’s [image](https://t4682137.p.clickup-attachments.com/t4682137/f3d438c5-597c-4c3f-8691-08f44ce99c26/klarna_fee_label.jpg?view=open)
   to what I mean. On the WooCommerce side it shows correctly as “Membership discount-
   5%”.
 * I actually were very close, I did look at those rows, although previously didn’t
   notice the name field. I now tried to edit the code and it still didn’t change.
   This could relate to caching, but the there’s a comment before the $fee_item 
   array:
 * > // Add separate discount line item, but only if it’s a smart coupon or country
   > is US.
 * It is not a smart coupon nor are we in US. I’m not sure if that comment is actually
   relevant as I did not see any conditions for it. But considering that it A) Should
   use the given fee name B) Even hard coded value did not change it, I’m inclined
   to believe that it is indeed accurate.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Spectra Legacy – Gutenberg Blocks] 404 for advanced-heading.css.map](https://wordpress.org/support/topic/404-on-advanced-heading-css-map/)
 *  [Olli Kousa](https://wordpress.org/support/users/kousa/)
 * (@kousa)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/404-on-advanced-heading-css-map/#post-12239367)
 * I have the same issue. It’s popping out randomly and causing issues with at least
   Safari.
 * It actually caused critical failure in Safari due to PWA trying to load this 
   file.
 * I did not have a single Advanced-headings block in the site, which makes it quite
   odd.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PWA for WP - Progressive Web Apps Made Simple] FetchEvent.respondWith()](https://wordpress.org/support/topic/fetchevent-respondwith/)
 *  [Olli Kousa](https://wordpress.org/support/users/kousa/)
 * (@kousa)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/fetchevent-respondwith/#post-12239300)
 * My users are getting the same or very similar error that blocks access. I’m unable
   to replicate the issue of no loading, but the error is logged to console nonetheless.
 * This seems to be focused on the Safari browsers, both on mobile and desktop.
 * EDIT: I managed to replicate the loading failure after all. It was linked to 
   a 404 error of a .css.map file (don’t know if the file type is relevant). Immediate
   workaround was to exclude this file from PWA cache, have to check deeper to what’s
   causing nonexisting file to load, probably not PWA related.
 * However, in my opinion such case shouldn’t lead to total failure so it might 
   be something worth checking in the PWA plugin development.
    -  This reply was modified 6 years, 8 months ago by [Olli Kousa](https://wordpress.org/support/users/kousa/).

Viewing 8 replies - 1 through 8 (of 8 total)