Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4 Trả lời
11561 Lượt xem

How can I prevent the users that are not logged in to see the shop page and the shopping cart on my website?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

This video describes and illustrates concepts around visibility in ecommerce, useful resource 

https://www.youtube.com/watch?v=m4PyXEw95Tw&list=PLunu6O54ScvzsE3msF7ui3wdtyTkNz3-d&index=4

Ảnh đại diện
Huỷ bỏ

in V16 the suggestions in the video no longer seem possible. The "visible groups" can no longer be set.
Any ideas how to create a B2B webshop in V16?

Tác giả Câu trả lời hay nhất

You can add a rule in the HTML so that only internal users and logged in users can see the page.

To do that:

1. Specify that only members of the Internal User and Portal groups should have access to the Shop Menu, by adding the groups to the Menu like this:


You would get to this screen by navigating to the Website App, then Configuration --> Menus


2)  Then go  here:

 Shop page --> customise Theme --> HTML/CSS/JS Editor and click on it

In the  Products  section  of  the  XML add a base group at the end of the path t name = products etc

Should look like this:



2) For the shopping cart in the XML look for Header Cart Link and add the same base group  at the  end  of  the  path  starting with t-set show_cart as per above picture.

Ảnh đại diện
Huỷ bỏ

Hi Raluca Maria,
This works great, with the exception that it brings up a completely blank page which is a bit misleading.
Would you know how they could rather view the sign-in page? To make the solution intuitive and complete the process.

Many thanks in advance!

Best

Hi Raluca, thanks, but how to prevent changes made in "2" from being lost by a base update?

Câu trả lời hay nhất

Hi Jaideep! 

Have you found a solution to your problem? Would be interested to know that too!

Ảnh đại diện
Huỷ bỏ

Hi Floriane,

We had set the visibility for the button “Process Checkout” to groups internal users and portal users.

And also added the “Sign In” button and set visibility to public users.

We applied the concept as described in this post of limiting visibility by adding groups in XML, with the difference being we applied to the button rather than the page.

This worked for our scenario as we had wanted to ensure the check out process was available only to logged in users while shopping was available to all users.

In V16, this option is available to be set from settings > website

Hope this helps your case

Câu trả lời hay nhất

Hello !


Yes This works great, with the exception that it brings up a completely blank page which is a bit misleading.

How can redirect to the web/login page??


thanks 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 11 19
3736
0
thg 1 24
1060
0
thg 11 23
1292
0
thg 3 24
13237
4
thg 8 25
15497