File upload for vendors

  • Posts: 272
  • Thank you received: 13
11 years 7 months ago #80748

How can I set the folder for the vendors' upload files?

Also, when I try to upload a file (or image) to the product it says:

"Error

You didn't add your file via the browse button"

Also, in the upload box there are 2 icons (an arrow up and a "plus" icon); I see that icon is for file upload, but what's the arrow up for?

Please Log in or Create an account to join the conversation.

  • Posts: 26068
  • Thank you received: 4014
  • MODERATOR
11 years 7 months ago #80757

Hi,

The vendor upload folder is a sub directory of the HikaShop upload folder.
Each vendors would have their own directory in order to separate files (vendor2, vendor3, vendor4...)
The "arrow" button is for uploading.
The "plus" button would be a gallery and for the moment, is used as uploading fallback.

For what I saw, I think it could be a problem link to ACL, some fields may be missing and the HikaShop upload system requires all of them.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 272
  • Thank you received: 13
11 years 7 months ago #80758

Ok,

I cannot upload any file using bot icons. with "arrow up" it says "The action "HIKAM_ACT_PRODUCT_EDIT" is forbidden", also I cannot drang&drop any file in the box.

What's wrong?

Please Log in or Create an account to join the conversation.

  • Posts: 26068
  • Thank you received: 4014
  • MODERATOR
11 years 7 months ago #80761

Hi,

You have a special package with new ACL that I have just added. Theses ACL have changed a little bit the organization of the "product_edit_images" and "product_edit_files" groups.
I have checked and fixed all ACL checks for "files_upload" and "images_upload". I will send you the fixed version.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Last edit: 11 years 7 months ago by Jerome.
The following user(s) said Thank You: deltafidesign

Please Log in or Create an account to join the conversation.

  • Posts: 272
  • Thank you received: 13
11 years 7 months ago #80764

Ok, I've installed the new package.

Drag&drop work fine now both for images and files. Anyway for files when I upload somthing it seems to upload correctly (files are correctly stored into server) but in the file box no file name is shown:

Filename:
Downloads: Unlimited
Free download: No


Also if I try to upload files with "+" button it still give me the same message "The action "HIKAM_ACT_PRODUCT_EDIT" is forbidden"


Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 26068
  • Thank you received: 4014
  • MODERATOR
11 years 7 months ago #80769

Hi,

I have fixed the upload through the "+" button. It would be include in the new package.

I am not sure that the "+" button would be in the official release. The goal of this button is to have, in a future release, an image gallery browser.
So it would be possible for a vendor to browse images in his directory (or directories) and reuse an image which has been already upload.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 272
  • Thank you received: 13
11 years 7 months ago #80790

Ok, thanks.

I understant the way the "+" button should work now. I would suggest a similar way for the file upload (arrow up). I would let vendors upload big files, so would be really usefull to have the field to set the link for the big file, that vendor can upload on his server or elsewhere.

What do you think?

Please Log in or Create an account to join the conversation.

  • Posts: 26068
  • Thank you received: 4014
  • MODERATOR
11 years 7 months ago #80843

Hi,

I don't understand your suggestion about the upload button (the arrow).
By clicking on the upload button, it would call the javascript upload library and propose to the user to select the file to upload.
It is possible to drag & drop a file into the image and file sections.

The javascript upload library allows to upload big files, it shows a progress bar and you can continue to modify the product information during the upload (but could not use the "save" button still the upload not finished).

So, I don't understand your suggestion.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 272
  • Thank you received: 13
11 years 7 months ago #80850

I try to explain better.

Imagine that my host allow me to upload max file size of 200MB. Now a vendor need to upload 350MB of file. He cannot upload it.

In that case, he could upload the file on his server via FTP for example, then give us the link where we can download the file and upload it on owr server and manually associate to that product for the vendor.

So in that case he just need an URL field to specify the link to "upload" the file.

