How to activate Shopware 6 Address form AdditionalField1? - shopware6

In Shopware 6, I would like to activate AdditionalField1 for the address form
how can I do this from the Admin area?

https://docs.shopware.com/en/shopware-en/settings/login-registration
Within the Settings menu you will find the menu item Login / Registration.
Check Show additional address line 1

Related

How to enable module in another module in Prestashop 1.7?

I try to display some additional information on the top of website, if is logged user not only an ordinary customer, but also a seller (we use the module "marketplace" by Webkul).
The module "ps_customersignin" shows only a name of logged user and the button for log out on the website. But I want to display more information (link to a seller's special menu, if is the user also a seller, if not, just display user's name and the log out button).
vs.
I tried add this code in ps_customersigning.tpl, but without a result:
{if $is_seller == 1}Display additional info + name and log out button{else}Display only user's name and the log out button
{/if}
Do you have a tip how call information from the module "marketplace" to the module "ps_customersigning" for check, if the user is also the seller and than display the additional information?
You can have an instance of the marketplace module inside the ps_customersignin module by using
$marketplace = Module::getInstanceByName('marketplace');
inside ps_customersignin main module PHP code.
Then you can access the required $marketplace method / properties, assign $is_seller variable with $smarty->assign, and display your content inside the ps_customersigning.tpl

Moodle - Hide block of Miscellaneous and Login activity

I want to hide Miscellaneous and Login activity block from User profile of moodle and add change password option. Any idea ?
These 2 blocks cannot be removed by customizing the profile page. This can be achieved by editing the source code.

Display Sidebar and Pages based on the User Role in Laravel 5.1

I am Using the Same Login Box and i am Differentiating the Users after Login using Auth::attempt() function. In my project i have only one Sidebar which Contains all the Menus that are required for my project.
I have Four Login roles namely Admin / Teaching Staff / Non-teaching Staff / Parent.
My doubt is that i need to display only some menus and related Blade(Views) that are inside that Sidebar Menu for different login users.
Screenshot Attachment:
Click Here
I dont need to Redirect the Page based on the Login Users i need to alter my display based on Login Attempts.
I have not used any Packages for Authentication i am using only Auth::Login and Auth::attempt() functions.
Can you please provide me with a Solution of how to Get rid of This Error for Me.
How i would do it is Auth::check() and then i would do if statement with elseif
So it would look like this
#if($User->Role == 1 )
Nav Items for Admin
#elseif($User->Role == 2)
Nav items for Teaching Staff
#elseif($User->Role == 3)
Nav Items for Non-teaching Staff
#elseif($User->Role == 4)
Nav Items for Parent
#endif

Broadleaf commerce display some product to logged in users only

I am developing an e-commerce application using broad-leaf commerce.
My requirement is I have to add an product from login panel and display that product to only logged in users. Here few product products will be visible to all users (guest too) and few will be visible to only logged in users.
is there any way to do this?
Thanx soulfly1983 fou your try,but I found another alternative to do this without any customization. here is the full procedure..
Add a new category from admin panel.
Add a new page from admin panel (under content tab) and note the URL should be the same of category and page.
3 In the page click on rule tab.
4 Check the yes button in "Restrict to certain customers?"
Click +rule button and the select "match all" and select customer registered is equal to false
So this page will be visible to only guest users.
In the HTML body section of the rule (in general tab) write a message "you need to log in to view this stuff"
When user will log in successfully the user will not be able to the page , because we applied a rule that only logged out users can see the page so this time user will see the category and products added to that category.
am I doing right? any regarding this suggestion?
You can either extend the Product entity and add a field that will indicate whether that product will be visible to all users, or alternatively you could simply add an attribute for each product via the admin interface. Either way you will need to modify the UI logic so that it will take this additional field (or attribute) into consideration.

Change Gmail API Name on Login Screen

I made a script using Gmail API to get list of contacts. The script working fine but I want to make it more better as for now, when Login POPUP of Gmail is opened it displays this
xxxxxxxxxx.apps.googleusercontent.com is requesting permission to:
Manage your contacts
Where xxxxxxxxxx is my Client ID. I dont want it to be shown. I want to display my API Project Name here like this
"My API Name" is requesting permission to:
Manage your contacts
Is this even possible to do this? If yes then how?
Thanks
Perhaps try this out:
Search for "Google API Console" in the browser.
On the API console page, on the left hand side menu bar, under "APIs & auth", click on "Consent Screen". Setup project name, upload logo, etc.
See if this helps.
I also seem to remember that during oAuth, you need to pass Application Name (which can be the same as Product Name found in Consent Screen option at step 2 above.