Skip to content

Commit

Permalink
Merge pull request #4934 from izayoi256/feature/add-cart-out-of-stock
Browse files Browse the repository at this point in the history
カートの在庫切れ文言表示方法を変更
  • Loading branch information
chihiro-adachi authored Mar 23, 2021
2 parents 96b1b21 + 5226c83 commit d2ca0d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion html/template/default/assets/js/eccube.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
}
if (classcat2 && classcat2.stock_find === false) {
$cartbtn.prop('disabled', true);
$cartbtn.text('ただいま品切れ中です');
$cartbtn.text(eccube_lang['front.product.out_of_stock']);
} else {
$cartbtn.prop('disabled', false);
$cartbtn.html(this.product_cart_origin);
Expand Down
7 changes: 4 additions & 3 deletions src/Eccube/Resource/template/common/lang.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script>
var eccube_lang = {
"common.delete_confirm":"{{ 'common.delete_confirm'|trans }}"
}
</script>
'common.delete_confirm': "{{ 'common.delete_confirm'|trans }}",
'front.product.out_of_stock': "{{ 'front.product.out_of_stock'|trans }}",
};
</script>

0 comments on commit d2ca0d1

Please sign in to comment.