duande9301 2018-11-18 13:51
浏览 26

如何在Woocommerce中展示基于城市的产品

I am working on e-commerce website in Wordpress with Woocommerce plugin. The problem is that I have to show products based on cities (currently I have two cities). The Flow of the site should be that when user come to the site he will be shown a popup box which contain a dropdown of cities, when user Select a city then city related products will be shown.

I have two solutions to complete this tasks:

  1. Creating multi site: problem is that with this solution that I have to setup separate sites and all the sites have same look and feel and some products are common in all stores. this will make data redundant but also take time to setup, customize and products uploading on each site.
  2. Second Solution is to create a filter that will show products on the shop based on user selected city. problem is with this solution I did not get it how to make filters and attribute in products and make search them, I searched out plugins for this task but did not find any to solve this problem.

The theme I am using superfood. I am stuck between in these solutions, I did not know which one is best for me and how to solve these related problems. I will be very grateful to give any clue or solution that you may think will suitable for me.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥100 iOS开发关于快捷指令截屏后如何将截屏(或从截屏中提取出的文本)回传给本应用并打开指定页面
    • ¥15 unity连接Sqlserver
    • ¥15 图中这种约束条件lingo该怎么表示出来
    • ¥15 VSCode里的Prettier如何实现等式赋值后的对齐效果?
    • ¥15 流式socket文件传输答疑
    • ¥20 keepalive配置业务服务双机单活的方法。业务服务一定是要双机单活的方式
    • ¥50 关于多次提交POST数据后,无法获取到POST数据参数的问题
    • ¥15 win10,这种情况怎么办
    • ¥15 如何在配置使用Prettier的VSCode中通过Better Align插件来对齐等式?(相关搜索:格式化)
    • ¥100 在连接内网VPN时,如何同时保持互联网连接