Topic Resolution: Resolved
  • Closed
  • webkaz
    Spectator
    14.02.2015 at 07:23 #14740

    Hi
    The new woocommerce version has some css changes. However the main conflict is there are now 2 “Proceed to Check Out” buttons

    Any ideas on how to remove the 2nd button?

    Everthing else seems to be working find with the update.

    Lukasz
    Spectator
    Posts: 45
    17.02.2015 at 21:16 #14814

    Thanks Jaroslav,

    Unfortunately it help only in page with “cart”. When I went to the page “checkout” the duplicated button remain (see second screenshot – post #14771).

    Anonymous
    Inactive
    Posts: 49
    17.02.2015 at 22:18 #14818

    [quote quote=14814]Thanks Jaroslav,

    Unfortunately it help only in page with “cart”. When I went to the page “checkout” the duplicated button remain (see second screenshot – post #14771).
    [/quote]
    Well in that case add also this CSS code:

    .woocommerce-checkout .form-row.place-order {display:none;}

    Lukasz
    Spectator
    Posts: 45
    18.02.2015 at 07:41 #14822

    Hi Jaroslav,

    I added your code, but as you can see in link below:
    http://img24.otofotki.pl/obrazki/gh468_Checkout2.jpg

    On the page is displayed duplicated information about method of payment, but now on the page missing button BUY.

    Anonymous
    Inactive
    Posts: 49
    18.02.2015 at 15:10 #14827

    Well provide me FTP server URL, user/pass and i will remove all unnecessary code from your template.

    Just set post as private reply when you posting such details.

    Regards

    Lukasz
    Spectator
    Posts: 45
    18.02.2015 at 19:27 #14838

    I see one problem your solution. This change I would do in few pages, so I have to know what should be changed.

    Roman
    Spectator
    Posts: 3147
    19.02.2015 at 09:57 #14844

    Home

    please unzip and copy attached zip file to folder alora/woocommerce/, overwrite the old files.

    Open file alora/framework/woo-config.php and add:

    line #55

    remove_action( 'woocommerce_proceed_to_checkout', 'woocommerce_button_proceed_to_checkout', 10 );

    line #787, remove this:

    add_action('woocommerce_after_cart_totals', 'alora_woocommerce_after_cart_totals');
    function alora_woocommerce_after_cart_totals($args)
    {
    global $woocommerce; ?>

    <input type="submit" class="t4p-button button-default button-medium button default medium" name="update_cart" value="<?php _e( 'Update Cart', 'woocommerce' ); ?>" />
    <input type="submit" class="checkout-button t4p-button button-default button-medium button default medium alt wc-forward" name="proceed" value="<?php _e( 'Proceed to Checkout', 'woocommerce' ); ?> &rarr;" />

    <?php do_action( 'woocommerce_proceed_to_checkout' ); ?>

    <?php
    }

    this is a temporary fix and will be fixed in the next theme version

    Lukasz
    Spectator
    Posts: 45
    20.02.2015 at 11:24 #14887

    Thank Roman,

    I copied files. Now it looks fine. I will make few more tests.

    But in file woo-config.php I didn’t find this line:
    <?php do_action( 'woocommerce_proceed_to_checkout' ); ?>

    In my file was:
    add_action('woocommerce_after_cart_totals', 'alora_woocommerce_after_cart_totals');
    function alora_woocommerce_after_cart_totals($args)
    {
    global $woocommerce; ?>

    <input type="submit" class="t4p-button button-default button-medium button default medium" name="update_cart" value="<?php _e( 'Update Cart', 'woocommerce' ); ?>" />
    <input type="submit" class="checkout-button t4p-button button-default button-medium button default medium alt wc-forward" name="proceed" value="<?php _e( 'Proceed to Checkout', 'woocommerce' ); ?> &rarr;" />

    <?php
    }

    Roman
    Spectator
    Posts: 3147
    20.02.2015 at 11:42 #14890

    probably I provided extra code accidentally, anyway if it works for you so there is no problem with the code

    Chris Birchall
    Spectator
    Posts: 6
    20.02.2015 at 14:52 #14893

    Reading the above, I’m wondering: Should I delay updating to WooCommerce 2.3 until a Theme update is available?

    Denise Easton
    Spectator
    Posts: 1
    20.02.2015 at 18:56 #14903

    How do I remove the side bar from the product page created by woocomerce. Also there seems to be no way to publish a product without a featured image.

    http://adaptknowledge.com/shop/emerging-networks-in-the-white-space-on-your-organization-chart/