Page 1 of 1

Adapting an Actions file to an older version of Phoenix

Posted: Thu May 07, 2026 4:37 pm
by ArtcoInc
(I know this is a longshot, but ...)

I am trying to adapt several new(er) add-ons to an older version of Phoenix.

(I'm not the only one: viewtopic.php?p=23066#p23066 )

Both add-ons use Action files, a format introduced on v1.0.9.0.

My question is, how can I replicate the function of an Action file in an older version of Phoenix? I initially thought to install the add-on into a newer version of Phoenix, examine the generated HTML code, and try to reverse engineer the PHP code needed to generate it. But, I thought I'd ask here if there was an easier way.

(hope springs eternal, right?) :lol:

Thanks!

Malcolm

Re: Adapting an Actions file to an older version of Phoenix

Posted: Thu May 07, 2026 5:19 pm
by burt
Actions are at the top of each file, in a `switch` context, in old versions.
See (eg) admin/countries.php

Edit: might help;
https://phoenixcart.org/forum/viewtopic.php?f=10&t=3371

Re: Adapting an Actions file to an older version of Phoenix

Posted: Sat May 09, 2026 9:55 am
by Philo2005
I had a look to the github
the 'switch' context has been implemented in 1.0.8.17 in admin/countries.php.