Price title showing desimals on quick view?

This topic has 6 replies, 2 voices, and was last updated 2 months ago ago by Rose Tyler

  • Avatar: Nicolo
    Nicolo
    Participant
    March 7, 2024 at 10:34

    Hello

    I recently updated the theme and I can see that the price title on the quick view all of a sudden is showing desimals and with no spacing next to the currency?

    What is the issue here? Thanks!

    quic view - price element

    5 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 7, 2024 at 11:06

    Hello, Nicolo,

    Thank you for contacting us and for using XStore.

    The next custom CSS code can be used:

    .et-quick-view-canvas .product-content .price span {
        margin-right: 5px;
    }

    Kind Regards,
    8theme team

    Avatar: Nicolo
    Nicolo
    Participant
    March 7, 2024 at 13:21

    Thanks, but it is still showing decimals?

    Is it possible to get it the way it was before? without adding new CSS to the site. (Because of speed and performance concerns we like to minimize css).

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 7, 2024 at 14:30

    Hello, Nicolo,

    We have observed that the price display has been modified by custom code; however, this code does not affect the quick view window. Should you prefer not to utilize custom CSS, please provide us with temporary wp-admin and FTP access, so that we can examine the code more closely and make the necessary adjustments.

    Please note that your inquiry does not pertain to the functionality of our theme, as the price display is governed by the WooCommerce plugin. Therefore, we recommend navigating to WooCommerce > Settings > General > Currency Options > Number of Decimals for further configuration.

    We appreciate your understanding and cooperation.

    Kind Regards,
    8theme team

    Avatar: Nicolo
    Nicolo
    Participant
    March 7, 2024 at 15:49

    I have executed the woocommerce settings you mentioned above.

    But I will leave the admin access for you to see. Check private content.

    If it’s either the CSS causing this or woocommerce or something else. Thanks!

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 8, 2024 at 09:29

    Hello, Nicolo,

    We have identified that the main issue is caused when the WooCommerce Payments plugin is active on your website. Once we deactivate it, the issue is resolved (see screenshot: https://prnt.sc/wif01JqpPdlf). Upon further examination of the plugin’s code, we discovered that it modifies wc_price with its own filter (see screenshot: https://prnt.sc/z2bhIQjl5bwi). However, it appears that their filter does not function properly with content loaded via AJAX requests, such as our quick view product content that loads only when the customer demands it by clicking a specific button.

    After conducting a simple check to see if a quick fix is possible, we concluded that it is not. For a correct fix, we believe the plugin should provide documentation about its compatibility with AJAX-loaded content, which it currently lacks. Additionally, upon reviewing the plugin’s forum and customer reviews, it seems that numerous customers have encountered issues with it installed (see screenshot: https://prnt.sc/rINSUJzkfXZ6).

    As a solution, we recommend contacting the plugin’s author to inquire about a solution to this mutually beneficial issue. From our end, we can provide you with the files where we have AJAX-loaded content and a screenshot of their filter:

    1. File: xstore/woocommerce/product-quick-view-canvas.php – AJAX-loaded content is located in this file. The product price is displayed using the default WooCommerce function woocommerce_template_single_price().

    2. File: woocommerce-payments/includes/multi-currency/Compatibility/WooCommerceSubscriptions.php – Specifically, pay attention to the maybe_get_explicit_format_for_subscription_total() function (see screenshot: https://prnt.sc/rINSUJzkfXZ6).

    Kind Regards,
    8theme team

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.