New Landing How can we help? Themeforest Theme Support Neighborhood Add to Shopping Bag be Changed?

Viewing 13 posts - 1 through 13 (of 13 total)
  • #61347
    un.chain
    Member
    Post count: 79

    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.

    #61650
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    1- Please try to put this code at functions.php

    add_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 Ideas

    #61916
    un.chain
    Member
    Post count: 79

    1 :
    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?

    #61933
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    HI,
    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

    #61944
    Melanie – SUPPORT
    Member
    Post count: 11032

    Hi,

    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

    #61979
    un.chain
    Member
    Post count: 79

    2:
    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;}

    http://icechain-plant.com/

    If there is a method, please let me know.

    #61988
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    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

    #65479
    thefoldnz
    Member
    Post count: 7

    Hi 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,
    Dan

    add_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' );
    }

    #65481
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    @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

    #65483
    thefoldnz
    Member
    Post count: 7

    Thanks for the quick response Mohammad. Screenshot attached.

    Also what happens when an update is out for the theme? Wont this change be overwritten?

    Thanks
    Dan

    #65487
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please find this code

    add_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

    #65804
    thefoldnz
    Member
    Post count: 7

    Thanks that worked. How do I change the “shopping bag” labels in the drop down cart? Screenshot attached.

    Many thanks
    Dan

    #65876
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    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

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register