J-BusinessDirectory - Importing and linking to images

Support Forum

 
 

 

I have a directory of about 230 businesses that I need to import.  All of them have logos and I don't want to have to upload each image individually.  Is there a way to upload the images to a folder and then in the CSV import file, specify what image goes with that particular business?  There has to be a way to do a bulk import.

3 replies

Hi,

Currently it is not possible to import logo.

We can modify the import mechanism to be able to import the logos. You will have to copy the images in media/com_jbusinessdirectory/
pictures folder.

FIRST ISSUE

I've added the link of code you told me to and added the column in the CSV file per your email below.  However the logo was not imported.  I listed in the CSV file logoLocation column as bludovelogo.jpg.  Below is copied and pasted from your email.
---- "You will need to insert the following line on {joomla}/administrator/components/com_businessdirectory/modules/company.php on line 1112
$categoryData["logoLocation"]=isset($company["logoLocation"])?$company["logoLocation"]:"";

You will have to add also another column in csv file named logoLocation.

You will have to copy the images in media/com_jbusinessdirectory/pictures folder. " ----

So I went to the business and uploaded the logo to see where it goes.  I found it through FTP in:
media/com_jbusinessdirectory/pictures/company/31. 

I have 230 businesses that I have to import and really do not want to have to upload 230 images.  Can you please tell me if there is anything we can do?


----
SECOND ISSUE

-- regarding the import -- your instructions are as follows:

If business listings are not showing up on front‐end please check the followings:
1. Make sure that state fields in csv file is set to 1
2. Make sure that approved field is set to 2
3. Make sure that category is not empty
4. If packages are enabled and the package is not specified in the import list, a default value (0) will
be associated. This will prevent companies to be listed in front‐end. To set a default package for
companies you have to go to Application settings/ General tab and set packages to no and then
to yes. A select box will appear that allows you to set the default package. Set the default
package and save. This will change the package only for companies that do not have a package
set.

The problem with #3 is that I have some categories that do NOT have subcategories.  I would like to be able to import into them.  So I ran a test - I set one of the sample companies to the Category called "Individual" - then I ran an export.  When I run an export, the category field came out empty and the subcategories and maincategory columns showed my category "Individual".  Therein lies the problem.  The export shows the empty field.  But you are telling me I have to make sure the category field is not empty.  This doesn't work in the scenario I'm describing.  Do you understand?  How can I send you screenshots?


---------

THIRD ISSUE

The business contact information doesn't get exported and can't be imported either.  Every one of thr 230 businesses have contact names and I would like to be able to import those.

------

Question -- can you please resolve or help me resolve all of the above no later than Monday evening (Eastern time)???   Would there be a way to import right into the database via phpMyAdmin?  Would that be a better way to get everything I need imported??


Hi,

Can you provide us your import file though e-mail?

Also please provide provide us joomla admin access to check the code.

 

 
 
 

4 Item(s)

Show per page