Home › Forums › Basel support forum › Fixing customizations after update to 3.2.0
Fixing customizations after update to 3.2.0
- This topic has 1 reply, 2 voices, and was last updated 8 years ago by
Artem Temos.
-
AuthorPosts
-
May 12, 2017 at 7:01 am #13629
jdamgaardParticipantHey again.
Great Theme, I have a few issues after updating though 🙂1: Hiding featured image thumbnail on product page.
This is the code inserted on themes function.php//***********
add_filter(‘woocommerce_single_product_image_thumbnail_html’, ‘remove_featured_image’, 10, 3);
function remove_featured_image($html, $attachment_id, $post_id) {
$featured_image = get_post_thumbnail_id($post_id);
if ($attachment_id != $featured_image) {
return $html;
}
return ”;
}
//********2: Changing text on “Add to cart ” button.
//Add New Pay Button Text
add_filter( ‘woocommerce_product_single_add_to_cart_text’, ‘themeprefix_cart_button_text’ );function themeprefix_cart_button_text() {
return __( ‘Læg i Kurv’, ‘woocommerce’ );
}3: Adding a custom text directly under “Add to cart” button
//**
add_action( ‘woocommerce_after_shop_loop_item’, ‘wc_custom_text_below_add_to_cart’ ); Archive pages
add_action( ‘woocommerce_after_add_to_cart_button’, ‘wc_custom_text_below_add_to_cart’ ); Single product page
function wc_custom_text_below_add_to_cart( $html ) {
echo ‘<div class=”extra-text”><p>Bemærk! Vi udarbejder og sender en digital korrektur med det ønskede produkt.<br>
Din bestilling er først bindende nÃ¥r du har godkendt denne.</p></div>’;
}//*****
4: Changing the CSS for Add to cart button
My Custom CSS i theme settings is:.single-product-content .cart .button {
background-color: #1070b8;
color: #ffffff;
border-color: #1070b8;
}
.single-product-content .cart .button:focus, .single-product-content .cart .button:hover {
background-color: #4c9bd6;
color: #fff;
text-decoration: none;
border-color: #4c9bd6;
}And finally there are a few translation issues.
I have translated these using Loco Translate – in version 3.2.0 they are still in english.1: Quick view tooltip
2: Shopping Cart pop-in headerAttachments:
You must be logged in to view attached files.May 12, 2017 at 7:22 am #13634
Artem TemosKeymasterHello,
Sorry, but we are not responsible for any customizations made on your website. They are out of our theme support scope. And they also were broken because of WooCommerce new version, not our theme since we didn’t change any PHP hooks.
As for translation issues, please, switch to parent theme and provide us your admin access so we could check why it doesn’t work.
Regards
-
AuthorPosts
Tagged: Update to 3.2.0
- You must be logged in to create new topics. Login / Register