Protect Url access from vendor user in magento - magento

I am new to magento. I have logged in as a vendor user and accesses all vendor pages. But I am able to access customer's dashboard also. I just want to redirect to vendor dashboard when vendor enter customer dashboard url.
How can i do this in magento?
Can anyone help me???
Thanks on advance.

In customer controller inside dashboard functionality, I have used the following code to protect the url of customers:
Code:
if(Mage::getSingleton("customer/session")->getCustomer()->getGroupid()==4){
$this->_redirect('marketplace/vendor/dashboard/');
}

Related

Magento Adress fields in backend not displaying + Access Denied

I can do anything with my magento backend, but I do have one problem with the customer details. All orders don't show the customer address but just a "*"
I tried to setup:upgrade magento and then compile and deploy the static content without any luck.
I also created a new user role with all permissions and logged in to that account, but I still can't see the customer address.
Below picture:
Adress fields *
When clicked on edit address
Does anyone have any suggestion on what to do?

Magento Paypal redirect to Cart Page

I have two questions
I have a website in magento. I am using paypal for payment gateway. In checkout page paypal redirect to cart page. I just googled and found some solutions but none worked. Here I am using Mexico paypal extension also.
In admin while entering the sandbox box details to paypal like API username and password and etc, finally clicks on save config values are not updating. showing default values like some *********
Please any one help me?

Sales Representative

I have a question is about magento. i am making a webstore and getting 1 difficulty. i have created an attribute called SalesRep. for example if i register from the frontend. i will be in customer section at backend. their at backend admin will be able to select me as a sales rep or customer.
if admin select me as salesRep i will become sales rep. Now i want to shop from frontend on behalf of any customer. i should have facility for search customer name from the frontend. at frontend i should be able to shop using customer details. so i logged in and can select any customer who want to shop. and i will shop for this customer.
I hope i explain in full details if you looking for more information please let me know.
Is there any help. Thanks in Advance
Magento doesn't provide such functionality. Try this free plugin. With it installed you will be able to find a customer in backend, click a "login as a customer" button on customer view page and directly login as a customer in your frontend. Then you can do whatever you need on behalf of the customer, including shopping. However this plugin won't allow customers to pre-select admins who may login on their behalf, i.e. any admin would be able to login as any cusomer.
P.S.: I am not connected to the plugin developer in any other way than I am a happy user of this plugin :)

Magento REST Customer API not working

I have tried the sample code “oauth_customer.php” from below documentation:
http://www.magentocommerce.com/wiki/doc/webservices-api/introduction_to_rest_api
Please see the heading: “Retrieve the list of products as a Customer user with OAuth authentication”
But, when I tried to access the page, it seems works fine, but I didn't get the product list array as expected!; instead it just redirected to customer account page in magento.
The steps followed:
1) Set up the consumer key, consumer secret etc.
2)Accessed the page through browser: http://myhost.com/oauth_customer.php
3)Asked for customer login credentials and then clicked “Authorize” button.
4)Page redirected to customer account page.
Why I am not getting the product list array ? Any help appreciated.
Thanks,
Iqbal.
Try changing the callback URL to the same as the page running the script.

Add role to the customer and give certain permissions in Magento

I am working on the website where by using magento I need to create an account when the user is registered, then I need to give that user permission to add products to my predefined categories. I don't know how this could be done. And I really need help with this.
I think you're looking for a dropshipping extension.
This one is said to be one of the best: http://www.magentocommerce.com/magento-connect/magento-vendor-dropshipping-extension.html
There are few of these types of extensions, so a quick google search will show you all of them.
are you referring to a customer on the front-end or an admin user on the back-end?
For an admin user you can limit a admin users permissions by assigning them to a role that can only interact with the catalog module.

Resources