Closed (fixed)
Project:
Commerce pick-pack pont
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Mar 2014 at 13:02 UTC
Updated:
10 Jun 2014 at 15:38 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dj1999 commentedNeed more info to check this bug.
Comment #2
fox mulder commentedHi dj!
We have same problem! I think I found the source:
The simplexml_load_file() loads the current list of ppp shops and commerce_pickpackpoints_get_option_list() stores the options in cache. The simplexml_load_file() returns a non associative array and when your module stores ppp data assigned to an order, it uses the numeric array keys returned by simplexml_load_file().
But when a new shop was added to, or an existing was removed from the validboltlista.xml than the numeric key ( which one is stored in db, and represents ppp shop data assigned to an order ) points to another shop ( shop ID, shop name, city, etc. ) after cron run.
Here is an old list of ppp shops ( the date can not be recognized ): http://honlap.hu/pages/kutyatapok/contents/static/23/doc/pppboltlista.xls
And here is the current: http://partner.pickpackpont.hu/stores/pppboltlista.xls
Your module uses values from column "A", but the first difference is in the row where the vaue of "A" is 11.
Comment #3
fox mulder commentedComment #4
dj1999 commentedCreated a patch to using ajax instead normal JS. In this case able to using shop id in associative array. Please review it.
Comment #5
dj1999 commentedPosted to dev.