• Get Early Bird Discount On RevolutionWP Themes Get 30% " Startup30"

“Your Cart Is Currently Empty” When Logged out

  • Home
  • “Your Cart Is Currently Empty” When Logged out
Shape Image One
Shape Image One
 Shape Image Four
 Shape Image Four
 Shape Image Four
 Shape Image Four
 Shape Image Four
 Shape Image Four

Home Forums Revolution WP “Your Cart Is Currently Empty” When Logged out

Tagged: 

Viewing 15 posts - 1 through 15 (of 23 total)
  • Author
    Posts
  • #2780
    Yosuke Suzuki
    Participant

    I purchased the Shop Cart Woocommerce Pro theme, but when I add products to the cart while logged out and check the cart, it displays “There are no items in your cart.” even though I added items. The products I added are not showing up. What could be causing this issue?

    #2781
    Yosuke Suzuki
    Participant

    The number displayed next to the cart icon at the top right changes.

    #2782
    Yosuke Suzuki
    Participant

    Even after disabling all plugins except WooCommerce, it didn’t work.
    When I reverted to the default WordPress theme, it worked. Therefore, it seems certain that there is an issue with this theme.

    #2784
    karl marks
    Participant

    Ok, we will check

    #2786
    Yosuke Suzuki
    Participant

    I have implemented the minimum required functionality and am now publishing it, but when a user is not logged in and adds a product to the cart, the product is not added to the cart.

    Home

    #2789
    karl marks
    Participant

    Hi,

    In the event of any issues, kindly email support@revolutionwp.com

    #2791
    Yosuke Suzuki
    Participant

    I sent an email earlier, but have you confirmed it? The problem is becoming serious, so I’m also working on an investigation, but please address this urgently.

    #2792
    Yosuke Suzuki
    Participant

    After investigating further, I have identified the following key issues:

    Even when adding products to the cart while logged out, they are not reflected on the cart screen. However, the cart icon at the top right does update to show the correct count, indicating the data is being saved somewhere (whether in the database or session, I’m not sure).
    Furthermore, when adding the same product to the cart while logged in, the product does appear in the cart screen, but a warning message is displayed saying “The stock for (product name) is insufficient. Please reduce the quantity in your shopping cart.” This is highly unusual, as the actual stock and order quantity are both 1 and are not being reduced in the admin panel.
    If the user tries to proceed with the purchase despite the above warning, another error occurs: “There was a problem with the purchase process. Please try again. If the problem persists, please contact support.”
    After this final error occurs, when the user tries to navigate to another page, they get logged out of their account. It seems the session information is being reset for some reason, which may be the root cause of the issue.
    I have been investigating this problem on my end, but since this is your custom theme, I believe your team would be better equipped to thoroughly examine and resolve these critical issues. Given the severity of the problem and its impact on the customer experience, I would kindly request that you prioritize this investigation and provide a fix as soon as possible.

    Please let me know if you have any questions or require additional information from me.
    Thank you for your prompt attention to this matter.

    #2795
    Yosuke Suzuki
    Participant

    I apologize for the confusion. The issue where the user gets logged out may be a separate problem. Upon examining the HTML source, it appears that the “My Account” link is inadvertently set up as a logout process link, which is likely triggering the unintended logout behavior.


    <span>
    <i class=”fas fa-user”></i>
    My Account </span>

    #2796
    Yosuke Suzuki
    Participant

    I don’t understand. Why is the My Account link linked to the logout process?? Where can I change this link??lol

    #2797
    Yosuke Suzuki
    Participant

    Since the functionality is normal in other themes, it appears there is something specific to this theme that is causing the problem. Even when reverting to the parent theme, the same issues are occurring, so it does not seem to be an issue with my own modifications.
    Which files did you modify that might be related to these bugs?

    #2798
    Yosuke Suzuki
    Participant
    #2799
    Yosuke Suzuki
    Participant

    This forum doesn’t allow for writing code. It seems there was an issue with the code in the product-search.php file, where clicking the ‘My Account’ would log the user out. But this has been resolved.

    The remaining issues are:

    When logged out, products added to the cart do not show up on the cart page, and the cart appears empty.
    Related to this, when a logged in user adds the same product to the cart, they receive a ‘not enough stock’ warning, even though there is stock available.
    Let’s work on resolving these remaining issues.

    #2803
    karl marks
    Participant

    Hi,

    We have sent mail for the issues.

    #2804
    Yosuke Suzuki
    Participant

    What I’m currently concerned about is that when comparing the console of the cart page in the logged-out state and the logged-in state,
    in the console of the logged-out state there are errors such as “Failed to load resource: the server responded with a status of 404 (Not Found): https://suzuki-books.com/wc/store/v1/cart?_locale=user&#8221;,
    “Uncaught ReferenceError: wp is not defined at ?page_id=7:543:1”,
    “?page_id=7:567 Uncaught ReferenceError: _ is not defined at ?page_id=7:567:17”,
    “?page_id=7:578 Uncaught ReferenceError: wp is not defined at ?page_id=7:578:2 at ?page_id=7:579:4”.

    I don’t really understand, but is it possible that there was a failure in passing some values, and that’s why the cart display is messed up?

    Is it possible that the way values are being passed is in a format that is not compatible with the latest version of WooCommerce?

    I installed the latest version of WooCommerce a few days ago, and it’s possible that this caused the issue. I will also investigate this possibility, but as a developer, I think you would better understand the meaning of these errors.

Viewing 15 posts - 1 through 15 (of 23 total)
  • You must be logged in to reply to this topic.
Translate »