Hello,
I am a developer and customizing a GeoDir based site for my client. I have 2 questions for you:
1. Is it possible to use conditional constant definitions in language.php in the future versions?
E.g. if I want to use a custom string for
define(‘NEW_USER_TEXT’, __(“New User? Register Now”, ‘geodirectory’));
then I can pre-define this string in my child theme like this:
define(‘NEW_USER_TEXT’, __(“Click here to Register”, ‘geodirectory’));
However, in this case WP_DEBUG throws me warnings (I always develop with DEBUG ON, so it’s a bit annoying).
If you used conditional constant definitions in language.php, like:
if ( !defined( ‘NEW_USER_TEXT’ ) ) define(‘NEW_USER_TEXT’, __(“New User? Register Now”, ‘geodirectory’));
then I could simply overwrite these strings and wouldn’t need to use tricky and hacky solutions in some places.
—
2. Upgrade listing packages in the front end
We are using the Payment Manager add-on (my client has the license for it, thus I’m asking here), however, I couldn’t figure out yet how we could Upgrade a free listing to a paid one.
We have 2 packages: Free and Premium.
What I would like to achieve is the following:
– User adds a Free listing
– Later, thanks for our marketing strategy, they decide to upgrade to the Premium one
– User goes to the listing’s single page, clicks on a link that says “Upgrade to Premium” (or something similar)
– Fills out the Premium form and pays
Is it something we can achieve somehow? Did I just miss something is the setup screens?
Our theme is based on Supreme Directory.
Thanks in advance,
Ervin