Uninstall custom payment plugin - image

  • Posts: 5
  • Thank you received: 0
9 years 3 months ago #211227

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5.9

I have problem with uninstalall my custom payment plugin.
When I uninstall plugin, joomla also remove whole images from //media/com_hikashop/images/payment

In my pluginName.xml file is followed code:

<media folder="media" destination="com_hikashop/images/payment">
<filename>pluginName.jpeg</filename>
</media>

I check out your 'official' hikabitcoin payment plugin and there are the same problem.
I try a lot of variation of defiine 'destination', but only solution is not include com_hikashop/images/payment.
But i need pligunName.jpeg inside com_hikashop/images/payment folder.

How can I save //media/com_hikashop/images/payment during uninstall, or
how can I add my custom image as default paymet image in custom payment plugin?

Last edit: 9 years 3 months ago by galas.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 3 months ago #211261

Hi,

I don't think that someone tried to uninstall the hikabitcoin plugin.
And you're right, the plugin is "official" but was not developed by the HikaShop team even if it is supported and maintained.

For my point of view is could be seen as a bug in Joomla (and I insist on the "could") but I understand that is is easier to remove the folder during the uninstall in order to be sure that it is cleaned.
So you should specify a folder which does not exist or that you're the only one to use.

Why not using a sub folder ? Like "com_hikashop/images/payment/pluginName/"
We can improve the image selector in HikaShop in order to also browse the sub folder, so your image will be available and the install/uninstall of the plugin won't generate any issue.
And for sure, we will also patch the "official" hikabitcoin plugin.

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

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

  • Posts: 5
  • Thank you received: 0
9 years 3 months ago #211421

Thank You for your answer,

Based on your proposition I added sub folder, but It won’t be working until you improve image selector.
So please let me know, if You update hikashop.

Is it possible to add my image to your official package /payment folder? It will solve my problem. Attached is the image.
I also have a question, if is it possible to add my plugin to your official package and what is the way to achieve it?
Should I talk to You in the future (as a programmer) or is it a task for sales department?

Attachments:

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
9 years 3 months ago #211428

Hi,

You can send an email to contact AT hikashop DOT com with your plugin zip file and we'll review it.
We might not include it and instead offer on our documentation page directly, like we do with new plugins we develop as the HikaShop install package already includes a lot of payment plugins and there are too many of them already.

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

  • Posts: 5
  • Thank you received: 0
9 years 3 months ago #211492

nicolas wrote: Hi,

You can send an email to contact AT hikashop DOT com with your plugin zip file and we'll review it.
We might not include it and instead offer on our documentation page directly, like we do with new plugins we develop as the HikaShop install package already includes a lot of payment plugins and there are too many of them already.


I understand, but what about image?
There is no possible to attach image in my custom plugin. I wrote about it in first post.
So should I wait until you update image selector?

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

  • Posts: 13201
  • Thank you received: 2322
9 years 3 months ago #211500

Hi,

You could potentially put the image in your plugin folder, then add code in the function "onPaymentConfiguration()" which will copy the image to the folder "HIKASHOP_IMAGES .'payment/" directly.

The following user(s) said Thank You: galas

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

  • Posts: 5
  • Thank you received: 0
9 years 3 months ago #211688

Xavier wrote: Hi,

You could potentially put the image in your plugin folder, then add code in the function "onPaymentConfiguration()" which will copy the image to the folder "HIKASHOP_IMAGES .'payment/" directly.


Thnak you. It help me and solve my problem with image

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

Time to create page: 0.071 seconds
Powered by Kunena Forum