add continue shopping & view cart buttons – woocommerce single product page

Add continue shopping & view cart buttons – woocommerce single product page was a mission!
The standard display post adding of a product is this:

When I was first asked to help with this site – one new button was already displayed. It functioned properly and was added only once the cart contained one or more product (i.e. was not displayed all the time regardless) but was appearing between the tick icon and the text and would not move!!

Changing code and adding [view cart] button

I then changed the code adding a [view cart] button and removing the overlaying of the buttons with the tick icon/text:

Which resulted in the following:

Nice work ey? Only – the buttons display even when the cart is empty which as I later found out was not want the client was wanting…

I wish I could hand code php

I wish I could hand code php but all I can do is cut and paste, modify, trial and error; does this work? or this? The buttons need to be added only if the cart contains items. Boolean logic. If, then… My first attempt (well this is actually my 3rd I think was almost there):

Except I had forgotten to add_action check_cart_is_full_add_buttons which I did next and it still didnt work…?

It didnt take too long now though to realise I hadnt told the action ‘where to act’ – woocommerce_before_single_product – when I added it the buttons appear when the cart contains 1 or more item and dont when its empty!!!

Thanks for letting me help you Skite! :)