Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ショップ構築時に非公開で作業できるようにしたい #4119

Open
ghost opened this issue Mar 26, 2019 · 3 comments
Open

ショップ構築時に非公開で作業できるようにしたい #4119

ghost opened this issue Mar 26, 2019 · 3 comments
Labels
enhancement 機能追加
Milestone

Comments

@ghost
Copy link

ghost commented Mar 26, 2019

概要(Overview)

「オープン準備中」と出るようにしたいです。
ec-cube.coでは現状、オープン前にもかかわらず第三者が商品を購入できる状態になってしまっています。(ショップオープン状態のままオープン準備をせざる負えない状況)
・メンテナンスモードだと確認できない。

期待する内容(Expect) or 要望 (Requirement)

ショップ構築時に非公開で作業できるようにしたい。

再現手順(Procedure)

環境 (environment)

  • EC-CUBE: 4.0.x
  • PHP: 7.x.x
  • DB:
    • PostgreSQL x.x.x
    • MySQL x.x.x

関連情報 (Ref)

@okazy
Copy link
Contributor

okazy commented Mar 27, 2019

非公開にしたいだけであればBasic認証を利用されるのが良いかと思います。

.htaccessにサンプルコードが入っています。

ec-cube/.htaccess

Lines 58 to 66 in e4f725e

# 管理画面へのBasic認証サンプル
#
# AuthType Basic
# AuthName "Please enter username and password"
# AuthUserFile /path/to/.htpasswd
# AuthGroupFile /dev/null
# require valid-user
#
# SetEnvIf Request_URI "^/admin" admin_path # ^/adminは, 管理画面URLに応じて変更してください

メンテナンスモードの画面のデザインを変更したい場合は maintenance.php ファイルを変更することで対応が可能です。
https://github.com/EC-CUBE/ec-cube/blob/4.0/maintenance.php

非公開時に特定の権限の人だけフロント画面を確認できる機能は現状ではありません。

@YuYu777
以下のissueが近い内容かと思うのですが、主旨は異なりますか?
#4034

@okazy okazy added the enhancement 機能追加 label Mar 27, 2019
@okazy okazy added this to the 4.0.x milestone Mar 27, 2019
@ghost
Copy link
Author

ghost commented Mar 27, 2019

@okazy
ありがとうございます。

本issueの要望をまとめてみました。
1、管理画面から非公開設定ができる
2、文言は、「ショップ準備中」という趣旨であること
3、管理者はプレビューできる状態(#4034 と同じような状態)
となります。

お手数をおかけしますが、ご確認いただけますと幸いです。
以上よろしくお願いいたします。

@okazy
Copy link
Contributor

okazy commented Mar 28, 2019

@YuYu777

いただいた要望を満たせそうなプラグインが公開されていました。
https://www.ec-cube.net/products/detail.php?product_id=1716

現状では最新バージョンに対応していないようですので、ご利用の際は確認をお願いします。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 機能追加
Projects
None yet
Development

No branches or pull requests

1 participant