Hi folks,
Some of my modules use the value of g.Merchant_Version to construct file paths such as ".../5.00/modules/..." This has always worked fine, all the way back to v4 I think. But some of my clients are now having a problem because their stores have been upgraded to 9.000, but all the scripts are still in a folder named "5.00." This breaks the module, because it's generating paths of the form ".../9.000/modules/..." which doesn't exist.
Does anyone have a good fix for this? I took a quick look at the Domain Settings, and there doesn't seem to be anything in there that a module can use to identify this situation. It looks like I have to either hard-code the module to try both places, or else create a new admin setting where users can manually enter the correct folder name. But I must be missing something. I presume that, when a user adds a module to one of these stores, it goes into the correct folder. How does the store know where to put it?
Thanks, and Happy Thanksgiving & Black Friday to all! --
Some of my modules use the value of g.Merchant_Version to construct file paths such as ".../5.00/modules/..." This has always worked fine, all the way back to v4 I think. But some of my clients are now having a problem because their stores have been upgraded to 9.000, but all the scripts are still in a folder named "5.00." This breaks the module, because it's generating paths of the form ".../9.000/modules/..." which doesn't exist.
Does anyone have a good fix for this? I took a quick look at the Domain Settings, and there doesn't seem to be anything in there that a module can use to identify this situation. It looks like I have to either hard-code the module to try both places, or else create a new admin setting where users can manually enter the correct folder name. But I must be missing something. I presume that, when a user adds a module to one of these stores, it goes into the correct folder. How does the store know where to put it?
Thanks, and Happy Thanksgiving & Black Friday to all! --
Comment