Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Add to Shopping Bag Button style different on Single/Variation products?
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Add to Shopping Bag Button style different on Single/Variation products?
- This topic has 28 replies, 3 voices, and was last updated 9 years by Mohammad – SUPPORT.
-
Posted in: Neighborhood
-
March 9, 2015 at 10:39 pm #156103
Hi,
Css doesn’t seem to work.
Does the functions code need to be wrapped in anything? I’m getting an error when I just paste it into the functions.php file. Current content is:
<?php // Use WC 2.0 variable price format add_filter( 'woocommerce_variable_sale_price_html', 'wc_wc20_variation_price_format', 10, 2 ); add_filter( 'woocommerce_variable_price_html', 'wc_wc20_variation_price_format', 10, 2 ); function wc_wc20_variation_price_format( $price, $product ) { $min_price = $product->get_variation_price( 'min', true ); $max_price = $product->get_variation_price( 'max', true ); if ($min_price != $max_price){ $price = sprintf( __( 'From: %1$s', 'woocommerce' ), wc_price( $min_price ) ); return $price; } else { $price = sprintf( __( '%1$s', 'woocommerce' ), wc_price( $min_price ) ); return $price; } } ?>
I appreciate all of your help Mohammad!
March 10, 2015 at 1:30 am #156135Hi,
Please provide me FTP login detail to resolve the issue.
Thanks
MohammadMarch 10, 2015 at 10:44 am #156220This reply has been marked as private.March 10, 2015 at 11:39 am #156240Hi,
1- Button looking perfect now.2- Have you changed Add to Shopping Bag to Order Now through any plugin? Please deactivate all plugin except woocommerce.
Thanks
MohammadMarch 10, 2015 at 10:13 pm #156330Hi Mohammad,
Thanks for all of your ongoing assistance.
I did not have a wording plugin, but as requested I have deactivated all plugins except “WooCommerce” and “Under Construction” because I needed to put my site into maintenance mode with all of the other plugins deactivated so no customers would have an issue on the live site.If you log into the WP backend with the credentials provided earlier you can view the site as it would be “live”.
March 11, 2015 at 12:18 pm #156513Hi,
My colleague will assist you shortly.
Thanks
MohammadMarch 15, 2015 at 5:52 am #157386Hi any update with this? I have turned all my plugins off waiting for further help… so my store is down… potentially losing sales here 🙁
March 17, 2015 at 12:09 pm #158176Hi,
Apologize for the delay but didn’t realised that the topic was assigned to me.
Since this topic has a lot of replies and interventions, can you resume what is missing at the moment?
Thanks
-Rui
March 18, 2015 at 1:04 am #158415Hi Rui,
Final problem is that on a single product style it says “+ ADD TO SHOPPING BAG” and on a variable product style it says “Add to cart”
I want them to both say the same thing.
Mohammad got me to deactivate all plugins to see if a plugin was causing the button language to change, which I did, and nothing has happened since.
Please advise.
March 18, 2015 at 4:25 am #158431Hi,
I have resolved the issue. I inserted this code at functions.php pf child theme.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 BAG', 'woocommerce' ); }
Thanks
MohammadMarch 18, 2015 at 5:05 am #158437Thanks Mohammad.
The text is still different through, like maybe the size or kearning?
And one still as a “+” in it.Compare the buttons of:
http://www.aliciahannahnaomi.com/product/awl-ring/
http://www.aliciahannahnaomi.com/product/augen-pendant/I don’t care which is which outcome I just want them the same…
March 18, 2015 at 5:54 am #158447Hi,
I am not able to access any page in admin and FTP.
Thanks
MohammadMarch 18, 2015 at 6:13 am #158451The details have not changed… what error are you getting?
March 18, 2015 at 6:47 am #158461Hi,
I have resolved the issue so please check it now.
Thanks
Mohammad -
Posted in: Neighborhood
You must be logged in and have valid license to reply to this topic.