Magento Expert Forum - Improve your Magento experience

Results 1 to 3 of 3

Adding currency to woocommerce?

  1. #1
    Moderator speed2x's Avatar
    Join Date
    Mar 2013
    Location
    Hollywood, Florida, United States
    Posts
    91
    Thanks
    9
    Thanked 7 Times in 6 Posts

  2. #2
    Moderator shunavi's Avatar
    Join Date
    Mar 2013
    Posts
    130
    Thanks
    10
    Thanked 29 Times in 15 Posts

    Smile

    This functionality is not support by WooCommerce settings, you have to take their hook filter to add it.
    Go to your theme folder and open file

    Code:
    functions.php
    Let 's say if you want to add Currency is VND and symbol is đ then you can add the code like this to functions.php

    PHP Code:
    add_filter'woocommerce_currencies''add_vnd_currency' );
     
    function 
    add_vnd_currency$currencies ) {
         
    $currencies['VND'] = __'VND''woocommerce' );
         return 
    $currencies;
    }
     
    add_filter('woocommerce_currency_symbol''add_vnd_currency_symbol'102);
     
    function 
    add_vnd_currency_symbol$currency_symbol$currency ) {
         switch( 
    $currency ) {
              case 
    'VND'$currency_symbol 'đ'; break;
         }
         return 
    $currency_symbol;

    Refresh your WooCommerce admin then you should see new currency is VND

  3. #3
    New member
    Join Date
    Jul 2013
    Location
    india
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    nice post,keep postiing

Similar Threads

  1. Adding new category attribute in Magento
    By golddev in forum Programming & Development
    Replies: 6
    Last Post: 29-11-2017, 02:21 AM
  2. Replies: 1
    Last Post: 09-10-2015, 12:05 PM
  3. Adding Cache Support to Magento Blocks
    By sgdev in forum Magento Speed up, Performance and Optimize
    Replies: 2
    Last Post: 29-05-2014, 11:47 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •