WordPress.org

Forums

Simple Cart & Buy Now
[resolved] Add currency (8 posts)

  1. iyanko
    Member
    Posted 2 years ago #

    Hi, is it possible to add other currency to the existing list? May I know how?

    Thanks!

    http://wordpress.org/extend/plugins/simple-cart-buy-now/

  2. bluey80
    Member
    Plugin Author

    Posted 2 years ago #

    Take a look at the file includes/scabn_codes.php in the scabn plugin folder. Near the bottom of the file is

    $scabn_currency_codes = array(

    followed by a list of currency codes. Add yours there. The number in front of each line refers to the designator ($ for dollars, etc).

  3. helmutviet
    Member
    Posted 1 year ago #

    Hi how do i add a currency cant find the file includes/scabn_codes.php
    I need to add South African Rand

    using ver 2.0.1

  4. bluey80
    Member
    Plugin Author

    Posted 1 year ago #

    Scabn 2.0 has a new file structure. Look at the bottom of classes/backend.php

  5. helmutviet
    Member
    Posted 1 year ago #

    I have edited the file but now it only displays as ˆ20.00 in the checkout instead of R20.00 the is the line i have modified ["ZAR" => array (710, "South African rand ZAR"]

    thanks for the prompt replay to my previous post

  6. bluey80
    Member
    Plugin Author

    Posted 1 year ago #

    Where did you get the 710 in that line? If you want an "R" in front, I think you'll want 82. ie

    ["ZAR" => array (820, "South African rand ZAR"]
  7. helmutviet
    Member
    Posted 1 year ago #

    Sorry new to PHP a newbie mistake

    Thanks for the help

  8. bluey80
    Member
    Plugin Author

    Posted 1 year ago #

    No problem. I added the line to the code so future releases will have the South African Rand currency option built in.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Cart & Buy Now
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags