Site logo

Archived topic

I’d like the Add to cart panel to show on product page

5 replies · Started by jose on May 24, 2021

Viewing posts 1–6 of 6

Actually I am using (i am working in local):

add_filter( 'generate_woocommerce_show_add_to_cart_panel', function( $show ) {
    if (is_singular('product')) {
        return true;
    }

    return $show;
} );

But its empty in product page. Like this:

<div id="wc-sticky-cart-panel" class="add-to-cart-panel item-added" style="transform: translateY(88px);">
			<div class="inside-add-to-cart-panel grid-container grid-parent">

				
			</div>
		</div>

Thx. I have an issue.
When the page is on the top. I press "add to cart" and the panel appears over nav menu.
If I scroll down and I press "add to cart" the wc-sticky-cart-panel has transform: translateY(88px); and Its ok, just under nav menu.

How can I solve this?

And How can I change "select options" in the panel for "view cart"? I prefer the same panel displayed in the shop page, but in the product page. How can I do it?

Hi there,

can you share a link to the site where i can see the first issue ?

I can share the links with the issue:
When I scrolled the page a little bit. Woking good:
https://ibb.co/10pwtbK
When the page is on the top. Not working:
https://ibb.co/7Sn8JXC

And How can I change “select options” in the panel for “view cart”? I prefer the same panel displayed in the shop page, but in the product page. How can I do it?
Thats the issue.

I really need to see the actual site to be able to determine what is happening.
You can share links and any login details privately in the Private Information field.

This archived topic is closed to new replies.