我正在有多个商店的网站上运行Woocommerce插件。我在商店的自定义URL下显示每个商店的产品。例如:
https://website.com/store-1/shop/
https://website.com/store-2/shop/
我遇到的问题是,当用户单击产品以查看详细信息时,我的永久链接结构没有保留store-1和store-2子目录结构。如何通过产品和结帐流程将子目录保留在URL结构中?
例如,如果用户正在从store-1购买产品,我希望通过以下过程获得此URL结构:
https://website.com/store-1/product/binoculars/
https://website.com/store-1/cart/
https://website.com/store-1/checkout/
如果用户正在从store-2购买产品:
https://website.com/store-2/product/binoculars/
https://website.com/store-2/cart/
https://website.com/store-2/checkout/
我在/ store-1 /和/ store-2 /下设置了自定义购物车和结帐页面。如果使用永久链接设置,则只能定义一种结构,但需要根据需要定义多种结构。
这可能吗?