bobbingwide / vgc

VGC - Garden Vista Group theme
GNU General Public License v2.0
0 stars 0 forks source link

You may be interested in hiding checkout button #38

Closed bobbingwide closed 9 months ago

bobbingwide commented 2 years ago

It happened once on 17th May. I didn't take a screen capture but on the live site, when looking at the Basket I saw a "You may be interested in" dialog which prevented me from seeing the Checkout button.

bobbingwide commented 2 years ago

This message comes from woocommerce/templates/cart/cross-sells.php which is loaded by wc_get_template() in woocommerce_cross_sell_display(), an action hook for woocommerce_cart_collaterals which is run against the cart.

This message would only be displayed for Products with Cross Sells. I'll need to try to find these.

bobbingwide commented 2 years ago

I reproduced the problem by creating a cross sell against the test product, post ID 7982. I added Halls Cotswold Eden Birdlip 4 x 4 greenhouse, post ID 2691.

image

The post meta meta_key for this is _crosssell_ids This is the only entry in my local environment.

Production also has only one entry.

In production the Proceed To Checkout button was visible.

In my local copy the Cart Totals and Proceed to checkout divs were hidden behind the CTA at the bottom.

Additionally:

bobbingwide commented 2 years ago

Proposed workaround

bobbingwide commented 1 year ago

The problem still occurs in the Live site. Seen when testing VGC v1.4.0.

image

bobbingwide commented 1 year ago

These are the Upsells and Cross-sells for Halls Qube 8 x 16 ft Black Greenhouse

image

bobbingwide commented 9 months ago

Delivered in v1.6.0