This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Installation script for create about block | |
*/ | |
$installer = $this; | |
$installer->startSetup(); | |
// Block content | |
$blockContent = <<<EOD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Add link in top menu --> | |
<block type="page/template_links" name="top.links" as="topLinks"> | |
<action method="addLink" translate="label title"> | |
<label>Blog</label> | |
<url>/blog</url> | |
<title>Blog</title> | |
<prepare/> | |
<urlParams/> | |
<position>1</position> | |
<liParams /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="page-terms"> | |
<p>Публичная оферта (предложение) интернет-магазина «www.tvoe.ru» о продаже товаров.</p> | |
<h2>1. Основные понятия и определения</h2> | |
<p><strong>Посетитель Сайта</strong> — любое физическое лицо, пришедшее на сайт <a href="http://www.tvoe.ru">http://www.tvoe.ru</a>, но не разместившее заказ на приобретение товара.</p> | |
<p><strong>Продавец</strong> — ООО «ТВОЕ» (Юридический адрес: 119180, г. Москва, ул. Большая Полянка, д.44/2, ИНН 7706741162 , КПП 770601001, ОГРН 1107746597782; тел.: +7 (495) 780-61-15, e-mail:hotline@tvoe.ru.</p> | |
<p><strong>Покупатель</strong> — посетитель сайта, акцептировавший публичную оферту на условиях настоящей оферты, который сообщает Продавцу о намерении приобрести Товар или размещает заказ на приобретение Товара для личных, семейных, домашних и иных нужд, не связанных с осуществлением предпринимательской деятельности.</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Installation script for tvoe rating custom | |
*/ | |
$installer = $this; | |
$installer->startSetup(); | |
function addOptions($rating) { | |
for ($i = 1; $i <= 5; $i++) { | |
Mage::getModel('rating/rating_option')->setData( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function save_address_information(save_address_url, update_address_shipping, update_address_payment, update_address_review) { | |
var form = $('one-step-checkout-form'); | |
var shipping_method = $RF(form, 'shipping_method'); | |
var parameters = {shipping_method: shipping_method}; | |
get_billing_data(parameters); | |
get_shipping_data(parameters); | |
if (typeof update_address_shipping == 'undefined') { | |
var update_address_shipping = false; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
'use strict'; | |
// AjaxCheckoutValidation class | |
function AjaxCheckoutValidation(config) { | |
this.config = config || {}; | |
// Constants | |
var CHECKBOX_CLASS = 'required-checkbox', | |
PHONE_CLASS = 'validate-phone', | |
PHONE_MESSAGE_ELEMENT = '.phone-message', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
function Checkout(config) { | |
this.config = config || {}; | |
// Constants | |
var AGE = 12; | |
// Private func for check config param | |
var checkConfig = function(object, params) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function blocksReloadAction() { | |
$blocks = $this->getRequest()->getPost('blocks'); | |
$layout = Mage::app()->getLayout(); | |
foreach($blocks as $block) { | |
$layout->getUpdate()->addHandle($block['handle']); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Created by PhpStorm. | |
* User: mborodov | |
* Date: 05.11.15 | |
*/ | |
class Tvoe_Catalog_ProductController extends Mage_Core_Controller_Front_Action | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd ~/Documents/tools | |
wget http://files.magerun.net/n98-magerun-latest.phar -O n98-magerun.phar | |
chmod +x n98-magerun.phar | |
sudo ln -s ~/Documents/tools/n98-magerun.phar /usr/bin/n98-magerun.phar | |