Bitcoin HD module - currency undefined error in tb 1.0.2



  • I’d like to use a module called Bitcoin HD. It’s a payment module that permits customers to pay in Bitcoin. It worked fine in PrestaShop 1.6.

    With tb 1.0.2 I’m getting the following error. To me, it looks like Bitcoin as a currency isn’t defined. The currency is in the backend in Localisation>Currencies.

    Does anybody have an idea how to fix this?

    BTC
    at line 51 in file vendor/commerceguys/intl/src/Currency/CurrencyRepository.php
    
    46. public function get($currencyCode, $locale = null, $fallbackLocale = null)
    47. {
    48. $locale = $this->resolveLocale($locale, $fallbackLocale);
    49. $definitions = $this->loadDefinitions($locale);
    50. if (!isset($definitions[$currencyCode])) {
    51. throw new UnknownCurrencyException($currencyCode);
    52. }
    53.
    54. return $this->createCurrencyFromDefinition($currencyCode, $definitions[$currencyCode], $locale);
    55. }
    56.
    
    CommerceGuysIntlCurrencyCurrencyRepository->get - [line 869 - classes/Tools.php] - [1 Arguments]
    ToolsCore::displayPrice - [line 952 - modules/bitcoinhd/bitcoinhd.php] - [2 Arguments]
    BitcoinHD->toBTC - [line 34 - modules/bitcoinhd/controllers/front/payment.php] - [1 Arguments]
    BitcoinHDPaymentModuleFrontController->initContent - [line 366 - classes/controller/Controller.php]
    ControllerCore->run - [line 743 - classes/Dispatcher.php]
    DispatcherCore->dispatch - [line 33 - index.php]
    

  • administrators

    Can you disable auto-format for the currency? Looks like it cannot auto-format bitcoins indeed.



  • Awesome, that was it! Thanks so much. :)


Log in to reply
 

Looks like your connection to thirty bees forum was lost, please wait while we try to reconnect.