Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #933009

    Hi,

    I have tried a few different CSS tweaks to change this, but still can’t get it right.

    Is there any way to change the ‘view cart’ and ‘checkout’ buttons in the dropdown ajax woocommerce cart. I would like it to just say ‘Continue To Booking’ which links to the checkout. How would I go about doing this? Here is what I have in mind:

    View post on imgur.com

    Thanks for your help
    Harry

    #933048

    UPDATE: I have made it look a lot better now, just linking to the cart instead of the checkout which is fine.

    How would I go about changing the text to say ‘Book Your Tickets’ instead of View cart?

    Many Thanks
    Harry

    #933358

    Hi,

    Thank you for using Enfold.

    This is possible but you have override the mini-cart.php template in the child theme. Create a directory called woocommerce > cart in the child theme then copy the mini-cart.php file inside. Edit the file, look for this code around line 76.

    
    <p class="woocommerce-mini-cart__buttons buttons"><?php do_action( 'woocommerce_widget_shopping_cart_buttons' ); ?></p>
    
    

    Replace it with:

    
    <p class="woocommerce-mini-cart__buttons buttons"><?php echo '<a href="' . esc_url( wc_get_cart_url() ) . '" class="button wc-forward">' . esc_html__( 'Continue To Booking', 'woocommerce' ) . '</a>'; ?></p>
    
    

    You can find the original mini-cart.php file in the plugins > woocommerce > templates > cart folder.

    Best regards,
    Ismael

    #933729

    That seems to have solved it! Thanks for your help Ismael, great support as always.

    #933892

    Hi,

    Glad we could help!
    Please take a moment to review our theme and show your support https://themeforest.net/downloads
    To know more about enfold features please check – http://kriesi.at/documentation/enfold/
    Thank you for using Enfold :)

    Best regards,
    Vinay

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Ajax Cart Dropdown Button Change’ is closed to new replies.