Tagged: woocommerce
Hi,
I have a website that’s been built in Enfold. The company want to add a WooCommerce shop to the site but would prefer to have it on something like a subdomain so things like shopping cart info (account info/basket etc…) are not viewable from the main site as its not really suitable for the brand.
Is it possible to have an address like /shop.mydomain.com or my domain.com/shop which uses the same website installation but only shows the shopping info at the subdomain? Ideally I don’t want to have to go and rebuild the shop site from scratch as a brand new project.
Any advice very welcome.
Thanks,
Dan
Hey Dan,
I think that should be possible if you convert the site to a multi site installation. Even easier might be to simply hide the basket etc. on the pages where you don’t want them though?
Best regards,
Rikard
Thanks Rikard, how would I hide items on certain pages only? The site has a blog with a couple of hundred pages on it as well as 20 or so standard website pages.
Thanks again,
John
Hi John,
Thanks for the update. So you want the basket to show on WooCommerce pages only? Or just exclude it from some pages/posts?
Best regards,
Rikard
Yes Rikard, that’s right. I would only want the WooCommerce basket information showing on the page on the site I would be selling the product on. At this stage it is only a single product they are offering and although that might increase in time I wouldn’t want the cart appearing on every page, only the one that’s selling the product.
There are too many pages on the site to manually exclude the other pages.
Thanks for your help.
Hi,
You need a code for CSS that will be working only on that page. so Basicly, you can add a
.cart { display:none; }
And then
.page-id .cart { display: block; }
Let us know if you can get that concept completed :)
Best regards,
Basilis