Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Add to Shopping Bag be Changed?
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Add to Shopping Bag be Changed?
- This topic has 12 replies, 4 voices, and was last updated 10 years by Mohammad – SUPPORT.
-
Posted in: Neighborhood
-
March 26, 2014 at 5:54 pm #61347
1 : Can Character and Background of Add to Shopping Bag be Changed?
If it can change, please teach me a method.
2 : I changed the position of the price.
However, if it sees by iphone, the position of a price will change to a center.
Is it possible to display a price on the same position as PC also by iphone?If it can change, please teach me a method.
March 27, 2014 at 12:35 pm #61650Hi,
1- Please try to put this code at functions.phpadd_filter( 'add_to_cart_text', 'woo_custom_cart_button_text' ); // < 2.1 add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text' ); // 2.1 + function woo_custom_cart_button_text() { return __( 'My Button Text', 'woocommerce' ); }
2- Please make a exact screenshot that what do you want so i can suggest you easily .
Thanks 🙂
With Best Regards
Swift IdeasMarch 28, 2014 at 6:18 am #619161 :
Thank you for the answer.
However, I do not know to indicate this code where.
Although I feel sorry, please tell me.2 :
It is a screen shot of my i-phone.A brand name and the amount of money are left-justified at the time of PC.
Is it possible to display by centering at the time of i-phone?March 28, 2014 at 8:33 am #61933HI,
1- You can put this code in functions.php end of file at /wp-content/themes/neighborhood/2- Please use this custom css at Admin -> Theme Options -> Custom CSS
.woocommerce ul.products li.product .price, .woocommerce-page ul.products li.product .price{width:100%;text-align:center;margin:0 auto;}
Thanks
March 28, 2014 at 8:44 am #61944Hi,
1 if you open functions.php place the code at the bottom right before the closing ?>
2 We’d need to have a look at your website live please.
Cheers
March 28, 2014 at 9:35 am #619792:
The display took the lead by iphone.
Thank you.However, I would like to leave to the display of left-justification in PC.
Isn’t there any method?css of my now
.woocommerce ul.products li.product .price, .woocommerce-page ul.products li.product
.price{clear:both;float:left;font-size:15px;font-weight:300;}
.woocommerce ul.products li.product .price, .woocommerce-page ul.products li.product
.price{width:100%;text-align:center;margin:0 auto;}If there is a method, please let me know.
March 28, 2014 at 9:43 am #61988Hi,
Please use this code@media only screen and (max-width: 479px) { .woocommerce ul.products li.product .price, .woocommerce-page ul.products li.product .price{width:100%;text-align:center;margin:0 auto;} }
Instead of .woocommerce ul.products li.product .price, .woocommerce-page ul.products li.product .price{width:100%;text-align:center;margin:0 auto;}
Thanks
April 9, 2014 at 2:27 am #65479Hi there,
Im also trying to change the “Add to shopping bag” button on the product page to: “Add to shopping cart”.
I’ve placed the below bit of code at the bottom of ourr function file but no change. What have I done wrong?
Thanks,
Danadd_filter( 'add_to_cart_text', 'woo_custom_cart_button_text' ); // < 2.1
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text' ); // 2.1 +
function woo_custom_cart_button_text() {
return __( 'Add to shopping cart', 'woocommerce' );
}April 9, 2014 at 2:34 am #65481@thefoldnz – Please attach a screenshot that where did you ads this code ? code should be inside php tag like this <?php YOUR CODE ?> and disable all cache plugin .
Thanks
April 9, 2014 at 2:39 am #65483Thanks for the quick response Mohammad. Screenshot attached.
Also what happens when an update is out for the theme? Wont this change be overwritten?
Thanks
DanApril 9, 2014 at 3:43 am #65487Hi,
Please find this codeadd_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text' ); Replace with add_filter( 'single_add_to_cart_text', 'woo_custom_cart_button_text' );
Thanks
April 10, 2014 at 12:04 am #65804Thanks that worked. How do I change the “shopping bag” labels in the drop down cart? Screenshot attached.
Many thanks
DanApril 10, 2014 at 8:29 am #65876Hi,
Please open to edit sf-woocommerce.php at /neighborhood/includes/swift-framework/ and
find code at line 157 – 159<a class="sf-roll-button bag-button" href="<?php echo esc_url( $woocommerce->cart->get_cart_url() ); ?>"><span><?php _e('View shopping bag', 'swiftframework'); ?></span><span><?php _e('View shopping bag', 'swiftframework'); ?></span></a> <a class="sf-roll-button checkout-button" href="<?php echo esc_url( $woocommerce->cart->get_checkout_url() ); ?>"><span><?php _e('Proceed to checkout', 'swiftframework'); ?></span><span><?php _e('Proceed to checkout', 'swiftframework'); ?></span></a>
Hope it will help you .
Thanks
-
Posted in: Neighborhood
You must be logged in and have valid license to reply to this topic.