在使用Woocommerce Product Addons时,我为特定的输入域安装了一个日期选择器。下面的代码适用于ID为'1381‘的产品。如何将woocommerce的$product_id赋值到jQuery代码中。
// Check the name of your addon field in the source.addon-1318-install-date-mmddyy]" ).datepicker
在Woocommerce中,我有一个名为restriction_id的产品属性。我想过滤基于某些限制id的的产品。例如,如果在php会话变量中将值设置为35,则我希望筛选出将restriction_id属性设置为35.的任何产品。// Define the woocommerce_product_query callback
function action_wooc