Sberbank for Shopaholic

Payment gateway integration for Shopaholic. 54-ФЗ Supported!

Back to Sberbank for Shopaholic Support

designittome21809
designittome21809

Got some issues with the plugin. Can you please help. Thank you.

"Function money_format() is deprecated" on line 153 of /public_html/plugins/bizmark/sberbankshopaholic/classes/helper/PaymentGateway.php

Biz-Mark
Biz-Mark

Hello what version of plugin do you have?

designittome21809
Biz-Mark
Biz-Mark

designittome21809 said:

1.3.0.

You should open file: /public_html/plugins/bizmark/sberbankshopaholic/classes/helper/PaymentGateway.php

and comment out 152,153,154 and 156 line in this file.

Before

if (function_exists('money_format')) {
    $total_cost = str_replace('.', '', money_format('%i', $this->obOrder->total_price_value));
} else {
    $total_cost = str_replace('.', '', sprintf('%01.2f', $this->obOrder->total_price_value));
}

After


// if (function_exists('money_format')) {
//    $total_cost = str_replace('.', '', money_format('%i', $this->obOrder->total_price_value));
// } else {
    $total_cost = str_replace('.', '', sprintf('%01.2f', $this->obOrder->total_price_value));
// }

Last updated

designittome21809
designittome21809

Закомментировал строчки как описано выше, ошибку больше не выдает, но и теперь дальнейших действий не происходит - адрес сайта - https://gourmetto.com/cart

Есть ошибка в консоли - Uncaught TypeError: button.popover is not a function

Last updated

designittome21809
designittome21809

Вроде вышло, спасибо за помощь, если что общаюсь сюда же

1-6 of 6