pH7Software / pH7-Social-Dating-CMS

😻 pH7Builder (formerly pH7CMS) is a Professional & Open Source Social Dating CMS written in PHP 8 🚀 This Social Dating Script aims to be low resource-intensive, powerful and secure. pH7Builder includes over 40 modules. It is the first Professional, Free & Open Source Social Dating Site Builder Software and the first choice for enterprise level Da
https://pH7Builder.com
MIT License
961 stars 578 forks source link

Country not available in currency #510

Closed Nigrini closed 5 years ago

Nigrini commented 5 years ago

How do I add the South Africa Rand (R) as a currency

polynamaude commented 5 years ago

@Nigrini Could you please give me more precision ? Are you talking about PayPal ?

Nigrini commented 5 years ago

Yes - In Currency Code South Africa is not available

polynamaude commented 5 years ago

@Nigrini Have you made sure you can have this currency available in PayPal ? We have no control over what PayPal offer.

Or is it that you are talking about the configuration in the CMS?

polynamaude commented 5 years ago

@Nigrini I see that there's a configurable option in the "General settings" in the Admin interface. You can access it on the "edit membership" form.

Nigrini commented 5 years ago

Yes - Paypal is available in South Africa

So when I go to Mod - Billing - Gateway Configuration There is no option to pick South Africa from the Currency Code dropdown list

polynamaude commented 5 years ago

@Nigrini Then you can edit the following file https://github.com/pH7Software/pH7-Social-Dating-CMS/blob/master/_protected/framework/Layout/Form/Engine/PFBC/Element/Currency.php

https://github.com/pH7Software/pH7-Social-Dating-CMS/blob/1f09ea64015aa1bab748aa715cfba3b3091d95df/_protected/framework/Layout/Form/Engine/PFBC/Element/Currency.php#L15

https://github.com/pH7Software/pH7-Social-Dating-CMS/blob/1f09ea64015aa1bab748aa715cfba3b3091d95df/_protected/framework/Layout/Form/Engine/PFBC/Element/Currency.php#L41

You can search through the source code by doing the following command from the folder fgrep -r -i 'currency' . | less

polynamaude commented 5 years ago

If you like the software then a review on Sourceforge and a nice Star on gitHub would be appreciated.

We all work on this volunteer and we aren't many to do so !

Nigrini commented 5 years ago

Thank you - Will try the edit part, and let you know if I require more assistance.

I always give you guys a Star - You are Great ! !

polynamaude commented 5 years ago

@Nigrini Thank's, it's always a nice reward to have our works appreciated. I don't do much coding, at least for this software. It's PH that did nearly everything but I do give some support when I can.

graceryfolad commented 5 years ago

i love the functions of this script and like use it for my personal project, how can i edit the look and feel and give it a nice frontend. Thanks Folarin Daniel *07062746793, *08124488435 Software Developer (PHP, SQL, C#, Laravel, Codeigniter, Vue JS)

On Fri, Apr 12, 2019 at 12:26 PM Polyna-Maude R.-Summerside < notifications@github.com> wrote:

@Nigrini https://github.com/Nigrini Thank's, it's always a nice reward to have our works appreciated. I don't do much coding, at least for this software. It's PH that did nearly everything but I do give some support when I can.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pH7Software/pH7-Social-Dating-CMS/issues/510#issuecomment-482539292, or mute the thread https://github.com/notifications/unsubscribe-auth/AVl2qSgIdcb1Sv7XTHKY2wA9rXim_hcTks5vgG1KgaJpZM4crzQA .

polynamaude commented 5 years ago

@graceryfolad What's the link between what you just wrote and the subject of this issue ??

https://github.com/pH7Software/pH7-Social-Dating-CMS/wiki/How-to-ask-for-help http://ph7cms.com/doc/

If we all start writing unrelated information everywhere and we don't take a minute to do basic research before asking out question then we'll be wasting time on useless reason.

If I look at the signature you wrote (PHP, SQL, C#, Laravel, CodeIgniter, Vue.JS) then I'm surprised you haven't noticed a folder named template.

The software uses a standard MVC model so look for the V everywhere in the source code tree, the data being supplied by the M.

pH-7 commented 5 years ago

Thanks @polynamaude! That's right!

pH-7 commented 5 years ago

@Nigrini

Indeed, please add ZAR in CURRENCY_CODES array https://github.com/pH7Software/pH7-Social-Dating-CMS/blob/1f09ea64015aa1bab748aa715cfba3b3091d95df/_protected/framework/Layout/Form/Engine/PFBC/Element/Currency.php#L15

Then, add 'ZAR' => 'South Africa Rand', in https://github.com/pH7Software/pH7-Social-Dating-CMS/blob/1f09ea64015aa1bab748aa715cfba3b3091d95df/_protected/app/langs/en_US/language.php#L315 (otherwise, it won't be translated).

lock[bot] commented 5 years ago

Hi there, I locked the thread since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Thank you, Pierre-Henry Soria 🤖