Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter andywatt

    (@andywatt)

    okay found the answer:

    add_action( ‘woocommerce_add_cart_item_data’, ‘woocommerce_clear_cart_url’ );

    function woocommerce_clear_cart_url() {

    global $woocommerce;
    $woocommerce->cart->empty_cart();
    }

    Thread Starter andywatt

    (@andywatt)

    Thank you! It worked like a charm!

    /*empty cart if user come to homepage*/
    add_action( ‘init’, ‘woocommerce_clear_cart_url’ );
    function woocommerce_clear_cart_url() {
    global $woocommerce;

    if ($_SERVER[‘REQUEST_URI’] === ‘/’) {
    $woocommerce->cart->empty_cart();
    }
    }

    Thread Starter andywatt

    (@andywatt)

    Hey icc0rz!

    Yes that did do the trick thank you ??
    On the official H5p website the official/tutorial file is missing images, although I did find another file on their website forum that did work.

    Thanks ??

    Do you also know how to decrease the hot spot points on the mobile phone? They are way to big right now…

    Thread Starter andywatt

    (@andywatt)

    Hey Suyogya,

    I’m sorry, I did not understand what you meant with my logo being to big until I opened it up in photoshop and checked the dimensions. I resized the logo and it fits now.

    Thank you for your help!

    Greetings,
    Andrea

    Thread Starter andywatt

    (@andywatt)

    Hey Suyogya,

    The logo does get very big on an Ipad, but it really is not that big to begin with. On a computer screen it is fine. Make is smaller and it does not look good at all. So it’s like I have to make a sacrifice here: Ipad vs computer screen.

    There has to be an other way.

    Thanks for responding,

    Andrea

    Thread Starter andywatt

    (@andywatt)

    Dear Suyogya,

    That would be a last resort option, but I would like to keep the size the way it is on the desktop screen.

    I find it strange that the Ipad has the menu covering up the logo while with the cellphone there is no problem.

    But thanks for the advice, because if nothing else works, I might have to use this option which I don’t really want to do.

    Isn’t there some code that can be used?

Viewing 6 replies - 1 through 6 (of 6 total)