-
AuthorPosts
-
March 26, 2018 at 2:46 pm #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:
Thanks for your help
HarryMarch 26, 2018 at 3:39 pm #933048UPDATE: 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
HarryMarch 27, 2018 at 5:17 am #933358Hi,
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,
IsmaelMarch 27, 2018 at 4:21 pm #933729That seems to have solved it! Thanks for your help Ismael, great support as always.
March 27, 2018 at 9:53 pm #933892Hi,
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 -
AuthorPosts
- The topic ‘Ajax Cart Dropdown Button Change’ is closed to new replies.
