src/Eccube/Controller/HelpController.php line 67

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of EC-CUBE
  4.  *
  5.  * Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
  6.  *
  7.  * http://www.ec-cube.co.jp/
  8.  *
  9.  * For the full copyright and license information, please view the LICENSE
  10.  * file that was distributed with this source code.
  11.  */
  12. namespace Eccube\Controller;
  13. use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
  14. use Symfony\Component\Routing\Annotation\Route;
  15. class HelpController extends AbstractController
  16. {
  17.     /**
  18.      * HelpController constructor.
  19.      */
  20.     public function __construct()
  21.     {
  22.     }
  23.     /**
  24.      * ご利用ガイド.
  25.      *
  26.      * @Route("/guide", name="help_guide", methods={"GET"})
  27.      * @Template("Help/guide.twig")
  28.      */
  29.     public function guide()
  30.     {
  31.         return [];
  32.     }
  33.     /**
  34.      * 当サイトについて.
  35.      *
  36.      * @Route("/help/about", name="help_about", methods={"GET"})
  37.      * @Template("Help/about.twig")
  38.      */
  39.     public function about()
  40.     {
  41.         return [];
  42.     }
  43.     /**
  44.      * プライバシーポリシー.
  45.      *
  46.      * @Route("/help/privacy", name="help_privacy", methods={"GET"})
  47.      * @Template("Help/privacy.twig")
  48.      */
  49.     public function privacy()
  50.     {
  51.         return [];
  52.     }
  53.     /**
  54.      * 利用規約.
  55.      *
  56.      * @Route("/help/agreement", name="help_agreement", methods={"GET"})
  57.      * @Template("Help/agreement.twig")
  58.      */
  59.     public function agreement()
  60.     {
  61.         return [];
  62.     }
  63.     /**
  64.      * よくある質問 (FAQ).
  65.      *
  66.      * @Route("/faq", name="help_faq", methods={"GET"})
  67.      * @Template("FAQ/index.twig")
  68.      */
  69.     public function faq()
  70.     {
  71.         // FAQデータ(後でEntityに移行可能)
  72.         $faqs = [
  73.             [
  74.                 'question' => '注文方法について教えてください',
  75.                 'answer' => '商品ページから希望の商品を選択し、カートに追加後、購入手続きに進んでください。会員登録またはゲスト購入が可能です。'
  76.             ],
  77.             [
  78.                 'question' => '配送料はかかりますか?',
  79.                 'answer' => '購入金額によって配送料が異なります。詳細は配送・返品についてのページをご確認ください。'
  80.             ],
  81.             [
  82.                 'question' => '支払い方法は何がありますか?',
  83.                 'answer' => 'クレジットカード、銀行振込、代金引換など、複数の支払い方法をご用意しております。'
  84.             ],
  85.             [
  86.                 'question' => '返品・交換は可能ですか?',
  87.                 'answer' => '商品到着後7日以内であれば、未使用・未開封の商品に限り返品・交換が可能です。詳細は返品・交換についてのページをご確認ください。'
  88.             ],
  89.             [
  90.                 'question' => '営業時間を教えてください',
  91.                 'answer' => '営業時間は平日10:00~18:00となっております。土日祝日はお休みをいただいております。'
  92.             ],
  93.         ];
  94.         return [
  95.             'faqs' => $faqs,
  96.         ];
  97.     }
  98. }