• Resolved eko.ryanto66

    (@ekoryanto66)


    Dear support team,

    I just deployed the plugin wp-advert and got difficulties when i try to add currency code and symbol.
    what we have done were :
    1. adding the instruction as in the documentation https://wpadverts.com/documentation/adding-new-currency/
    to the theme function.php. and resultitng my web not opened (error).
    2. I saw the suggestion from you to have : The file that contains the list is under classes/settings-api. Here is the method you want to modify:
    [code:toysl7jk]
    public function validate_payment_settings($options, $group) {
    $currency_codes = array(‘AUD’,’BRL’,’CAD’,’CZK’,’DKK’,’EUR’,
    ‘HKD’,’HUF’,’ILS’,’JPY’,’MYR’,’MXN’,
    ‘NOK’,’NZD’,’PHP’,’PLN’,’GBP’,’SGD’,
    ‘SEK’,’CHF’,’TWD’,’THB’,’USD’);
    [/code:toysl7jk]
    That will allow you to save your currency in the settings.

    but don’t know where is it the file ?

    Im very glad if you can help me.

    Thank you

    https://www.ads-software.com/plugins/wpadverts/

Viewing 6 replies - 1 through 6 (of 6 total)
  • You don’t really need this. Just go to the plugins/wpadverts/includes/functions.php and modify one currency you don’t need to the one you need.

    Plugin Author Greg Winiarski

    (@gwin)

    Do NOT modify original files, your changes will be overwritten on update.

    @eko.ryanto66 i think i sent you an email, but i will post here my replies as well:
    1. most likely there is some error in the code you copied or you have somehow copied it incorrectly, please paste here an error you see, if there is no error just a blank page, add in wp-config.php define(“WP_DEBUG”, true); this will display actual error message.

    2. not sure where do you have this code from, but i am almost 100% sure this was not posted by me and this is not code for WPAdverts.

    Thread Starter eko.ryanto66

    (@ekoryanto66)

    Hi Afrowall and Greg..
    really appreciated for prompt respond. I will try modifying what your suggestion and revert back to you soon.

    Best rgds,

    Thread Starter eko.ryanto66

    (@ekoryanto66)

    hiAfrowall and Greg, just want to update you that by modifying the one of the currency in function.php file was solving the problem.

    Hi Greg, Was able to figure out why the code didnt work on my website https://nikenga.com whenever you try to add currency through functions.php
    The code is missing a semi colon after
    return $list;

    Plugin Author Greg Winiarski

    (@gwin)

    Hi, hmm yes it does :), thanks for the feedback, i updated the documentation.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘adding new currency’ is closed to new replies.