Skip to content

Instantly share code, notes, and snippets.

@cscartjp
cscartjp / localization_jp.po
Created April 29, 2015 13:25
CS-Cart 4.2.4 日本語版アドオンの翻訳ファイル(.poファイル)
msgid ""
msgstr ""
"Project-Id-Version: cs-cart-latest\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Language-Team: Japanese\n"
"Language: ja_JP\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: crowdin.net\n"
"Last-Translator: cscartjp <info@cs-cart.jp>\n"
"PO-Revision-Date: 2014-07-17 04:42-0400\n"
@cscartjp
cscartjp / addon.xml
Last active August 29, 2015 14:19
addon scheme3.0 fully commented example of an addon.xml.
<?xml version="1.0"?>
<!--
アドオンスキーム3.0バーションの概要
オプション以外のパタメーターは必須項目となります。
@edition_type ーすべての設定関連の要素で使用可能なオプション属性
利用可能なエディションを複数定義することが出来ます。
このTYPEが設定されていない場合、値はROOTとなります。
-->
<addon scheme="3.0" edition_type="ROOT,ULT:VENDOR">
<!-- アドオン識別子。アドオンのファイルのディレクトリ名と同じである必要がります。-->
@cscartjp
cscartjp / index.post.php
Last active August 29, 2015 14:19
CS-Cart Advanced Add-on Tutorial
<?php
/***************************************************************************
* *
* (c) 2004 Vladimir V. Kalynyak, Alexey V. Vinokurov, Ilya M. Shalnev *
* *
* This is commercial software, only users who have purchased a valid *
* license and accept to the terms of the License Agreement can install *
* and use this program. *
* *
****************************************************************************
@cscartjp
cscartjp / index.post.tpl
Last active August 29, 2015 14:19
CS-Cart Advanced Add-on Tutorial
<div class="dashboard-row-bottom">
<div class="dashboard-viewed-category">
<h4>Viewed categories</h4>
<div class="dashboard-viewed-category-list">
{if $viewed_categories}
<ul>
{foreach from=$viewed_categories item="category_data"}
<li><strong><a href="{"profiles.update?user_id=`$category_data.user_id`"|fn_url}">{$category_data.user_name}</a></strong>:&nbsp;
{foreach from=$category_data.categories key="category_id" item="category_name"}
<a href="{"categories.update?category_id=`$category_id`"|fn_url}">{$category_name}</a>,
@cscartjp
cscartjp / func.php
Last active August 29, 2015 14:19
CS-Cart Advanced Add-on Tutorial
<?php
/***************************************************************************
* *
* (c) 2004 Vladimir V. Kalynyak, Alexey V. Vinokurov, Ilya M. Shalnev *
* *
* This is commercial software, only users who have purchased a valid *
* license and accept to the terms of the License Agreement can install *
* and use this program. *
* *
****************************************************************************
@cscartjp
cscartjp / init.php
Last active August 29, 2015 14:19
CS-Cart Advanced Add-on Tutorial
<?php
/***************************************************************************
* *
* (c) 2004 Vladimir V. Kalynyak, Alexey V. Vinokurov, Ilya M. Shalnev *
* *
* This is commercial software, only users who have purchased a valid *
* license and accept to the terms of the License Agreement can install *
* and use this program. *
* *
****************************************************************************
@cscartjp
cscartjp / addon.xml
Last active August 29, 2015 14:19
CS-Cart Advanced Add-on Tutorial
<?xml version="1.0"?>
<addon scheme="2.0">
<id>advanced_addon</id>
<name>Advanced Add-on</name>
<description>Advanced Add-on</description>
<version>1.0</version>
<priority>100500</priority>
<status>active</status>
<queries>
<item for="install">DROP TABLE IF EXISTS ?:advanced_addon_data;</item>
@cscartjp
cscartjp / Cscart.php
Last active August 29, 2015 14:07
A CodeIgniter library for CS-Cart API
<?php
/**
* A CodeIgniter library for CS-Cart API
*
* Example Usage:
*
*
* Methods return a mixture of boolean and stdObjects
*