- This topic has 7 replies, 4 voices, and was last updated 7 months, 1 week ago by
Tom.
-
AuthorPosts
-
June 12, 2020 at 4:50 pm #1325707
Ciji
Hi,
When I uncheck the boxes for Product Title, image, and such under the General heading in the GP Customizer WooCommerce Tab, it removes each item from the product loop on the bottom of the checkout page (which is great!) as well as removing related products and upsells from my single products page (not so great) even though I have the ‘Display related products’ and ‘Display upsell products’ boxes checked under the Single Product heading.
Is there a way to keep the related products and upsells on the single product pages and still remove the product loop from the checkout page?
Thanks,
CijiJune 12, 2020 at 9:46 pm #1325841Leo
StaffCustomer SupportHi there,
The site you’ve linked requires a username and password to view.
Any chance you can unlock it so we can see the isshe?
Let me know π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/June 13, 2020 at 8:36 am #1326473Ciji
Thank you for getting back to me.
The site is now unlocked. My apologies.
You can see a single product page here: https://www.nwtw.org/staging/product/writers-room/
The checkout page is here: https://www.nwtw.org/staging/checkout/I simply want to remove the product loop on the bottom of the check out page, but when I do it through the GP Customizer WooCommerce Tab it also removes the related products and upsells from the single products page- which I’d like to keep.
June 13, 2020 at 9:29 am #1326547David
StaffCustomer SupportHi there,
try adding this PHP Snippet:
remove_action( 'woocommerce_cart_collaterals', 'woocommerce_cross_sell_display' );
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/June 13, 2020 at 12:53 pm #1326719Ciji
Thank you.
I tried that snippet (I use code snippets) but it doesn’t remove the product loop on the checkout page (https://www.nwtw.org/staging/checkout/).
I think it might not work because the product loop isn’t cross-sells. Is that possible?
I also have the “Distraction Free” checkbox selected in the GP Customizer WooCommerce under the Checkout heading, but the footer still shows up. Could that be a related issue?
June 13, 2020 at 4:30 pm #1326837Tom
Lead DeveloperLead DeveloperThat’s strange that products are displaying in the checkout in the first place – how was that done?
The body classes for the checkout are saying it’s a product archive, which is why they’re displaying. Can you make sure the checkout page is only set as the checkout page (and not anything else) in your WooCommerce settings?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentJune 13, 2020 at 5:47 pm #1326875Ciji
I’m embarrassed to say – That was it. Thank you.
Btw, I love the theme. Great work.
June 14, 2020 at 9:52 am #1327589Tom
Lead DeveloperLead DeveloperGlad I could help! Thank you π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.