Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DariaUshaeva/b3c39b2e2b52ec06e9e7e050945b8399 to your computer and use it in GitHub Desktop.
Save DariaUshaeva/b3c39b2e2b52ec06e9e7e050945b8399 to your computer and use it in GitHub Desktop.
diff --git a/design/themes/responsive/css/styles.less b/design/themes/responsive/css/styles.less
index b7f9ecc3eb..0f1be7903e 100644
--- a/design/themes/responsive/css/styles.less
+++ b/design/themes/responsive/css/styles.less
@@ -2820,7 +2820,7 @@ Common
}
input.ty-price-curency__input {
margin-left: 5px;
- width: 70px;
+ width: 80px;
height: 35px;
font-size: 140%;
}
diff --git a/design/themes/responsive/templates/common/product_data.tpl b/design/themes/responsive/templates/common/product_data.tpl
index aa170d58ab..aee7188450 100644
--- a/design/themes/responsive/templates/common/product_data.tpl
+++ b/design/themes/responsive/templates/common/product_data.tpl
@@ -274,9 +274,18 @@
{assign var="base_currency" value=$currencies[$smarty.const.CART_PRIMARY_CURRENCY]}
<span class="ty-price-curency"><span class="ty-price-curency__title">{__("enter_your_price")}:</span>
<div class="ty-price-curency-input">
- {if $base_currency.after != "Y"}{$base_currency.symbol nofilter}{/if}
- <input class="ty-price-curency__input" type="text" size="3" name="product_data[{$obj_id}][price]" value="" />
- {if $base_currency.after == "Y"}{$base_currency.symbol nofilter}{/if}
+ <input
+ type="text"
+ name="product_data[{$obj_id}][price]"
+ class="ty-price-curency__input cm-numeric"
+ data-a-sign="{$base_currency.symbol nofilter}"
+ data-a-dec="{if $base_currency.decimal_separator}{$base_currency.decimal_separator nofilter}{else}.{/if}"
+ data-a-sep="{if $base_currency.thousands_separator}{$base_currency.thousands_separator nofilter}{else},{/if}"
+ data-p-sign="{if $base_currency.after === "YesNo::YES"|enum}s{else}p{/if}"
+ data-m-dec="{$base_currency.decimals}"
+ size="3"
+ value=""
+ />
</div>
</span>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment