• Resolved Albin

    (@albinnsa)


    Hi
    I am a developer on a woocommerce-site that uses WOOCS. The base language is Swedish and the base currency is SEK. The second language is English and EUR is used as currency on that part of the site.

    I want to sell giftcards on my site: 100 SEK, 250 SEK, 500 SEK and so on.
    For the customers that uses English I want it to be 10 €, 25€, 50€ and so on.
    I can create a product that is only sold in Swedish that is using SEK… And I can create a product that is only sold on the English part of the site, but the price is still set in SEK.

    Can I set the price in EUR (fixed price) and not using the SEK to EUR-converter (only for that product)?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support mediawebster

    (@mediawebster)

    Hello

    I’m not sure I understood you correctly

    In this case, you need to switch the currency depending on the current product

    You can try this code(This is a sample code):

    add_filter('wp_head',function(){    
        if(is_product() && class_exists('WOOCS')){
        global $product;
        $id = $product->get_id();
            global $WOOCS;
            if($id == X){
                $WOOCS->set_currency('SEK');
             }elseif($id == Y){
                $WOOCS->set_currency('EUR');
             }
            
        }
    });
    Thread Starter Albin

    (@albinnsa)

    I must get me a new pair of glasses… ??
    Just found the “The product fixed price rules”-button. A click there and it revealed the function I was looking for!

    • This reply was modified 2 years, 1 month ago by Albin.
    Plugin Support mediawebster

    (@mediawebster)

    Hello

    Oh! Great!;)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fixed price in other currency?’ is closed to new replies.