Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Buy Now button with a second currency
- This topic has 4 replies, 4 voices, and was last updated 11 years, 10 months ago by admin.
-
AuthorPosts
-
September 26, 2011 at 7:44 am #4409CarlMember
The currency of my cart is GBP, however I have a product that I want to price in USD with a Buy Now button. The Buy Now Button specific settings on the product allows me to specify USD, however, when the product is displayed it still shows £ and not $. The correct information is passed to Paypal. How do I change the display so that it shows $ instead of £ for this product?
September 26, 2011 at 8:33 am #37020adminKeymasterThe preconfigured fancy displays of eStore cannot work with the “product specific” currency symbol (this is purely a cosmetic thing). The fancy displays were mainly designed to work with the “Add to Cart” type buttons. Later it was expanded for other types of buttons. Since it uses the same template it doesn’t have the capability to show different currency symbol. Its something I want to address but it will require some structural change.
Simply use a normal “Buy Now” button of eStore and design your own product display. This post will explain more:
August 30, 2012 at 8:41 am #37021itzcoMemberHi,
First of all, I agree the currency symbol is purely a cosmetic issue and you can simply use the buy now NOT fancy button. However, as I had to implement this minor change I’m sharing it in case someone needs it (Or you want to integrate in the plugin)
In the file: eStore_misc_functions.php
around line 806 :: Function show_product_fancy_style
Look for this line:
$output .= ‘<div class=”eStore_price”>‘.ESTORE_PRICE.’: ‘.print_tax_inclusive_payment_currency_if_enabled($ret_product->price,WP_ESTORE_CURRENCY_SYMBOL,”, $ret_product).'</div>’;
REPLACE this line with:
// Edit here for multi currency
$currency_symbols = array(‘AUD’=> ‘A$’, ‘CAD’ =>’C$’,’EUR’=>’€’, ‘GBP’=>’£’, ‘JPY’=>’¥’, ‘CHF’=>’CHF’,’HKD’=>’HKD $’,’SGD’=>’SGD $’,’BRL’=>’R$’,’MYR’=>’RM’,’THB’=>’฿’);
$price_csymbol = ‘$’;
if (array_key_exists( $ret_product->currency_code,$currency_symbols))
{
$price_csymbol = $currency_symbols[$ret_product->currency_code];
}
$output .= ‘<div class=”eStore_price”>‘.ESTORE_PRICE.’: ‘.print_tax_inclusive_payment_currency_if_enabled($ret_product->price,$price_csymbol,”, $ret_product).'</div>’;
//$output .= ‘<div class=”eStore_price”>‘.ESTORE_PRICE.’: ‘.print_tax_inclusive_payment_currency_if_enabled($ret_product->price,WP_ESTORE_CURRENCY_SYMBOL,”, $ret_product).'</div>’;
There you go, I didn’t add all the supported currencies but it would take no effort to add.
January 28, 2013 at 5:33 pm #37022AdoraMemberThank you for your cosmetic tip I would like to use the “buy now button” with “set your price” option together with “variations” option and in a “different currency” but it does not seem to work – it always asks to put “your price” and ignores the variations options,
(it says “the minimum amount you can specify is…” when the “your price” field is left empty) can it be used in this combination? Thank you!
January 29, 2013 at 12:25 am #37023adminKeymasterHi, The “set your price” feature can’t be used with variations. You use variations when you want a customer to select from a range of pre-selected options. The set your price option is for “Specify a price for this product” (not for a variation). You can create multiple eStore products as a workaround.
-
AuthorPosts
- You must be logged in to reply to this topic.