Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Put taxes below the price > product single page
New Landing › How can we help? › Themeforest Theme Support › Neighborhood › Put taxes below the price > product single page
- This topic has 9 replies, 3 voices, and was last updated 7 years by David Martin – Support.
-
Posted in: Neighborhood
-
February 24, 2016 at 5:51 pm #251821
Hi!
Although I´ve found some similar issues within the community it could not solve my problem.
I´m running woocommerce with the plugin “Germanized”. It puts additional information, especially taxes, into the product page. I would like to place the additional taxes and delivery information below the price! Please finde screenshot attached.
I´ve tried to get support from the author of that plugin. Put it does not work. I tried to put the following code into the functions.php:
remove_action( 'woocommerce_single_product_summary', 'woocommerce_gzd_template_single_legal_info', wc_gzd_get_hook_priority( 'single_legal_info' ) ); add_action( 'woocommerce_single_product_summary', 'woocommerce_gzd_template_single_legal_info', 11 );
(as suggested): it removes the original manner of placing that additional tax information and tries to replace it in another way.
Hope you can help me. Thanks!
Daniel
Attachments:
You must be logged in to view attached files.February 26, 2016 at 12:10 pm #252178Hi Daniel,
The Woo template within the theme does not have an action to add content below the price.
You would likely need to edit the file
neighborhood/woocommerce/content-single-product.php
and add in your own action below the price, then you can hook into that.Ex, in the file you will see the price:
<p itemprop="price" class="price"><?php echo $product->get_price_html(); ?></p>
You can add in an action below that:
<p itemprop="price" class="price"><?php echo $product->get_price_html(); ?></p> <?php do_action( 'sf_custom_single_after_price' ); ?>
Then update the above action to reference that:
add_action( 'sf_custom_single_after_price', 'woocommerce_gzd_template_single_legal_info' );
Thanks.
February 26, 2016 at 1:11 pm #252189Awesome! You made my day! 🙂 Thanks!
February 26, 2016 at 1:17 pm #252190Great, happy to help you.
Thanks.
January 5, 2017 at 12:46 pm #308954Is there a chance you could get me in touch with Daniel? Maybe forward him my email address? Cheers
January 5, 2017 at 1:08 pm #308957Hi will be notified via this message. I’d be reluctant to share his private email though.
January 5, 2017 at 1:43 pm #308968Sure, thanks!
January 5, 2017 at 1:46 pm #308970No problem, I think without permission it would be wrong to hand out contact information.
Does this relate to the OP’s ticket?
January 5, 2017 at 3:07 pm #308984Yes, in a way. There are some more texts being added by the Germanized plug-in for WooCommerce, e.g. on the checkout page, and I’d like to ask Daniel whether he managed to move them around too, and if so, how he did it.
January 6, 2017 at 4:54 pm #309161You’re best off asking the plugin developer or hiring a freelance developer to help you with your modifications.
-
Posted in: Neighborhood
You must be logged in and have valid license to reply to this topic.