开发者

How do I create a Magento extension package that works in both 1.4 and 1.5?

开发者 https://www.devze.com 2023-02-16 14:53 出处:网络
I am having a hell of a time getting my extension up on Magento Connect. My first attempt I released as Beta, and on versi开发者_如何学JAVAon 1.5 I was getting an error \"Version number could not be f

I am having a hell of a time getting my extension up on Magento Connect. My first attempt I released as Beta, and on versi开发者_如何学JAVAon 1.5 I was getting an error "Version number could not be found" when attempting to install. However, this package worked on Magento 1.4 (Magento Connect Manager version 1.0). So I repackaged, uploaded again - this time as Stable - and now the package works fine on Magento Connect 2.0 in Magento 1.5, but Magento Connect 1.0 can't find the package and therefore can't install it. All packages have been created in the Package Extensions tool of a Magento 1.5 install.

Also, is there a way to remove or overwrite uploaded extension packages or do I need to increment the version number with each upload?


The trick is to upload your package twice, first use the package output in /var/pear and then change the version, repackage and upload the one in /var/connect.

0

精彩评论

暂无评论...
验证码 换一张
取 消