【问题标题】:Display all products in dropdown list inside the form in the woocommerce在 woocommerce 表单内的下拉列表中显示所有产品
【发布时间】:2019-09-27 18:16:54
【问题描述】:

我是 wordpress 和 woocommerce 的新手,如何在表单内的下拉列表中列出网上商店中的所有产品? 我正在为 Contact Form 7 插件使用联系表格 7 和智能网格布局设计,但无法弄清楚。

这是我用于动态下拉列表的代码。我刚刚为“帖子来源”选择了所有产品类别,但列表中没有产品:

[dynamic_select* dropdown-product-list id:dropdownProductList 
"source:post:product" "taxonomy:product_cat:nekategorizirane" 
"taxonomy:product_cat:dom" "taxonomy:product_cat:elektronika" 
"taxonomy:product_cat:fitness" "taxonomy:product_cat:dodaci-prehrani" 
"taxonomy:product_cat:fitness-pomagala-i-sprave" 
"taxonomy:product_cat:kutak-za-klince" "taxonomy:product_cat:igracke" 
"taxonomy:product_cat:ljubimci" "taxonomy:product_cat:lov-i-ribolov" 
"taxonomy:product_cat:muskarci" "taxonomy:product_cat:libido" 
"taxonomy:product_cat:ljepota-i-njega" "taxonomy:product_cat:zdravlje" 
"taxonomy:product_cat:pokloni" "taxonomy:product_cat:poslovni-pokloni" 
"taxonomy:product_cat:program-za-mrsavljenje" 
"taxonomy:product_cat:zene" "taxonomy:product_cat:ljepota-i-njega-zene" 
"taxonomy:product_cat:odjeca" "taxonomy:product_cat:zdravlje-zene"]

【问题讨论】:

    标签: wordpress woocommerce drop-down-menu dropdown contact-form-7


    【解决方案1】:

    如果您的网店中有一些产品,那么您可以为每个产品创建页面并根据您的选择为其命名。 现在,创建一个下拉菜单并选择所有页面(其中包含产品)。

    【讨论】:

    • 我不知道你说的对不对。我不希望它是一个菜单(如链接)。我只想有一个下拉选择,您可以在其中选择产品,然后当您在表单中输入其余数据时,提交表单。
    猜你喜欢
    • 1970-01-01
    • 2023-03-31
    • 1970-01-01
    • 2021-01-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-06
    相关资源
    最近更新 更多