admin管理员组文章数量:1122832
can someone help me with this issue ? I want to add a button in my product page and name it (contact seller) and I want to link this button to the seller page. how can I do it ?
here is a screenshot for what i'm looking to achieve
can someone help me with this issue ? I want to add a button in my product page and name it (contact seller) and I want to link this button to the seller page. how can I do it ?
here is a screenshot for what i'm looking to achieve
Share Improve this question asked Jun 17, 2019 at 16:03 Ahmed HaibaAhmed Haiba 11 bronze badge1 Answer
Reset to default 0You can use woocommerce_single_product_summary
hook to add custom button in the single product page in WooCommerce. Please check following example. Custom link added and button
class is given to display it like a button.
add_action( 'woocommerce_single_product_summary', 'wpso_add_seller_button', 15 );
function wpso_add_seller_button() {
echo '<a href="https://example.com" class="button">Contact Seller</a>';
}
本文标签: woocommerce offtopicHow to add contact seller button in product page
版权声明:本文标题:woocommerce offtopic - How to add contact seller button in product page 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736292121a1928866.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论