简体   繁体   English

wooCommerce在单个产品页面上显示属性描述

[英]wooCommerce display Attribute description on single product page

Hey there guys I'm developing for www.911quotes.com and on our single products page we would like to show the attributes description under the checkout button. 嘿,我正在为www.911quotes.com开发人员,在我们的单一产品页面上,我们想在结帐按钮下显示属性说明。

Any help on how to get this done would be great. 如何完成这项工作的任何帮助都会很棒。 I have been searching and searching. 我一直在搜寻。 We are using WooCommerce and I can't seem to figure this one out. 我们正在使用WooCommerce,但我似乎无法弄清楚这一点。

Normally you wouldn't see the "Checkout" button on the Single Products page - you'd see the "Add to Cart" button! 通常,您不会在“单一产品”页面上看到“结帐”按钮-您会看到“添加到购物车”按钮! Assuming that's what you mean, you can hook into this area as follows: 假设这就是您的意思,则可以按如下所示进入该区域:

// Hook below Add to Cart Button
add_action( 'woocommerce_after_add_to_cart_button', 'pgwp_woocommerce_after_add_to_cart_button');
function pgwp_woocommerce_after_add_to_cart_button () {

    echo '<div id="msg-after-add-button" style="clear:both"><p>Hello World!</p></div>';

}

Not sure what you mean by "the attributes description". 不确定“属性描述”是什么意思。 I think this is the answer you need for that: Woocommerce getting custom attributes 我认为这是您需要的答案: Woocommerce获取自定义属性

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Woocommerce - 在前端显示带有简码的单个产品属性描述 - Woocommerce - Display single product attribute(s) description with shortcodes in Frontend WooCommerce:将类别描述添加到单个产品页面 - WooCommerce: Adding category description to single product page Woocommerce:在订单页面上显示产品变化描述 - Woocommerce: Display Product Variation Description on order page 在 woocommerce 产品页面中显示产品属性和分类 - display product attribute and taxonomy in woocommerce product page 在Woocommerce单一产品页面中获取产品类别名称和描述 - Get the product category name and description in Woocommerce Single Product page 无法使用 ACF 和 WooCommerce 在单个产品页面上显示自定义产品属性数据 - Can't display custom product attribute data on Single Product page with ACF and WooCommerce 显示 现货 WooCommerce 单品简短描述 - Display In stock available variations in WooCommerce single product short description 在 Woocommerce 单个产品页面的简短描述下显示自定义字段 - Display a custom field under short description in Woocommerce single product pages 在商店页面显示 WooCommerce 尺寸产品属性 - Display WooCommerce size product attribute on shop page 在 Woocommerce 购物车页面上显示特定的产品属性 - Display specific product attribute on Woocommerce cart page
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM