New Landing How can we help? Themeforest Theme Support Neighborhood Add to cart button on product page looks different

Viewing 3 posts - 1 through 3 (of 3 total)
  • #159086
    paristokyo
    Member
    Post count: 47

    Add to cart button on product page with variations and without variations looks different http://monosnap.com/image/LqnRB6SIcK3Fh08PYwV3c4FzU6v7V5
    Different text, no + icon and button don’t have hover effect on product page with variations. How to make button on page with variations look the same as on page without variations?

    Thanks

    #159106
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Thanks for letting us know, I will forward this to the developer for you so we can sort it for the next update. It’s because WooCommerce keeps updating and changing things

    – Kyle

    #159117
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    In the file variable.php located in neighborhood/woocommerce/single-product/add-to-cart/ find the line 80 (the code below)

    
    	<button type="submit" data-product_id="<?php echo $product->id; ?>" data-quantity="1" data-loading_text="<?php echo $loading_text; ?>" data-added_text="<?php echo $added_text; ?>" class="add_to_cart_button button alt"><?php echo apply_filters('sf_add_to_cart_icon', '<i class="sf-icon-add-to-cart"></i>'); ?><span><?php echo $product->single_add_to_cart_text(); ?></span></button>

    and replace it by this one

    
    <button type="submit" data-product_id="<?php echo $product->id; ?>" data-quantity="1" data-loading_text="<?php echo $loading_text; ?>" data-added_text="<?php echo $added_text; ?>" class="add_to_cart_button button alt"><?php echo apply_filters('sf_add_to_cart_icon', '<i class="fa-plus"></i> '); ?><span><?php echo apply_filters('single_add_to_cart_text', __("Add to shopping bag", "swiftframework"), $product->product_type); ?></span></button>
    

    I tested in my installation and it worked.

    -Rui

Viewing 3 posts - 1 through 3 (of 3 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