Just been adding a load of products from our old x-cart site to the new OPencart one by import for our site.
The one thing, that we didn't realise, was that they weren't added to any customer group. So the thought of adding them to any particular group by hand was brain numbing. So wrote a quick routine that will do it for you.
It will only do it on on 1 category and one group ID at a time, but still a lot quicker than having to do each product individually.
Essentially, input the Category ID number and input the customer group ID number and off it goes.
You may also have to mod the table names to suit yours, ours is pretty standard.
It is not a mod that is selectable from within Opencart, it works from outside of opencart in its own subdir and is called from there.
You will have to put your own database credentials in.
If you change to code for the better please place it here for other users to benefit from. I make no apologies for the coding, I'm 70 years old and am not into people saying I should have done this or that. Change it if you wish, up to you.
Have fun
Regards
Ade
Serpro Spill Management
www.serpro.co.uk
Opencart 3.0.03.9
Journal3
Order Number Manager
PDF Invoice Pro
Category Description By Multi Store
MASS products update: Stores
MultiStore Payment Methods
Price Update With Option Change
Product Description By Multi Store
Quick Admin Search By Mart Extensions
Ultimate Shipping
Who is online
Users browsing this forum: No registered users and 3 guests