[Development] Can I use installfile XML manifest property?

  • Martin
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 5 months ago - 4 years 5 months ago #142216 by Martin
Hi! I'm developing a recurring payment plugin for a client and I need to set the support_recurring_subscription DB field to 1, of course I can change that using phpmyadmin but is it possible to set that at plugin install? I see a manifest property called installfile, but can't find any place in code that calls that property.

Thanks in advise!
Last edit: 4 years 5 months ago by Martin.

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
4 years 5 months ago #142217 by Tuan Pham Ngoc
Sorry Martin. Right now, we do not have a way to do that. Could you try:

1. Add

Code:
<supportRecurring>1</supportRecurring>


After
Code:
<title>Paypal</title>


2. Then get this zip file, upload to administrator/components/com_osmembership/model folder

Then try to install it again. It should mark the field = 1 automatically. If it works, I will include this change (to the file plugin.php) into the core package of Membership Pro

Tuan

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

  • Martin
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 5 months ago #142218 by Martin
That did the trick! thanks!

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

  • Martin
  • Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 5 months ago #142219 by Martin
Sending you Argentina states

INSERT INTO `#__osmembership_states` (`id`, `country_id`, `state_name`, `state_3_code`, `state_2_code`, `published`, `state_id`) VALUES
(449, 10, 'Buenos Aires', 'BAS', 'BA', 1, 449),
(450, 10, 'Ciudad Autonoma De Buenos Aires', 'CBA', 'CB', 1, 450),
(451, 10, 'Catamarca', 'CAT', 'CA', 1, 451),
(452, 10, 'Chaco', 'CHO', 'CH', 1, 452),
(453, 10, 'Chubut', 'CTT', 'CT', 1, 453),
(454, 10, 'Cordoba', 'COD', 'CO', 1, 454),
(455, 10, 'Corrientes', 'CRI', 'CR', 1, 455),
(456, 10, 'Entre Rios', 'ERS', 'ER', 1, 456),
(457, 10, 'Formosa', 'FRM', 'FR', 1, 457),
(458, 10, 'Jujuy', 'JUJ', 'JU', 1, 458),
(459, 10, 'La Pampa', 'LPM', 'LP', 1, 459),
(460, 10, 'La Rioja', 'LRI', 'LR', 1, 460),
(461, 10, 'Mendoza', 'MED', 'ME', 1, 461),
(462, 10, 'Misiones', 'MIS', 'MI', 1, 462),
(463, 10, 'Neuquen', 'NQU', 'NQ', 1, 463),
(464, 10, 'Rio Negro', 'RNG', 'RN', 1, 464),
(465, 10, 'Salta', 'SAL', 'SA', 1, 465),
(466, 10, 'San Juan', 'SJN', 'SJ', 1, 466),
(467, 10, 'San Luis', 'SLU', 'SL', 1, 467),
(468, 10, 'Santa Cruz', 'SCZ', 'SC', 1, 468),
(469, 10, 'Santa Fe', 'SFE', 'SF', 1, 469),
(470, 10, 'Santiago Del Estero', 'SEN', 'SE', 1, 470),
(471, 10, 'Tierra Del Fuego', 'TFE', 'TF', 1, 471),
(472, 10, 'Tucuman', 'TUC', 'TU', 1, 472);

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
4 years 5 months ago #142226 by Tuan Pham Ngoc
Great. Thanks Martin. Included this change into the package and will have it available in the next release

Regards,

Tuan

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