This topic has 13 replies, 3 voices, and was last updated 9 years, 9 months ago ago by Eva Kemp
Hi,
Is it possible to change the name of the Cart to “Shopping Bag” so that is what is displayed all over the site?
Thanks!
Hello,
This requires significant amount of additional customization.
Could you please clarify with more details where you want to change text and show us screenshots?
Regards,
Robert Hall.
Hello Robert,
An example is in the top right hand corner of the Home page.
Can you tell me how to send you a screenshot please?
Hello,
You can change text ‘Cart’ in \themes\royal\framework\woo.php file on line 1213.
To make screenshot you can use LightShot program.
Regards,
Robert Hall.
Hello Robert,
Thanks for the quick response.
Your colleague Eva also gave me some advice about how to send a screenshot; I’ve added a link in the Private Content section just to ensure that we’re talking about the same thing.
Hello,
Yes, Robert gave you the correct file to change “Cart” text – wp-content/themes/royal/framework/woo.php (line 1213).
Thank you.
Regards,
Eva Kemp.
Thank you Eva & Robert.
I have a related question that I have added in the Private Content section for your perusal.
Thanks again.
Incidentally, I changed the Top Cart Widget and that worked well.
Do I also need to change the title in the Shopping Cart Modal?
Thanks!
Hello,
Could you please clarify with more details?
Please show a screenshot where you want to change “Cart” text.
Thank you.
Regards,
Eva Kemp.
Hello Eva,
Here’s an extract of the file in question:
// **********************************************************************//
// ! Shopping cart modal
// **********************************************************************//
add_action(‘after_page_wrapper’, ‘etheme_cart_modal’);
if(!function_exists(‘etheme_cart_modal’)) {
function etheme_cart_modal( $product_id = ” ) {
global $woocommerce, $product,$post;
echo ‘<div id=”cartModal” class=”mfp-hide modal-type-1 zoom-anim-dialog”><div id=”shopping-cart-modal”>’;
?>
<h3 class=”title”><span><?php _e(‘Cart’, ETHEME_DOMAIN); ?></span></h3>
<?php
?>
<div class=”shopping-cart-modal a-right” >
<?php
etheme_cart_items(150);
?>
</div>
<?php
echo ‘</div></div>’;
}
}
Hello,
If the desired text is changed then you don’t need edit that section.
Thank you.
Regards,
Eva Kemp.
Hello Eva,
Thanks for the clarification.
Regards!
Hello,
You’re welcome.
Regards,
Eva Kemp.
Tagged: cart title, change, customize, optimize, themes, woocommerce, wordpress
The issue related to '‘Changing Cart Title’' has been successfully resolved, and the topic is now closed for further responses