Title: updatediva's Replies | WordPress.org

---

# updatediva

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

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

 Search replies:

## Forum Replies Created

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

1 [2](https://wordpress.org/support/users/updatediva/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/updatediva/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[SportsPress - Sports Club & League Manager] How to create a Calendar ‘Last Match Played Result’](https://wordpress.org/support/topic/how-to-create-a-calendar-last-match-played-result/)
 *  Thread Starter [updatediva](https://wordpress.org/support/users/updatediva/)
 * (@updatediva)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/how-to-create-a-calendar-last-match-played-result/#post-17852221)
 * Brilliant! Thank you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Order details wrong but order totals correct](https://wordpress.org/support/topic/order-details-wrong-but-order-totals-correct/)
 *  Thread Starter [updatediva](https://wordpress.org/support/users/updatediva/)
 * (@updatediva)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/order-details-wrong-but-order-totals-correct/#post-17434267)
 * I agree. Thank you for working through this with me. My number one concern was
   that the database was corrupt, and I’m glad that doesn’t seem to be the case.
   I will go forward chasing down the invoicing plugin as it relates to the shipping
   calculation function.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Order details wrong but order totals correct](https://wordpress.org/support/topic/order-details-wrong-but-order-totals-correct/)
 *  Thread Starter [updatediva](https://wordpress.org/support/users/updatediva/)
 * (@updatediva)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/order-details-wrong-but-order-totals-correct/#post-17428323)
 * Thanks for your reply. Here’s the redacted PDF invoices for the two most recent
   bad orders: [https://imgur.com/a/LI6DPmX](https://imgur.com/a/LI6DPmX)
 * For this thread: [https://wordpress.org/support/topic/odd-meta-data-suddenly-showing-up-in-invoice-pdf/](https://wordpress.org/support/topic/odd-meta-data-suddenly-showing-up-in-invoice-pdf/)
   I just added the PHP. Again, this was only happening on order with weight/dimensions,
   not digital/virtual orders, with the shipping plugin WooCommerce Royal Mail.
 * I will reach out to the invoice plugin, **PDF Invoices & Packing Slips for WooCommerce**(
   up to date version) but it’s my understanding that their software does not interface
   with the WooCommerce order display and calculation functions. It calls the values
   and formats them for print.
 * It would help me debug if I knew the functions called by WooCommerce to calculate
   the line item order quantity, item cost, and total item cost (quantity x cost).
   The fact that WooCommerce is taking ‘total item cost’ and backward calculating
   a fictitious quantity x cost is really confusing me. This must be a display function,
   because the rest of the calculations based on this info is correct, and inventory
   is being reduced correctly.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Order details wrong but order totals correct](https://wordpress.org/support/topic/order-details-wrong-but-order-totals-correct/)
 *  Thread Starter [updatediva](https://wordpress.org/support/users/updatediva/)
 * (@updatediva)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/order-details-wrong-but-order-totals-correct/#post-17422184)
 * Here are screen shots of our two most recent bad orders, 7th February (broken
   into part 1 and 2 of the screen shots to get all the information), with correct
   quantity and pricing written in:
 * (1 item order, part 1) [https://imgur.com/zRW6mPh](https://imgur.com/zRW6mPh)
 * (1 item order, part 2) [https://imgur.com/ELNZPqa](https://imgur.com/ELNZPqa)
 * (2 items order, part 1) [https://imgur.com/urFSs59](https://imgur.com/urFSs59)
 * (2 items order, part 2) [https://imgur.com/z4Eu47m](https://imgur.com/z4Eu47m)
 * Glad to hear database corruption is rare.
 * We *did not* switch to the new checkout block in December, but I understand it
   was added to WooCommerce core at that time. The note said it would only effect
   new installs, ie: after November 2023. The Woocommerce page is still [woocommerce_checkout].
 * I *have not* been able to duplicate this error, which is the frustrating part.
   The best I have been able to do is to narrow it down to orders with items that
   have weight and dimensions in their Product description (so NOT digital downloads
   or virtual items). Both simple and variable products are having issues – sometimes.
 * Also: I have uninstalled WooCommerce Royal Mail plugin, our shipping plugin, 
   because I suspect it is the problem. We have purchased and installed another 
   Royal Mail shipping plugin but haven’t had any orders since then (except two 
   test orders which were fine).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Order details wrong but order totals correct](https://wordpress.org/support/topic/order-details-wrong-but-order-totals-correct/)
 *  Thread Starter [updatediva](https://wordpress.org/support/users/updatediva/)
 * (@updatediva)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/order-details-wrong-but-order-totals-correct/#post-17412761)
 * Hey, [@carolm29](https://profiles.wordpress.org/carolm29/), any thoughts? I had
   also asked which function is called for calculating line item totals in an order,
   so I can see why/how/??? it’s changing the order quantity and per item price 
   to match the total.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Order details wrong but order totals correct](https://wordpress.org/support/topic/order-details-wrong-but-order-totals-correct/)
 *  Thread Starter [updatediva](https://wordpress.org/support/users/updatediva/)
 * (@updatediva)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/order-details-wrong-but-order-totals-correct/#post-17406572)
 * The following made no difference:
    - Switching to storefront theme
    - disabled all the plugins except WooCommerce, including the WooCommerce Royal
      Mail shipping plugin.
       * We know that orders that don’t have shipping (digital and virtual) are 
         not effected by whatever is going on
    - The site health report is clean.
 * Is my WooCommerce database corrupted? Is there a good cleaner plugin?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Order details wrong but order totals correct](https://wordpress.org/support/topic/order-details-wrong-but-order-totals-correct/)
 *  Thread Starter [updatediva](https://wordpress.org/support/users/updatediva/)
 * (@updatediva)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/order-details-wrong-but-order-totals-correct/#post-17402731)
 * No fatal error logs.
 * New order yesterday, that is now 15 items (should be 1) but correct totals and
   Royal Mail shipping calculations. [https://imgur.com/a/1bnBynK](https://imgur.com/a/1bnBynK)
 * It’s quickly getting worse and worse. As I stated above, digital downloads and
   virtual orders are fine (no shipping). There is no rhyme or reason, aside from
   it sometimes effecting popular products but sometimes not (we really only sell
   popular products, which are shirts that are variations). Simple products are 
   sometimes effected, and sometimes not. It effects both domestic UK and international
   orders, sometimes. Most of the time they were fine.
 * Is this because of the Woocommerce move to blocks for checkout? Our install is
   from about 2020 (with regular updates, and everything is up to date). Is WooCommerce
   Royal Mail conflicting? That plugin seems to be calculating postage correctly.
 * What part of Woocommerce is running the order calculations? Because it know the
   total and is changing the item price and quantity to make it match. It is also
   only adjusting inventory by the correct quantity, not the weird quantity it’s
   calculating.
 * Let me know if you’d like access.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Order details wrong but order totals correct](https://wordpress.org/support/topic/order-details-wrong-but-order-totals-correct/)
 *  Thread Starter [updatediva](https://wordpress.org/support/users/updatediva/)
 * (@updatediva)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/order-details-wrong-but-order-totals-correct/#post-17400068)
 * Thanks for your reply. Answers:
 * Since November 2022 (71 qualifying orders total), there have been orders with
   errors like the above in Nov 2022 (1), March 2023 (1), August 2023 (1), September
   2023 (1), November 2023 (1), December 2023 (1), January 2024 (7).
 * We sell digital download and virtual products and they have no issues, ever.
 * Both variable and single products have issues, and orders with a mix of both.
   The majority, however, process cleanly.
 * We are using WooCommerce Royal Mail plugin, but some bad orders are ‘free pickup’.
   Many Royal Mail and Free Pickup are fine.
 * Our invoice software is PDF Invoices & Packing Slips for Woocommerce.
 * Do you think the problem could be WooCommerce going to blocks for checkout in
   December? I thought earlier installs were not effected by this update? We’ve 
   been running since 2017. No other updates except that (which was forced, I believe).
 * I’ve turned Code Snippets off and still have problems. My Snippets are for the
   copyright year, disable admin bar for shoppers, don’t show page name on product
   page, and ‘Hello, “Zubair”” in the login at the top of page.
 * Thanks for your help.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PDF Invoices & Packing Slips for WooCommerce] Odd meta data suddenly showing up in invoice PDF](https://wordpress.org/support/topic/odd-meta-data-suddenly-showing-up-in-invoice-pdf/)
 *  Thread Starter [updatediva](https://wordpress.org/support/users/updatediva/)
 * (@updatediva)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/odd-meta-data-suddenly-showing-up-in-invoice-pdf/#post-15875016)
 * That worked! Thank you.
 * The only plugins I’ve added are PaidMembershipPro extension plugins. I’ll poke
   around and make sure they’re not making problems elsewhere.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Compatibility Checker] Fatal error on activation](https://wordpress.org/support/topic/fatal-error-on-activation-126/)
 *  [updatediva](https://wordpress.org/support/users/updatediva/)
 * (@updatediva)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-on-activation-126/#post-8944201)
 * Same here, immediate Error 504 when I click on Admin —> Tools —> PHP Compatibility.
 * WP version: 4.7.3
    PHP version: 5.4 WooCommerce version: 2.6.14
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YITH WooCommerce Product Gallery & Image Zoom] Zoom does not Zoom, just shows the same picture again](https://wordpress.org/support/topic/zoom-does-not-zoom-just-shows-the-same-picture-again/)
 *  [updatediva](https://wordpress.org/support/users/updatediva/)
 * (@updatediva)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/zoom-does-not-zoom-just-shows-the-same-picture-again/#post-6402302)
 * Same problem here, and I’d like to buy several versions the pro. But have to 
   shake out the demo first.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Storefront] How to reorder header items](https://wordpress.org/support/topic/how-to-reorder-header-items/)
 *  Thread Starter [updatediva](https://wordpress.org/support/users/updatediva/)
 * (@updatediva)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/how-to-reorder-header-items/#post-6134121)
 * Just what I was looking for, thank you.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Storefront] How to reorder header items](https://wordpress.org/support/topic/how-to-reorder-header-items/)
 *  Thread Starter [updatediva](https://wordpress.org/support/users/updatediva/)
 * (@updatediva)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/how-to-reorder-header-items/#post-6134059)
 * Do you have an example of a new function using `init`? Or can you point me to
   one?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Custom URL for multiple WooCommerce product categories in one link](https://wordpress.org/support/topic/custom-url-for-multiple-woocommerce-product-categories-in-one-link-1/)
 *  Thread Starter [updatediva](https://wordpress.org/support/users/updatediva/)
 * (@updatediva)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/custom-url-for-multiple-woocommerce-product-categories-in-one-link-1/#post-5908672)
 * Unfortunately /?cat=”something+somethingelse” resolves really well in straight
   WordPress but not WooCommerce using product_cat and product_tag. You can do /?
   product_cat=”something” or /?product_tag=”something” but it can’t seem to handle
   operators.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Custom URL for multiple WooCommerce product categories in one link](https://wordpress.org/support/topic/custom-url-for-multiple-woocommerce-product-categories-in-one-link-1/)
 *  Thread Starter [updatediva](https://wordpress.org/support/users/updatediva/)
 * (@updatediva)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/custom-url-for-multiple-woocommerce-product-categories-in-one-link-1/#post-5908671)
 * Thanks for replying.
 * It looks like I’m into creating a custom shortcode using a custom loop like you
   suggested. Does it make sense to change:
 *     ```
       $args = array(
       'post_type' => 'product',
       'posts_per_page' => 12
       );
       ```
   
 * to:
 *     ```
       $args = array(
          'post_type' => 'product',
           'posts_per_page' => 12,
           'tax_query' => array(
               'relation' => 'AND',
               array(
                   'taxonomy' => 'product_cat',
                   'field' => 'slug',
                   'terms' => 'category-slug1' /* first category I'm looking for
               ),
               array(
                   'taxonomy' => 'product_cat',
                   'field' => 'slug',
                   'terms' => 'category-slug2' /* second category
               )
           ),
           'orderby' => 'title',
       );
       ```
   
 * I’ve never created a shortcode before, but I’d copy class-wc-shorcodes.php to
   my child theme, add a new function called product_2categories (shortcode name),
   and regsiter it.
 * Am I on the right track?

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

1 [2](https://wordpress.org/support/users/updatediva/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/updatediva/replies/page/2/?output_format=md)