Support is online

Do not export super admin #8259

Open conquist opened this topic Wednesday, 11 May 2016 · 35 replies
Author

Hi Roland, in ( Export / Virtuemart / User Info) is it possible exclude in the export file the user "Super Admin" and include in the export file only the users "Registred" ?

Support

Hello,
This is not possible at the moment but we can think of adding shopper group filter as virtuemart assigns users to shopper group. You dont assigned "Super Admin" to any regular shopper group so it is excluded in your export file. Will this solve your problem?

Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Hi, I've create a new shopper group "administrator" and I've assigned it to the user Super Admin.

The export include even this user.

What do you mean with "regular shopper group" ?

Support

Hello,

Yes, everything is exported because you don't have the shopper group filter. Tharuna is going to make a patch and post it here. Once you have the patch applied, you can select which shopper group you want to export.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

You are fantastic :-)

Support

Hello,
Try to load the attached patch file and set the shopper group filter in your userinfo export template and see if it solves the problem.

patch_vm_userinfo_2016-05-11.zip

Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

It works well. Thanks.

Support

Glad to know it is solved.

Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Hi, there is a problem.

In every new users the field "shopper_group_name" is blank and not "COM_VIRTUEMART_SHOPPERGROUP_DEFAULT" like the older users.

In this case the patch is wrong.

Is It possibile use the filter to choose the shoppergroup to exclude ?

Can you help me ?

Support

Hello,

Oh you got to love those inconsistencies. So if I understand you correctly, we need to expand the COM_VIRTUEMART_SHOPPERGROUP_DEFAULT to include empty shopper groups as well. Perhaps better to add a separate empty shopper group name option because then you can also filter on those.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Hi Roland, I don't love the inconsistencies but I have not other solutions.

As you prefer you can include empty shopper group or tell me how to create a empty shopper group name.

Thanks..

Support

Hello,
I looked into this and dont understand the way how a new user is assigned to a empty shopper group. Virtuemart assigns default group automatically when a user is created. If you go to Virtuemart Shopper group page, there is a default group which says "New shoppers will be assigned to this group" and it does as it says. This is something you need to check in your site.

Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Support

Hello,
I had a look at this again, it is just the display in the shoppers list page that user has been assigned to default group but there is no actual shopper group assigned as per database. Creating a empty shopper group is not possible. I will add an option to the filter to get users who are not assigned any shopper group and send you the patch for the same.

Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Hi tharuna, you are right, but it doesn't work.

Support

Hello,
Can you try loading the patch file attached and see if it works? I have added a new option to the Shopper group filter as "No assigned shoppergroups" when selected will export all the users who has no shopper group assigned. Let me know on how it goes.

patch_vm_userinfo_2016-05-18.zip

Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Good idea but there is still a little problem.

If i put in template only "No assigned shoppergroups" or only "ClientiDefault" it works well.

If I put both "No assigned shoppergroups" and "ClientiDefault" I find only users with "No assigned shoppergroups".

Author

Hi tharuna, I have seen that virtuemart knows the user as "user group default" even if the field shopper_group_name is blank.
Another solution may be to use, for the filter, the field usergroup_name and not the field shopper_group_name.
Try to find the best solution.
Bye and thanks.

Support

Hello,
I have done little more modification to the filter code, can you try to load the attached patch file and check the export? Let me know how it goes.

patch_vm_userinfo_2016-05-19.zip

Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Hi tharuna. It doesn't work well.

Now I've all the users (even the administrators ) and doesn't work more the filter "User address type".

Support

Hello,

Now I've all the users (even the administrators ) and doesn't work more the filter "User address type".

The users you see have they been assigned to any shopper group? "No Shopper group assigned" will get all the users from Joomla users table but have not been assigned to any shopper group in virtuemart. Can you post the debug log?

Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

There are users with "default shopper group", there are users without "shopper group" and there are users "administrator". There are also User with "address type" different from the other filter "Building Adress".".
I just want to remove the administrators.
In attachment the log.

Support

Hello,
Can you send me a private message of your Joomla administrator login details and Database access details? I will test this on your site to see what is going wrong.

Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Support

Hello,
I have applied a new patch to your site and have tested all possible condition for filter. It seems working good now. Can you have a look and tell me how it goes?

Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Yes, now it works well in test website.

I need of the last patch to install it in production web site.

Thanks.

Support

Hello,
Here it is, load the attached patch file and you should be good to go.

patch_vm_userinfo_2016-05-20.zip

Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Hi, with the last patch file, in production website, i cannot select "No assign shoppergroup" . Must I put all the patch of the last days ?

Support

Hello,

Must I put all the patch of the last days ?

No, i have attached all files consolidated in the new patch here. Please load this new one.

patch_vm_userinfo_2016-05-21.zip

Kind regards,

Tharuna

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Support

Hello,

Is the latest patch working for you?

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Hi Roland, It works very well. Thank you so much.

Author

Hi.

There is an error and I think that the reason could be the patch.

The filter on the field "address_type" doesn't works more well.

If I put "don't use" are correctly exported both Billing address and Shipping address and users without address.

If I put Billing address or Shipping address are wrongly exported both Billing address and Shipping address.

I need to export only Billing address.

I think that before of the patch it worked well.

Help me, please.

Support

Hello,

If I put Billing address or Shipping address are wrongly exported both Billing address and Shipping address.

Are you sure it is wrong? This option has been there for years and I think it works but not as you expect.

I need to export only Billing address.

Did you set the Order address type to Billing?

I think that before of the patch it worked well.

This patch is completely unrelated to the export of orders.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Yes, Roland, I use the user (not orded) filed address_type set to "Billing Address".

Support

Hello,

I see we are talking about a completely different type of export. I was thinking you are doing an order export while you are doing a user export. That was not clear to me as there was no debug log for me to see.

Now that you included it I see what is going wrong and this is indeed related to the patch. The reason you get both types of addresses is because of the new feature you requested has been implemented.

We will take a look and post an updated patch for you.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

:-)

Support

Hello,

Attached is an updated patch file. Please give it a try to see if this works for you to export only the billing addresses. Let me know how it goes.

Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory

Author

Well done. Thanks.

Log in to reply to this topic.