Skip to content

Instantly share code, notes, and snippets.

View kugimiya's full-sized avatar
:shipit:
Teach me how to use GH notifications.

Andrew Goncharov kugimiya

:shipit:
Teach me how to use GH notifications.
View GitHub Profile
diff --git a/design/themes/basic/templates/common/product_data.tpl b/design/themes/basic/templates/common/product_data.tpl
index e5cd02a..4edcc8d 100644
--- a/design/themes/basic/templates/common/product_data.tpl
+++ b/design/themes/basic/templates/common/product_data.tpl
@@ -89,12 +89,17 @@
{else}
{$opt_but_role="action"}
{/if}
- {include file="buttons/button.tpl" but_id="button_cart_`$obj_prefix``$obj_id`" but_text=__("select_options") but_href="products.view?product_id=`$product.product_id`" but_role=$opt_but_role but_name=""}
+
@kugimiya
kugimiya / testShit.sh
Last active September 28, 2017 12:20
# really, test shit? Lol much rofl.
# Add yet another...
diff --git a/design/themes/responsive/templates/views/orders/components/payments/cc.tpl b/design/themes/responsive/templates/views/orders/components/payments/cc.tpl
index eb5bb94..72c468a 100644
--- a/design/themes/responsive/templates/views/orders/components/payments/cc.tpl
+++ b/design/themes/responsive/templates/views/orders/components/payments/cc.tpl
@@ -70,6 +70,11 @@
<script type="text/javascript">
(function(_, $) {
+
+ var isChromeOnOldAndroid = function() {
diff --git a/js/tygh/editors/redactor2.editor.js b/js/tygh/editors/redactor2.editor.js
index 764c0e9..410e3d2 100644
--- a/js/tygh/editors/redactor2.editor.js
+++ b/js/tygh/editors/redactor2.editor.js
@@ -114,7 +114,8 @@
if (!this.params) {
this.params = {
- lang: lang_code
+ lang: lang_code,
diff --git a/design/themes/responsive/css/styles.less b/design/themes/responsive/css/styles.less
index 663024d..fa3f34c 100644
--- a/design/themes/responsive/css/styles.less
+++ b/design/themes/responsive/css/styles.less
@@ -7465,3 +7465,19 @@ Date range picker
display: none;
}
/* /Date range picker */
+
+
diff --git a/app/functions/fn.catalog.php b/app/functions/fn.catalog.php
index 4998bf3..959693a 100644
--- a/app/functions/fn.catalog.php
+++ b/app/functions/fn.catalog.php
@@ -8040,6 +8040,7 @@ function fn_apply_options_rules($product)
// Change product code and amount
if (!empty($product['tracking']) && $product['tracking'] == ProductTracking::TRACK_WITH_OPTIONS) {
$product['hide_stock_info'] = false;
+
if ($product['options_type'] == 'S') {
diff --git a/js/tygh/editors/redactor2.editor.js b/js/tygh/editors/redactor2.editor.js
index ba39804..c724442 100644
--- a/js/tygh/editors/redactor2.editor.js
+++ b/js/tygh/editors/redactor2.editor.js
@@ -116,7 +116,9 @@
if (!this.params) {
this.params = {
lang: lang_code,
- removeComments: false
+ removeComments: false,
@kugimiya
kugimiya / sql.ts
Created March 14, 2018 09:37
SQL in a nuttshell.
// Declare user
class User {
public id: number;
public name: string;
public type: string;
public constructor(data: { id: number; name: string; type: string; }) {
this.id = data.id;
this.name = data.name;
this.type = data.type;
diff --git a/design/backend/templates/addons/responsive_admin/overrides/addons/banners/pickers/banners/picker_contents.tpl b/design/backend/templates/addons/responsive_admin/overrides/addons/banners/pickers/banners/picker_contents.tpl
index 2b791fd..bb0b4ab 100644
--- a/design/backend/templates/addons/responsive_admin/overrides/addons/banners/pickers/banners/picker_contents.tpl
+++ b/design/backend/templates/addons/responsive_admin/overrides/addons/banners/pickers/banners/picker_contents.tpl
@@ -35,31 +35,12 @@
</script>
{/if}
</head>
-<form action="{$smarty.request.extra|fn_url}" data-ca-result-id="{$smarty.request.data_id}" method="post" name="banners_form">
-{if $banners}
@kugimiya
kugimiya / rad.md
Created May 15, 2018 15:33
REST API Description

REST API Description

About

Version: 0.1

Author: kugimiya

How it works

  • All API-methods named as URL
  • All requests must be sent by POST method