Front end vendor category image upload issue

  • Posts: 20
  • Thank you received: 0
9 years 3 months ago #186070

-- HikaShop version -- : 2.3.5
-- HikaMarket version -- : 1.5.1
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4
-- Browser(s) name and version -- : Chrome 39.0.2171.95 m - IE 11.0.9600.17420

We're having an issue with front end uploading category images from the vendor. When uploading a file or using the "Drag & Drop" the upload dialog runs and turns red when it reaches 100%. The image also does not appear in the "Drag & Drop" area after the upload is completed. When using the pop-up method, the modal window has the "Add an Image" title at the top, but there are no contents in the window. I have attempted JPG and PNG files using Chrome and IE browsers. I also tried setting the popup mode to mootools without success.

The image can be uploaded from the back end without issue. Also, front-end product image uploading works fine for vendors using all three upload methods.

Setting the debug reporting to maximum results in no errors on the page or in the modal window.

Thanks,

Steve

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

  • Posts: 26008
  • Thank you received: 4004
  • MODERATOR
9 years 3 months ago #186121

Hi,

Thanks for the report.
Please open the file "components/com_hikamarket/views/categorymarket/tmpl/form_image.php" and replace

$options = array(
	'classes' => array(
		'mainDiv' => 'hikamarket_main_image_div',
		'contentClass' => 'hikamarket_category_image'
	),
	'upload' => $upload,
	'gallery' => $upload,
	'text' => ($upload ? JText::_('HIKAM_CATEGORY_IMAGE_EMPTY_UPLOAD') : JText::_('HIKAM_CATEGORY_IMAGE_EMPTY')),
	'uploader' => array('category', 'category_image'),
	'vars' => array(
		'category_id' => $this->category->category_id,
		'file_type' => 'category'
	)
);
into
$ajax = false;
if(!empty($this->upload_ajax))
	$ajax = true;
$options = array(
	'classes' => array(
		'mainDiv' => 'hikamarket_main_image_div',
		'contentClass' => 'hikamarket_category_image',
		'btn_add' => 'hikam_add_btn',
		'btn_upload' => 'hikam_upload_btn'
	),
	'upload' => $upload,
	'upload_base_url' => 'index.php?option=com_hikamarket&ctrl=upload',
	'gallery' => $upload,
	'text' => ($upload ? JText::_('HIKAM_CATEGORY_IMAGE_EMPTY_UPLOAD') : JText::_('HIKAM_CATEGORY_IMAGE_EMPTY')),
	'uploader' => array('category', 'category_image'),
	'vars' => array(
		'category_id' => $this->category->category_id,
		'file_type' => 'category'
	),
	'ajax' => $ajax
);
It will fix the upload by forcing the right upload base and some other parameters.
This fix will be include in the next release.

Sorry for the inconvenient.

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: spark-

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

  • Posts: 20
  • Thank you received: 0
9 years 3 months ago #186144

Works perfectly, thanks!!

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

  • Posts: 48
  • Thank you received: 0
9 years 2 months ago #191053

Hi Jerome,

I have the same problem with the vendor image and I can´t find the correct file. Can you take a look on the page? I send you a private message with the url, ftp account and a demo vendor account.

Thanks

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

  • Posts: 26008
  • Thank you received: 4004
  • MODERATOR
9 years 2 months ago #191058

Hi,

I just release HikaMarket 1.6.0 (which is not available in automatic update but will be in few days/weeks).
This release contains the patch for the category upload ; I think it will be easier for you (and you will retrieve the other patchs and the new features).

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: 48
  • Thank you received: 0
9 years 2 months ago #191119

Hi Jerome,

I try HIkaMarket 1.6.0, but that don´t fix the problem. The homepage is live and some new vendors want to fill their profil with the image and the other informations. So please help me to fox that problem with the vendor image.

thanks

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

  • Posts: 26008
  • Thank you received: 4004
  • MODERATOR
9 years 2 months ago #191131

Hi,

This thread was talking about the category update ; the vendor upload image works very differently than the category images.
Can you please open a new thread (I keep the credentials from your PM) and explain the process to reproduce your issue ?
I made some tests in my local websites using HikaMarket 1.6.0 and I don't have issue to change my vendor image.

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.

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