[Skip to main content](#vessel-content)

#   価格を二重線で消して割引価格を目立たせたい

##

- **[retro](/forum/user/7464-retro "View retro's Profile")**
- [![retro's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7464-retro "View retro's Profile") Topic Author
- [ Offline](/forum/user/7464-retro)

Less More

- Posts: 63
- Thank you received: 1
-
-

10 years 4 months ago [\#242180](#242180) by [retro](/forum/user/7464-retro "View retro's Profile")  *[価格を二重線で消して割引価格を目立たせたい](/forum/6-japanese-support/884935#242180 "-- Joomla version -- : 3.5.1 -- PHP version -- : 5.6 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Hikashopの商品ページで 価格を5000円⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。  Hikashopの商品ページで 価格を⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。")* was created by *[retro](/forum/user/7464-retro "View retro's Profile")*

-- Joomla version -- : 3.5.1
-- PHP version -- : 5.6
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- : Hikashopの商品ページで
価格を5000円⇒2000円
のように正規価格に対して 2000円になっていますというわかりやすいように
画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、
以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。

Hikashopの商品ページで
価格を\[strike\]5000円\[/strike\]⇒2000円
のように正規価格に対して 2000円になっていますというわかりやすいように
画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、
以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzYtamFwYW5lc2Utc3VwcG9ydC84ODQ5MzU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14270
-
-

10 years 4 months ago [\#242275](#242275) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[価格を二重線で消して割引価格を目立たせたい](/forum/6-japanese-support/884935#242275 "-- Joomla version -- : 3.5.1 -- PHP version -- : 5.6 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Hikashopの商品ページで 価格を5000円⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。  Hikashopの商品ページで 価格を⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。")*

retro 様

現バージョンでもこのような表示は可能です。

HikaShop設定にて、「割引後の価格を表示する」オプションを「割引前の金額を表示する」に変更して下さい。
自動で表示されるようになります。

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzYtamFwYW5lc2Utc3VwcG9ydC84ODQ5MzU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[retro](/forum/user/7464-retro "View retro's Profile")**
- [![retro's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7464-retro "View retro's Profile") Topic Author
- [ Offline](/forum/user/7464-retro)

Less More

- Posts: 63
- Thank you received: 1
-
-

10 years 4 months ago [\#242284](#242284) by [retro](/forum/user/7464-retro "View retro's Profile")  Replied by *[retro](/forum/user/7464-retro "View retro's Profile")* on topic *[価格を二重線で消して割引価格を目立たせたい](/forum/6-japanese-support/884935#242284 "-- Joomla version -- : 3.5.1 -- PHP version -- : 5.6 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Hikashopの商品ページで 価格を5000円⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。  Hikashopの商品ページで 価格を⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。")*

割引前の金額を表示する、にしたのですが
特に価格が表示されないようです

希望小売価格を設定して 価格をそれより安いものにすれば割引金額が表示されると思ったのですが
やり方が間違っているでしょうか？

また商品個別ページと、商品カテゴリで表示される商品両方に表示させたいのですが可能ですか。

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzYtamFwYW5lc2Utc3VwcG9ydC84ODQ5MzU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[retro](/forum/user/7464-retro "View retro's Profile")**
- [![retro's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7464-retro "View retro's Profile") Topic Author
- [ Offline](/forum/user/7464-retro)

Less More

- Posts: 63
- Thank you received: 1
-
-

10 years 4 months ago [\#242287](#242287) by [retro](/forum/user/7464-retro "View retro's Profile")  Replied by *[retro](/forum/user/7464-retro "View retro's Profile")* on topic *[価格を二重線で消して割引価格を目立たせたい](/forum/6-japanese-support/884935#242287 "-- Joomla version -- : 3.5.1 -- PHP version -- : 5.6 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Hikashopの商品ページで 価格を5000円⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。  Hikashopの商品ページで 価格を⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。")*

割引/クーポン機能を使って該当商品やカテゴリに割引が適用できることはわかりました。

が、適用した割引機能で問題発生しました。

割引設定画面の
適用した右側の「カテゴリ」「商品」が、保存すると情報が消えてしまいます。
ただし実際に割引は適用されているので、割引を解除することができません、バグでしょうか？
なおバージョンは最新のHikashopを使っています。

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzYtamFwYW5lc2Utc3VwcG9ydC84ODQ5MzU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[retro](/forum/user/7464-retro "View retro's Profile")**
- [![retro's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7464-retro "View retro's Profile") Topic Author
- [ Offline](/forum/user/7464-retro)

Less More

- Posts: 63
- Thank you received: 1
-
-

10 years 4 months ago -  10 years 4 months ago [\#242482](#242482) by [retro](/forum/user/7464-retro "View retro's Profile")  Replied by *[retro](/forum/user/7464-retro "View retro's Profile")* on topic *[価格を二重線で消して割引価格を目立たせたい](/forum/6-japanese-support/884935#242482 "-- Joomla version -- : 3.5.1 -- PHP version -- : 5.6 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Hikashopの商品ページで 価格を5000円⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。  Hikashopの商品ページで 価格を⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。")*

こちらの問題、いかがでしょうか？
正確にいうとカテゴリ、商品の指定をしても無視されて
全ての商品に割引が適用されてしまうようです

またカテゴリ、商品の指定も保存されません

Last edit: 10 years 4 months ago by [retro](/forum/user/7464-retro "View retro's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzYtamFwYW5lc2Utc3VwcG9ydC84ODQ5MzU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14270
-
-

10 years 4 months ago [\#242492](#242492) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[価格を二重線で消して割引価格を目立たせたい](/forum/6-japanese-support/884935#242492 "-- Joomla version -- : 3.5.1 -- PHP version -- : 5.6 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Hikashopの商品ページで 価格を5000円⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。  Hikashopの商品ページで 価格を⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。")*

retro 様

希望小売価格は別のものです。
メニューの注文→割引経由で、割引を作成すれば、同割引が商品価格に適用されます。
このように設定なされば、前回ご説明したセッティングが有効になると思います。

割引前の価格（≠希望小売価格）も、リスティングに表示されます。
メニューアイテムの「割引」設定を、「割引前の価格を表示する」に設定して下さい。

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzYtamFwYW5lc2Utc3VwcG9ydC84ODQ5MzU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[retro](/forum/user/7464-retro "View retro's Profile")**
- [![retro's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7464-retro "View retro's Profile") Topic Author
- [ Offline](/forum/user/7464-retro)

Less More

- Posts: 63
- Thank you received: 1
-
-

10 years 4 months ago [\#242631](#242631) by [retro](/forum/user/7464-retro "View retro's Profile")  Replied by *[retro](/forum/user/7464-retro "View retro's Profile")* on topic *[価格を二重線で消して割引価格を目立たせたい](/forum/6-japanese-support/884935#242631 "-- Joomla version -- : 3.5.1 -- PHP version -- : 5.6 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Hikashopの商品ページで 価格を5000円⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。  Hikashopの商品ページで 価格を⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。")*

えーとご理解いただけていないかもしれません。
ご回答いただいた内容は、すでにできております。

\#希望小売価格の話はいったん無視してください。

メニューの「注文」「割引」から
「割引」の設定で割引率を作った場合、「カテゴリ」「商品」の設定のところで設定しても
その情報が保存されず、すべての商品に対して割引が適用されてしまいます。。

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzYtamFwYW5lc2Utc3VwcG9ydC84ODQ5MzU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14270
-
-

10 years 4 months ago [\#242721](#242721) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[価格を二重線で消して割引価格を目立たせたい](/forum/6-japanese-support/884935#242721 "-- Joomla version -- : 3.5.1 -- PHP version -- : 5.6 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Hikashopの商品ページで 価格を5000円⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。  Hikashopの商品ページで 価格を⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。")*

retro 様

ご報告頂いた問題ですが、初めてのケースです。
申し訳ありませんが、直接拝見しませんと回答を差し上げることができません。
お手数ですが、弊社サイト上のコンタクトフォーム:

[ www.hikashop.com/support/contact-us.html](https://www.hikashop.com/support/contact-us.html)

より、バックエンドアクセスに必要な情報をお送り頂けますか？
同フォーム内に本スレッドへのリンク:

[ www.hikashop.com/forum/6-japanese-support/884935.html#242631](http://www.hikashop.com/forum/6-japanese-support/884935.html#242631)

をお書き添え下さると助かります。

それでは、ご連絡をお待ちしております。

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzYtamFwYW5lc2Utc3VwcG9ydC84ODQ5MzU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14270
-
-

10 years 4 months ago [\#242863](#242863) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[価格を二重線で消して割引価格を目立たせたい](/forum/6-japanese-support/884935#242863 "-- Joomla version -- : 3.5.1 -- PHP version -- : 5.6 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Hikashopの商品ページで 価格を5000円⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。  Hikashopの商品ページで 価格を⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。")*

retro 様

ご連絡ありがとうございました。

バックエンドを拝見しましたが、こちらの問題は既にHikaShop最新版をリリースするにあたり、修正したものでした。
最新版にアップデートすれば、解決します。

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzYtamFwYW5lc2Utc3VwcG9ydC84ODQ5MzU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[retro](/forum/user/7464-retro "View retro's Profile")**
- [![retro's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7464-retro "View retro's Profile") Topic Author
- [ Offline](/forum/user/7464-retro)

Less More

- Posts: 63
- Thank you received: 1
-
-

10 years 4 months ago -  10 years 4 months ago [\#242907](#242907) by [retro](/forum/user/7464-retro "View retro's Profile")  Replied by *[retro](/forum/user/7464-retro "View retro's Profile")* on topic *[価格を二重線で消して割引価格を目立たせたい](/forum/6-japanese-support/884935#242907 "-- Joomla version -- : 3.5.1 -- PHP version -- : 5.6 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Hikashopの商品ページで 価格を5000円⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。  Hikashopの商品ページで 価格を⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。")*

最新版にアップデートして試してみましたが、
やはり割引のカテゴリや商品指定は保存されない そしてカテゴリを指定したのにも関わらずすべての商品に割引が適用されてしまいます。（つまり変わっていません）

正確には、開始日時 終了日時 は保存されます。

カテゴリ 商品指定 地域
が保存されません。

のですが、これはバグでしょうか？ （あるいはデータベースに何らかの問題があるのでしょうか？）

なおデータベースはJ2.5系のHikashopからJ3.5に移行したものとなります。

Last edit: 10 years 4 months ago by [retro](/forum/user/7464-retro "View retro's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzYtamFwYW5lc2Utc3VwcG9ydC84ODQ5MzU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14270
-
-

10 years 4 months ago [\#243049](#243049) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[価格を二重線で消して割引価格を目立たせたい](/forum/6-japanese-support/884935#243049 "-- Joomla version -- : 3.5.1 -- PHP version -- : 5.6 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Hikashopの商品ページで 価格を5000円⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。  Hikashopの商品ページで 価格を⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。")*

retro 様

データベースで、hikashop_discountテーブルのdiscount_category_idコラムが"integer"タイプになっています。
phpmyadmin経由で編集し、"text"タイプに変更して下さい。

これは以前変更したものなのですが、新システムにて割引及びクーポンに制限を加えられるようにしたい場合、必要な変更となります。
通常は自動で変更されるはずなのですが、retro様のサイトでは変更されなかったようです。
お手数をおかけし、申し訳ございません。

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzYtamFwYW5lc2Utc3VwcG9ydC84ODQ5MzU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[retro](/forum/user/7464-retro "View retro's Profile")**
- [![retro's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7464-retro "View retro's Profile") Topic Author
- [ Offline](/forum/user/7464-retro)

Less More

- Posts: 63
- Thank you received: 1
-
-

10 years 4 months ago -  10 years 4 months ago [\#243050](#243050) by [retro](/forum/user/7464-retro "View retro's Profile")  Replied by *[retro](/forum/user/7464-retro "View retro's Profile")* on topic *[価格を二重線で消して割引価格を目立たせたい](/forum/6-japanese-support/884935#243050 "-- Joomla version -- : 3.5.1 -- PHP version -- : 5.6 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Hikashopの商品ページで 価格を5000円⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。  Hikashopの商品ページで 価格を⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。")*

ALTER TABLE &#96;v6ywb_hikashop_discount&#96; CHANGE &#96;discount_category_id&#96; &#96;discount_category_id&#96; TEXT UNSIGNED NOT NULL DEFAULT '0';

をPHPMYADMINで実行していますが、次のエラーが出るようです

- [ ![discount&#95;mysql.png](/forum/attachment/32083) ](/forum/attachment/32083 "...ount&#95;mysql.png") [ ](/forum/attachment/32083?download=1 "...ount&#95;mysql.png")
- [ ![FireShot&#95;Capture&#95;4&#95;-&#95;mysql&#95;kagoya&#95;com&#95;&#95;&#95;o404&#95;&#95;-&#95;https&#95;&#95;&#95;mysql&#95;kagoya&#95;com&#95;o4041-242&#95;tbl&#95;structure&#95;php.jpg](/forum/attachment/32086) ](/forum/attachment/32086 "...ucture&#95;php.jpg") [ ](/forum/attachment/32086?download=1 "...ucture&#95;php.jpg")

Last edit: 10 years 4 months ago by [retro](/forum/user/7464-retro "View retro's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzYtamFwYW5lc2Utc3VwcG9ydC84ODQ5MzU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[retro](/forum/user/7464-retro "View retro's Profile")**
- [![retro's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7464-retro "View retro's Profile") Topic Author
- [ Offline](/forum/user/7464-retro)

Less More

- Posts: 63
- Thank you received: 1
-
-

10 years 4 months ago [\#243059](#243059) by [retro](/forum/user/7464-retro "View retro's Profile")  Replied by *[retro](/forum/user/7464-retro "View retro's Profile")* on topic *[価格を二重線で消して割引価格を目立たせたい](/forum/6-japanese-support/884935#243059 "-- Joomla version -- : 3.5.1 -- PHP version -- : 5.6 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Hikashopの商品ページで 価格を5000円⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。  Hikashopの商品ページで 価格を⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。")*

一部自己解決しました

TEXT型にして値をNULLにし、UNSIGNEDとなっている部分を解除したら保存できました。

ですが今度は
If you set both categories and products in a discount/coupon, only the products will be taken into account.
というエラーが出るようになりました。

該当する
product_id
tax_id
など _idがつくものはすべてTEXT型にしてみたのですが、、、

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzYtamFwYW5lc2Utc3VwcG9ydC84ODQ5MzU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14270
-
-

10 years 4 months ago [\#243215](#243215) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[価格を二重線で消して割引価格を目立たせたい](/forum/6-japanese-support/884935#243215 "-- Joomla version -- : 3.5.1 -- PHP version -- : 5.6 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Hikashopの商品ページで 価格を5000円⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。  Hikashopの商品ページで 価格を⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。")*

retro 様

"If you set both categories and products in a discount/coupon, only the products will be taken into account."エラーは、割引に商品とカテゴリの双方を追加しようとしていることを意味しています。
商品、あるいはカテゴリのどちらかを追加して下さい。
両方同時に追加はできません。

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzYtamFwYW5lc2Utc3VwcG9ydC84ODQ5MzU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[retro](/forum/user/7464-retro "View retro's Profile")**
- [![retro's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7464-retro "View retro's Profile") Topic Author
- [ Offline](/forum/user/7464-retro)

Less More

- Posts: 63
- Thank you received: 1
-
-

10 years 4 months ago [\#243220](#243220) by [retro](/forum/user/7464-retro "View retro's Profile")  Replied by *[retro](/forum/user/7464-retro "View retro's Profile")* on topic *[価格を二重線で消して割引価格を目立たせたい](/forum/6-japanese-support/884935#243220 "-- Joomla version -- : 3.5.1 -- PHP version -- : 5.6 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Hikashopの商品ページで 価格を5000円⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。  Hikashopの商品ページで 価格を⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。")*

はい、だいたい意味はわかっていますが
実際にはカテゴリだけを追加してやっても
このエラーが出てしまいます。
たぶんPHPMYADMINでデータベースをいじったことが何か影響しているのだと思いますが。。

調査をお願いします。

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzYtamFwYW5lc2Utc3VwcG9ydC84ODQ5MzU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14270
-
-

10 years 4 months ago [\#243394](#243394) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[価格を二重線で消して割引価格を目立たせたい](/forum/6-japanese-support/884935#243394 "-- Joomla version -- : 3.5.1 -- PHP version -- : 5.6 -- Browser(s) name and version -- : Chrome -- Error-message(debug-mod must be tuned on) -- : Hikashopの商品ページで 価格を5000円⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。  Hikashopの商品ページで 価格を⇒2000円 のように正規価格に対して　2000円になっていますというわかりやすいように 画面上消し値表示（二重線や取り消し線で元の価格を消して値下げ価格を表示させる）をしたいのですが、 以前のバージョンはできていたような気がしますが、やり方がわからないので教えてもらえないでしょうか。")*

retro 様

それでは、方法を変更することをお勧め致します。
hikashop_discount テーブルを完全に削除し、HikaShop設定にて「データベースを確認」ボタンをクリックします。
正しいコラムタイプのテーブルその他が自動で追加され直されます。

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzYtamFwYW5lc2Utc3VwcG9ydC84ODQ5MzU/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.428 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
