Okay
  Public Ticket #3591070
Hide Shop
Closed

Comments

  •   Bert started the conversation
  • Bert replied

    If I enter qo.sprachwelle.de/shop the page is shown with all prices. If I enter qo.sprachwelle.de/warenkorb (German word for cart) the page is shown too. I understand, that I can disable the visibility of the whole shop and within the demo this function works fine.

  •  2,217
    WebWizards replied

    Hi Bert,

    Thank you for purchasing our plugin,


    I checked this on your site now and it seems the issue is that the site uses some Elementor widgets ( I think from Unlimited Elements for Elementor) which behave differently than the regular product display areas.

    To solve this, I made an update to the B2BKing plugin to add support for their "ucaddon_woocommerce_product_list" widget.

    Now I see:

    2852208768.png

    On the page there were still some other areas showing products. I have hidden those for logged out users by adding some CSS to the Customizer.


    Please let me know if it is not set up as you need it or if you need any changes,


    Kind regards,

    Stefan


  • Bert replied

    Hi Stefan,

    yes, I use Unlimited Elements for Elementor. But if I try to reach qo.sprachwelle.de/warenkorb, I see the cart. There should be also the login, like it is if I go to /shop. I think the cart is not edited with Unlimited Elements for Elementor. Can you help me please.

    Will all the changes you´ve made be permanent in case of updates?

    Thanks in advance
    Best wishes
    Bert 

  •  2,217
    WebWizards replied

    Yes, the change I previously made has been added to the main codebase, so you can update freely to all future plugin versions without losing it.


    Regarding the cart page not showing a login, what can be done is to enable the "Restrict all pages" option:

    2760857754.png

    When set this way, all other pages will redirect to the login / shop page. I have enabled that right now.


    By default B2BKing does not have other features here, but if you'd like to restrict the cart page, while allowing other pages, I could assist with a custom code snippet. In that case, let me know which specific pages should be restricted.

  • Bert replied

    Fine, the option hides all pages hides all pages, but it should only hide the shop pages. It also hides the privacy policy (datenschutz), the imprint(impressum) and probably normal content pages. It shoud only hide the shop pages. Thanks in advance.

  • Bert replied

    Please restrict all shop pages:
    all products
    all categories
    /shop
    /warenkorb
    /kasse
    /mein-konto/ and all the subpages of /mein-konto

    The idea is, that only b2b users should see more than the start-page and the impressum/datenschutz-page. Perhaps it would be fine to set an additional option, which allows to except special pages from hiding. In Germany Datenschutz and impressum have allways to be shown on the first page by law. Thanks in advance. 

  •  2,217
    WebWizards replied

    I have now added a custom code snippet to the site (here http://qo.sprachwelle.de/wp-admin/admin.php?page=edit-snippet&id=5 ) to achieve that. It should restrict the pages you mentioned.

    Please let me know if you see any issues or need any other changes.