Magento Expert Forum - Improve your Magento experience

Results 1 to 3 of 3

Adding currency to woocommerce?

  1. #1

  2. #2
    Moderator shunavi's Avatar
    Join Date
    Mar 2013
    Posts
    124
    Thanks
    9
    Thanked 26 Times in 17 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: 22
    Last Post: 24-01-2024, 10:52 PM
  2. Replies: 1
    Last Post: 09-10-2015, 11:05 AM
  3. Adding Cache Support to Magento Blocks
    By sgdev in forum Magento Speed up, Performance and Optimize
    Replies: 2
    Last Post: 29-05-2014, 10: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
  •