Please Log in or Create an account to join the conversation.

  • Posts: 26068
  • Thank you received: 4014
  • MODERATOR
11 years 7 months ago #80864

Hi,

I see.
In HikaShop (and HikaMarket) it is possible to specify a absolute path or an url for files.
In HikaMarket, this feature is just allowed for administrators (and users in the main vendor).

I will see if I had an option to allow urls in file addition but absolute path would not be allowed for vendors.
But, an administrator would be able to upload the file into a specific directory (by FTP for example) and to set the path (because I has this right).

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: deltafidesign

Please Log in or Create an account to join the conversation.

  • Posts: 12
  • Thank you received: 1
11 years 6 months ago #84620

Hi Jerome,

I am having the exact same problem. I register as a vendor on the site, add a product but I am unable to upload images. I have all the ACL activated.

I checked on media\com_hikashop\upload and I don't see any sub-directory for vendor images.

I downloaded hikamarket again and re-installed but it did not fix the problem.

I appreciate any help.

Regards

Please Log in or Create an account to join the conversation.

  • Posts: 26068
  • Thank you received: 4014
  • MODERATOR
11 years 6 months ago #84627

Hi,

Did you tried with the "arrow" or the "plus" button ?
Would it be possible to have an access to your website in order to make some test and activate some debug traces ?
(You can send it by private message).

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 12
  • Thank you received: 1
11 years 6 months ago #84628

I sent you the access info, I tried with both the plus and the choose files button bellow the drag and drop area.

Currently the market is working on the spanish site and both the vendor registration and vendor profile links are on the footer menu:

Registration --> "Afiliese"
Vendor Profile --> "Vendedores"

I'll try to have it working in english asap.

Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 26068
  • Thank you received: 4014
  • MODERATOR
11 years 6 months ago #84681

Hi,

The upload using the "+" button works.
The problem is that there is a JavaScript error in your "script.js" file so, the upload with the arrow (which is the same than the drag & drop) and the update of the content with the "+" are now working.

Opening the product editing give me the message: " Uncaught TypeError: Object [object Object] has no method 'on' "
In the file "script.js"

$j(document).ready(function() { 
	$j("#lkcatalog").on("mouseenter", function() {

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: gabriela

Please Log in or Create an account to join the conversation.

  • Posts: 12
  • Thank you received: 1
11 years 6 months ago #84742

Thanks, I'm sorry I missed that!

Please Log in or Create an account to join the conversation.

  • Posts: 12
  • Thank you received: 1
11 years 6 months ago #85314

Hi,

Now the photo and file upload is working fine.

Is there a way for the vendor to add the name of the file while adding a photo through the drag & drop?

Thanks!

Please Log in or Create an account to join the conversation.

  • Posts: 26068
  • Thank you received: 4014
  • MODERATOR
11 years 6 months ago #85389

Hi,

Do you have some ideas of interface ?
For the moment, I don't have a good solution which wouldn't be too intrusive for the user.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 12
  • Thank you received: 1
11 years 6 months ago #85503

Hi Jerome,

I'm attaching an example of how we think it could work.

Hope it helps!

Thanks.


Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26068
  • Thank you received: 4014
  • MODERATOR
11 years 6 months ago #85594

Hi,

I see.
We could use the upload progress zone to display the textbox after the upload instead of remove it.
But it wouldn't be simple to set this asynchronous update of the file name.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 12
  • Thank you received: 1
11 years 5 months ago #86820

Hi Jerome,

I found out that if I click on the image thumbnail I'm able to edit the image details.

I decided to add a tooltip with the instructions:



If someone else needs to do this just add this code next to the label:
<?php echo JHTML::tooltip('Instuctions', 'Tooltip Title', '../../../media/com_hikamarket/images/icon-16/info.png', '', 
               ''); ?>

Remember to copy the file com_hikamarket/productform/form.php to your templates html folder.

Attachments:

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.129 seconds
Powered by Kunena Forum