Topic Resolution: Resolved
  • Closed
  • webkaz
    Spectator
    February 14, 2015 at 7:23 am #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
    February 17, 2015 at 9:16 pm #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
    February 17, 2015 at 10:18 pm #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
    February 18, 2015 at 7:41 am #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
    February 18, 2015 at 3:10 pm #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
    February 18, 2015 at 7:27 pm #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
    February 19, 2015 at 9:57 am #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
    February 20, 2015 at 11:24 am #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
    February 20, 2015 at 11:42 am #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
    February 20, 2015 at 2:52 pm #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
    February 20, 2015 at 6:56 pm #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/