Plugin Mondial Relay - Obsidev

  • Posts: 13
  • Thank you received: 3
  • Hikashop Business
1 month 5 days ago #330487

-- HikaShop version -- : 4.4.1
-- Joomla version -- : 3.9.25
-- PHP version -- : 7.3.1
-- Browser(s) name and version -- : Chrome

Hi!

I just bought your Mondial Relay plugin, and i was wondering if it's possible to display more than 10 results in the dropdownlist? I would like to display 30 results.

Thx a lot for your time and your help :)


BU DJOKO || Votre épicerie indonésienne
www.budjoko.fr

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

  • Posts: 24827
  • Thank you received: 3826
  • MODERATOR
1 month 4 days ago #330496

Hello,

There is an hidden setting in the plugin for the "result_limit" but the default value is "30".
So the plugin is asking for 30 entries for the dropdown and if there is just 10 results, I think it might be due to the radius.

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: 13
  • Thank you received: 3
  • Hikashop Business
1 month 4 days ago #330549

Hi, thx for your reply.
I already tried with this parameters:

in file: plugins\hikashopshipping\mondialrelay\mondialrelay.php

372 $limit = isset($this->shipping_params->result_limit) ? $this->shipping_params->result_limit : 100;
373 $distance = isset($this->shipping_params->search_perimeter) ? $this->shipping_params->search_perimeter : 100;

723 $limit = isset($this->shipping_params->result_limit) ? $this->shipping_params->result_limit : 100;
724 $distance = isset($this->shipping_params->search_perimeter) ? $this->shipping_params->search_perimeter : 100;


in file: plugins\hikashopshipping\mondialrelay\mondialrelay_class.php

47 $limit = !empty($options) ? $options : 100;
48 $distance = !empty($options) ? $options : 100;

But still just 10 results display with using the postcode as default adress of 33000 BORDEAUX, and on www.mondialrelay.fr it shows 21 results with 33000 postcode.

Is it those files where i have to change values?


BU DJOKO || Votre épicerie indonésienne
www.budjoko.fr

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

  • Posts: 24827
  • Thank you received: 3826
  • MODERATOR
1 month 4 days ago #330551

Hello,

If you enable the "debug" mode of the plugin, you will find the raw data of the API communication in your HikaShop payment log file.
www.hikashop.com/support/documentation/5...nfig.html#main_files

Unfortunately, there is no restriction in the plugin to only have 10 entries in the dropdown.
The function "getRelay" call the API and return the data ; the "foreach" loop on each items which are added into the "$values" variable and then send to Joomla HTML to create the dropdown.

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: 13
  • Thank you received: 3
  • Hikashop Business
4 weeks 1 day ago #330820

Hi Jerome.

I enable the debug mode of the plugin and check the payment log life and it contain an HTACCESS file with:

deny from all

Is it normal?

Thanks for your help.


BU DJOKO || Votre épicerie indonésienne
www.budjoko.fr

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

  • Posts: 24827
  • Thank you received: 3826
  • MODERATOR
4 weeks 1 day ago #330822

Hello,

Please click on the "See the report" button in the HikaShop configuration.
(CF documentation page from my previous 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: 13
  • Thank you received: 3
  • Hikashop Business
3 weeks 6 days ago #330900

Hi Nicolas,

Here is what i got:



Thanks for your help ;)


BU DJOKO || Votre épicerie indonésienne
www.budjoko.fr
Attachments:

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

  • Posts: 24827
  • Thank you received: 3826
  • MODERATOR
3 weeks 6 days ago #330909

Hello,

My bad, I forgot that the "debug" mode will only record API errors.
In the file "plugins/hikashopshipping/mondialrelay/mondialrelay_class.php" please replace temporally

		if(empty($result) || !empty($result->STAT) || empty($result->PointsRelais)) {
			if(!empty($options['debug']))
				hikashop_writeToLog($result, 'MondialRelay');
By
		if(!empty($options['debug']))
			hikashop_writeToLog($result, 'MondialRelay');
		if(empty($result) || !empty($result->STAT) || empty($result->PointsRelais)) {
And then perform some tests in your website (with some modification in the cart or with a new session so you won't have the HikaShop shipping cache).
While you made your tests, the log will have more debug data ; and you could restore the file as it was or you might have a very big log file in few days.

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: 13
  • Thank you received: 3
  • Hikashop Business
2 weeks 1 day ago #331343

Hi Jerome,

You will find attach the log files as you asked.

File Attachment:

File Name: debug_mode...30-3.txt
File Size:305 KB


Still only 10 results display :(
It will be a very big problem if it display just 10 results. So many clients won't find the point relais they usually choose.

Thank you for your help.


BU DJOKO || Votre épicerie indonésienne
www.budjoko.fr
Attachments:

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

  • Posts: 13
  • Thank you received: 3
  • Hikashop Business
2 weeks 1 day ago #331344

I forgot to inform you that I got the widget mondial relay install too.

Maybe it could create some undesirable events?


BU DJOKO || Votre épicerie indonésienne
www.budjoko.fr

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

  • Posts: 24827
  • Thank you received: 3826
  • MODERATOR
2 weeks 17 hours ago #331361

Hello,

I don't think that the other mondial relay plugin would create a conflict since you got the debug data in the HikaShop log.
Unfortunately, if the Mondial Relay API does not return more than 10 entries, it might be a limitation in their side regarding the account you're using.
You changed the value in the plugin and that value is sent to their API.
I don't see what I could modify in the plugin in order to fix that, since performing another query on the same address will get the same results and it won't be possible to try with close addresses since we can't get 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: 13
  • Thank you received: 3
  • Hikashop Business
2 weeks 13 hours ago #331364

Hi,

ok, i just sent an email to Mondial Relay to ask them if it's normal that their API just return 10 results.

I will let you know when they get back to me.

Regards.


BU DJOKO || Votre épicerie indonésienne
www.budjoko.fr
The following user(s) said Thank You: Jerome

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

  • Posts: 13
  • Thank you received: 3
  • Hikashop Business
1 week 6 days ago #331397

Hi,
By waiting for Mondial Relay reply, i got another request.

In the last step of my checkout, i have as blocks:
- shipping adress
- shipping mode
- payment mode

My request is when the client change of adress, or updated it, is it possible to refresh automaticly the shipping mode block? Like that the Mondial Relay plugin will show point relais from the new adress selected (instead of that, the client will need the refresh the page, it can confuse him/her).

Thx for your help :lol:


BU DJOKO || Votre épicerie indonésienne
www.budjoko.fr

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

  • Posts: 24827
  • Thank you received: 3826
  • MODERATOR
1 week 5 days ago #331438

Hello,

It needs some tests but I think that it could be possible that the Mondial Relay plugin do provide an unique identifier depending the selected shipping address and will force the shipping method block to refresh if the list of the mondial relay list changed.

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: BU DJOKO

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

Time to create page: 0.083 seconds
Powered by Kunena Forum