-
AuthorPosts
-
November 12, 2022 at 3:03 am #1372280
Hi
I have a major issue on my production site: https://silviafindings.com
When I add more than 5 items to my cart, only 5 show, the remaining 5 (cause I added 10) don’t show, yet my cart totals are for 10 items.
I troubleshooted on my DEV environment: https://silviadev.wpengine.com adding the the same items to my cart and when I switch from my Child theme to the default Twenty Twenty Two theme all of my items in the cart show.Can you think of the issue with Enfold that may be causing this?
This is kind of urgent because I can’t switch theme on the production site and I must find a solution fast.
Thank you
LyseNovember 12, 2022 at 3:21 am #1372281Hi
Seems the issue with the Enfold Child theme and my items show on the PROD site when I default to the Enfold theme.
LyseNovember 12, 2022 at 3:53 am #1372282Hi again,
The checkout page is also affected badly making it impossible for customers to review/placed their order.
Much appreciate someone helping as soon as possible.
Thanks
LyseNovember 12, 2022 at 11:44 am #1372290Hi,
Could you try to clear all caches and minification then leave it disabled, to see if that helps? Also please try activating the parent theme in order to check if the problem is coming from the child.
Best regards,
RikardNovember 12, 2022 at 3:56 pm #1372305Hi Rikard,
I did clear all cache and disabled the WP Rocket. I also tried switching to the Enfold parent theme and the cart displays correctly with the parent these activated.
WooCommerce support responded that the theme may be “causing the lack of cart population further than 3 line items.”
Thank you
LyseNovember 12, 2022 at 4:28 pm #1372307Hi
I use the same theme on another one of the same client website: https://diyjewellery.com/ and it has the same issue.I have one more client using the Enfold Child theme and it works fine: https://www.herbalhealinginc.com
Thanks
LyseNovember 12, 2022 at 6:11 pm #1372316Hi,
Thanks for the update. If the problem goes away when the parent theme is active, then that means that the problem is likely coming from some of the code which you have added in the child theme. Please try to remove all code in functions.php first of all, then add the functions back one by one and check when the problem starts occurring again.
Best regards,
RikardNovember 12, 2022 at 6:45 pm #1372325OK will try that now…
On my dev environment I deactivated all code snippets and still I have the isssue
LyseNovember 12, 2022 at 6:51 pm #1372326Tested using incognito and not logged in and the issue goes away when I’m not logged in
November 12, 2022 at 9:28 pm #1372341Hi,
If you are seeing different results depending on weather you are logged in or not would indicate problems with caching, are you sure that all caches are cleared, both on the server and on your local machine?
Best regards,
RikardNovember 18, 2022 at 5:03 pm #1373126Hi Rikard,
Sorry for the late response. I’m traveling and don’t always have access to my work.
The issue is not caused by caching.
A CSS change was made to this file: /wp-content/uploads/dynamic_avia/enfold_child.css that fixes the issue. The same change applied to my other website did not fix the issue there (the file structure differs).
I will provide the exact CSS change as soon as I get it from my developer who sometimes provides me with PHP coding support.
Please keep this ticket open until I provide you with what changed because I should not be making changes to that file as it may get overwritten in an upcoming update to the Enfold parent or child theme.Thank you
LyseNovember 20, 2022 at 1:29 pm #1373263Hi,
Thanks for the update, we’ll keep this thread open for you.
Best regards,
RikardDecember 2, 2022 at 5:42 pm #1374818Hi Rikard,
I found that adding the following code in my child theme functions.php resolves the cart/checkout pages issue for both of my websites:
Here’s the code that causes the issue:
div table.shop_attributes .main_color table caption, .main_color tr:nth-child(2n), .main_color .pricing-table > li:nth-child(2n), #top .main_color .avia-data-table.avia_pricing_minimal td { color: #333333; display: none; }Here’s the code that fixes the issue:
add_action(‘wp_footer’, function(){
if (is_cart() || is_checkout()) {
?>
<style>.main_color tr:nth-child(2n){display: table-row !important;}</style>
<?php
}
});Please let me know if this help permanently fix the issue as it’s happened two times.
Thank you
LyseDecember 3, 2022 at 4:37 pm #1374927Hi,
Great, I’m glad that you found a solution. If everything is working as it should, then please keep your fix in place for now.
Best regards,
RikardDecember 3, 2022 at 4:50 pm #1374932Hi Rikard,
But I think the Enfold parent theme should be fixed because I don’t think this should be in in the child theme as a fix.
Thanks
LyseDecember 3, 2022 at 10:16 pm #1374953Hi,
Yes, we’ll look into fixing this problem in a future release.
Best regards,
RikardDecember 3, 2022 at 10:17 pm #1374954OK Thank you Rikard.
LyseDecember 4, 2022 at 3:22 am #1374986Hi,
Glad to hear that you have this sorted out, and thanks for sharing your solution, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Cart page items missing’ is closed to new replies.