Giter VIP home page Giter VIP logo

yandex-checkout's Introduction

The module integrates Magento 1 with the Yandex.Checkout payment service.

How to install

Step 1

Remove the current composer.json file as it is just a garbage:

rm -f composer.json

Step 2

composer require monolog/monolog:*
composer require yandex-money/yandex-checkout-sdk-php:* 
composer require zendframework/zend-filter:*

Step 3

sed -i 's/^"Your order # is: %s.","номер вашего заказа: "$/"Your order # is: %s.","Номер Вашего заказа: %s."/' app/design/frontend/iframe/iframe_responsive/locale/ru_RU/translate.csv

Step 4

It adds the PHP namespaces support to Magento 1:

sed -i $'s|$classFile = str_replace(\' \', DIRECTORY_SEPARATOR, ucwords(str_replace(\'_\', \' \', $class)));|$classFile = str_replace(\'\\\\\\\\\', \'\/\', str_replace(\' \', DIRECTORY_SEPARATOR, ucwords(str_replace(\'_\', \' \', $class))));|g' app/code/local/Varien/Autoload.php

sed -i $'s|$classFile = uc_words($class, DIRECTORY_SEPARATOR).\'.php\';|$classFile = str_replace(\'\\\\\\\\\', \'\/\', uc_words($class, DIRECTORY_SEPARATOR).\'.php\');|g' app/code/core/Mage/Core/functions.php

Step 5

rm -f app/etc/modules/LesMills_YandexCheckout.xml ;
rm -rf app/code/community/Df ;
rm -rf app/code/local/LesMills/YandexCheckout ;
rm -rf app/design/frontend/base/default/template/df ;
rm -rf app/design/frontend/base/default/template/yandex_checkout ;
rm -rf skin/frontend/base/default/df ;
rm -rf skin/frontend/base/default/yandex_checkout ;
ORG=lesmills-com ;
REPO=yandex-checkout ;
FILE=$REPO.tar.gz ;
VERSION=$(curl -s https://api.github.com/repos/$ORG/$REPO/releases | grep tag_name | head -n 1 | cut -d '"' -f 4) ;
curl -L -o $FILE https://github.com/$ORG/$REPO/archive/$VERSION.tar.gz ;
tar xzvf $FILE ;
rm -f $FILE ;
cp -r $REPO-$VERSION/* . ;
rm -rf $REPO-$VERSION 
rm -rf var/cache var/full_page_cache

How to upgrade

Execute the Step 5 from the installation part.

yandex-checkout's People

Contributors

dmitrii-fediuk avatar

Watchers

 avatar  avatar  avatar

yandex-checkout's Issues

Incorrect link

Hello
I try download yandex-checkout but I think url is incorrect because VERSION variable is empty.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.