Forum Replies Created

Viewing 15 replies - 1 through 15 (of 29 total)
  • Thread Starter andvsb

    (@andvsb)

    Hi Marko,
    yes I excluded from the page cache the homepage momentarily where I call up the latest products.
    To replicate the problem you just need to have

    • woocommerce.
    • The prices shown to the user with vat.
    • The vat that varies from country to country.

    To replicate the problem just:
    Go to the shopping cart and enter a different country than the default country in the store.
    The prices in the store will vary by changing the vat percentage.

    Sometimes the page is cached with a country’s percentage and not the default one.

    Thanks

    Thread Starter andvsb

    (@andvsb)

    Hi Shameem, I didn’t change anything in wordpress, I redid a clean install of wordpress and installed only woocommerce as a plugin but the problem still occurs.
    I am not using Legacy API but REST API.
    If this problem occurs, it is due to the fact that you use wc_format_decimal before doing the division by quantity instead of after.
    I believe it is a woocommerce bug because I have tried it on two different servers and I am experiencing the same problem.
    Thank you

    Thread Starter andvsb

    (@andvsb)

    Hi Shameem,

    I don’t know why but if in /woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-orders-v2-controller.php I create a line_item field like this for example $data[‘test’] = 10.01 / 1; the result doesn’t come 10.01 but 10.0099999999999997868371792719699442386627197265625
    I don’t know what it might be due to, whether the server or php, but if I make 10.01 / 1 in a woocommerce page template the result is correct.

    Thanks

    Thread Starter andvsb

    (@andvsb)

    hi Shameem
    from what I can see in your image the price was an integer and not a float, try changing the price from 37 to 37.99 to see if the problem shows up.
    The order placed, as you can see from this image https://prnt.sc/NAQq8MtT0iXL, had quantity 1
    I placed another order with quantity 2 and this is the result https://prnt.sc/r-DdCKDYhKPp
    I am using version 8.7.0 of woocommerce and the site is a brand new test installation, taxes were not even set (the problem occurs even with taxes enabled)

    Thanks

    Hi, I have a similar problem.
    When I use auto insert in posts the page that collects the posts (blog page) made via elementor does not work correctly. Elementor blog, made by Premium Addons for Elementor, takes as excerpt the toc instead of the post content.
    So I disabled auto insertion and put the shortcode directly in my post template but unfortunately it doesn’t work.

    Thanks

    • This reply was modified 8 months, 1 week ago by andvsb.
    Thread Starter andvsb

    (@andvsb)

    Hi omarfpg!

    I’m using this API https://prnt.sc/4CCozSgwa9R3 and i see the results using Insomnia and through this

    GET https://www.example.com/wp-json/wc/v3/orders/13?consumer_key=ck_XXXXX&consumer_secret=cs_XXXXX

    My coder, who told me about this problem, is using curl.

    Thanks

    Thread Starter andvsb

    (@andvsb)

    Hi omarfpg, I made a test in my demo area (fresh installation with 1 product and 1 order)

    This is my product from backend, API and DB and all is ok
    https://prnt.sc/9TMmfQrLq9GN https://prnt.sc/JMMsPt43rjUU https://prnt.sc/TG_TPS8BGh_N

    But if you check the order line item price from API this is the result: https://prnt.sc/mSckLPHeYZ_b

    I searched for those numbers in the database and the result was null https://prnt.sc/jpgfOTi-ltAB

    Where those numbers are taken from?

    Thanks

    • This reply was modified 8 months, 1 week ago by andvsb.
    Thread Starter andvsb

    (@andvsb)

    Hi carol i’ve made a fresh wordpress installation. No taxes (i’ve this problem even with taxes)

    https://prnt.sc/piDOExKCTM1O

    `
    ### WordPress Environment ###
    
    WordPress address (URL): https://tst3.visib italy.com
    Site address (URL): https://tst3.visib italy.com
    WC Version: 8.6.1
    REST API Version: ? 8.6.1
    WC Blocks Version: ? 11.8.0-dev
    Action Scheduler Version: ? 3.7.1
    Log Directory Writable: ?
    WP Version: 6.4.3
    WP Multisite: –
    WP Memory Limit: 1 GB
    WP Debug Mode: –
    WP Cron: ?
    Language: it_IT
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 8.0.30
    PHP Post Max Size: 150 MB
    PHP Time Limit: 5400
    PHP Max Input Vars: 12000
    cURL Version: 8.6.0
    OpenSSL/1.1.1w
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.44-log
    Max Upload Size: 150 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 8.6.1
    WC Database Prefix: wpts_
    Total Database Size: 4.20MB
    Database Data Size: 2.50MB
    Database Index Size: 1.70MB
    wpts_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpts_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpts_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpts_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpts_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpts_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpts_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpts_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpts_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpts_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpts_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpts_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpts_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpts_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpts_actionscheduler_actions: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
    wpts_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpts_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpts_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpts_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpts_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wpts_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpts_options: Data: 1.42MB + Index: 0.06MB + Engine InnoDB
    wpts_postmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpts_posts: Data: 0.05MB + Index: 0.06MB + Engine InnoDB
    wpts_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpts_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpts_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpts_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpts_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpts_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpts_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    wpts_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    wpts_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpts_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpts_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpts_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
    wpts_wc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpts_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpts_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpts_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpts_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wpts_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wpts_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wpts_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpts_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpts_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wpts_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpts_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wpts_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wpts_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 1
    page: 7
    post: 2
    product: 1
    shop_order_placehold: 1
    wp_navigation: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (1) ###
    
    WooCommerce: by Automattic – 8.6.1
    
    ### Inactive Plugins (0) ###
    
    
    ### Must Use Plugins (1) ###
    
    WordPress automation by Installatron: by  –
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: EUR (€)
    Currency Position: right_space
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to Woo.com: –
    Enforce Approved Product Download Directories: ?
    HPOS feature screen enabled: ?
    HPOS feature enabled: ?
    Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore
    HPOS data sync enabled: –
    
    ### WC Pages ###
    
    Shop base: #7 - /negozio/
    Cart: #8 - /carrello/
    Checkout: #9 - /pagamento/
    My account: #10 - /mio-account/
    Terms and conditions: ? Page not set
    
    ### Theme ###
    
    Name: Storefront
    Version: 4.5.4
    Author URL: https://woo.com/
    Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: –
    
    ### Admin ###
    
    Enabled Features: activity-panels
    analytics
    product-block-editor
    coupons
    core-profiler
    customer-effort-score-tracks
    import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    product-variation-management
    product-virtual-downloadable
    product-external-affiliate
    product-grouped
    product-linked
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    woo-mobile-welcome
    wc-pay-promotion
    wc-pay-welcome-page
    
    Disabled Features: customize-store
    minified-js
    new-product-management-experience
    product-pre-publish-modal
    settings
    async-product-editor-category-field
    
    Daily Cron: ? Next scheduled: 2024-03-16 16:10:36 +00:00
    Options: ?
    Notes: 63
    Onboarding: completed
    
    ### Action Scheduler ###
    
    Complete: 5
    Oldest: 2024-03-15 16:12:33 +0000
    Newest: 2024-03-15 16:14:51 +0000
    
    Failed: 1
    Oldest: 2024-03-15 16:13:37 +0000
    Newest: 2024-03-15 16:13:37 +0000
    
    Pending: 1
    Oldest: 2024-03-16 16:12:33 +0000
    Newest: 2024-03-16 16:12:33 +0000
    
    
    ### Status report information ###
    
    Generated at: 2024-03-15 16:20:30 +00:00
    `

    thank you very much

    • This reply was modified 8 months, 2 weeks ago by andvsb.
    Thread Starter andvsb

    (@andvsb)

    Hi omarfpg!

    How many decimals have you set in your WooCommerce → Settings → General → Number of decimals?

    2

    On frontend and in wordpress backend everything is ok, but if i call the order through API this is the result

    https://prnt.sc/Qq3KWf16zc8t

    Thanks!

    Thread Starter andvsb

    (@andvsb)

    Thank you very much Ross

    Thread Starter andvsb

    (@andvsb)

    Hi

    Is the order marked as complete on the WooCommerce orders page or it has any other status?

    Completed

    Have you excluded sending emails for the completed order status?

    Yes i did but the problem is still here.

    Thanks

    Thread Starter andvsb

    (@andvsb)

    hi,
    is there also a github issue to check the progress?
    thanks

    Thread Starter andvsb

    (@andvsb)

    Hi bcworkz,
    is there a way to redirect https://www.example.com/my-post-slug to https://www.example.com/en/my-post-slug ?
    I can’t add every single post manually in .htaccess and i don’t think there’s a regex for this case.

    Thanks for your support.

    Thread Starter andvsb

    (@andvsb)

    Hi, i’ve installed Twenty Sixteen and the issue is still there.
    All the Elementor Experiments are inactive.

    Thanks

    Thread Starter andvsb

    (@andvsb)

    These are my configuration.

    == Server Environment ==
    Operating System: Linux
    Software: Apache
    MySQL version: MySQL Community Server (GPL) v5.7.37
    PHP Version: 7.4.28
    PHP Memory Limit: 1024M
    PHP Max Input Vars: 12000
    PHP Max Post Size: 150M
    GD Installed: Yes
    ZIP Installed: Yes
    Write Permissions: All right
    Elementor Library: Connected

    == WordPress Environment ==
    Version: 5.9.3
    WP Multisite: No
    Max Upload Size: 150 MB
    Memory limit: 40M
    Max Memory limit: 1024M
    Permalink Structure: /%category%/%postname%/
    Language: en-US
    Timezone: 0
    Debug Mode: Inactive

    == Theme ==
    Name: Twenty Twenty
    Version: 1.9
    Author: the WordPress team
    Child Theme: No

    == User ==
    Role: administrator
    WP Profile lang: en_US
    User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:98.0) Gecko/20100101 Firefox/98.0

    == Active Plugins ==
    Classic Editor
    Version: 1.6.2
    Author: WordPress Contributors

    Classic Widgets
    Version: 0.3
    Author: WordPress Contributors

    Elementor
    Version: 3.6.2
    Author: Elementor.com

    == Must-Use Plugins ==
    WordPress automation by Installatron
    Version:
    Author:

    == Elementor Experiments ==
    Optimized DOM Output: Inactive
    Improved Asset Loading: Inactive
    Improved CSS Loading: Inactive
    Inline Font Icons: Inactive
    Accessibility Improvements: Inactive
    Import Export Template Kit: Inactive
    Additional Custom Breakpoints: Inactive
    Hide native WordPress widgets from search results: Inactive
    : Inactive by default
    Flexbox Container: Inactive
    Landing Pages: Inactive
    Color Sampler: Inactive
    Favorite Widgets: Inactive
    Admin Top Bar: Inactive

    My english is bad, do you understand my problem or i have to upload you a video?
    Thanks again.

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