Logo image won't upload or show

  • Posts: 377
  • Thank you received: 7
10 years 1 month ago #148798

Hi Jerome,

That's the one!

Kind regards

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

  • Posts: 377
  • Thank you received: 7
9 years 10 months ago #161090

Hi Jerome,

A small bug has shown up on this one, for some reason I have been in Vendors Control Panel as a Vendor. I added the Logo and the main vendor image. When I delete the main vendor image, the logo image also gets deleted. I have attached a screen shot to show you the two affected fields. They will both upload and show just fine it is only on deletion of the vendor image that the logo image also gets removed.

Thanks

Alex

Attachments:

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

  • Posts: 26025
  • Thank you received: 4005
  • MODERATOR
9 years 10 months ago #161107

Hi,

In fact, that is not the real problem.
You can just re-save the vendor and the classical upload custom field won't keep the value.
Changing/removing the vendor image is not the trigger of the problem.

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: 377
  • Thank you received: 7
9 years 10 months ago #161116

I would use the ajax image upload but the last time we did that the ajax wouldnt actually upload the image at all... Would you recommend a better combination you know of?

Thanks
Alex

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

  • Posts: 26025
  • Thank you received: 4005
  • MODERATOR
9 years 10 months ago #161125

Hi,

In the file "administrator/components/com_hikamarket/classes/vendor.php", please replace in the function "frontSaveForm":

		$status = true;
		$oldVendor = null;
		$fieldsClass = hikamarket::get('shop.class.field');
		$vendor = $fieldsClass->getInput(array('vendor','plg.hikamarket.vendor'), $oldVendor);
By:
		$fieldsClass = hikamarket::get('shop.class.field');
		$vendorClass = hikamarket::get('class.vendor');

		$status = true;
		$oldVendor = $vendorClass->get($vendor_id);
		$vendor = $fieldsClass->getInput(array('vendor','plg.hikamarket.vendor'), $oldVendor);
It will fix the problem with the classical file custom field.

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

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

  • Posts: 377
  • Thank you received: 7
9 years 10 months ago #161608

This works great thanks.

Let me know one day when we can use two ajax fields as they look much slicker.

Kind regards

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

  • Posts: 26025
  • Thank you received: 4005
  • MODERATOR
9 years 10 months ago #161609

Hi,

The ajax upload fields should work quite better now in HikaMarket+HikaShop.
I know that I made some recent modifications in order to manage new cases (that I didn't imagined when I implemented the ajax custom fields).

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.066 seconds
Powered by Kunena Forum