rapidez/confira 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rapidez/confira

最新稳定版本:5.0.0-alpha.1

Composer 安装命令:

composer require rapidez/confira

包简介

Rapidez Confira Checkout Theme

README 文档

README

This package extends rapidez/checkout-theme with customized styling and components. It maintains all the functionality of the original checkout theme while providing a different visual experience.

Prerequisites

Before installing this package, make sure you have:

  1. A working Rapidez installation
  2. The Rapidez Checkout Theme installed and configured

Previews

  • Step 1 - Cart (image)
  • Step 2 - Credentials (image)
  • Step 3 - Payment method (image)
  • Step 4 - Order success (image)
  • Mobile (image)

Installation

  1. First ensure you have installed and configured the base checkout theme properly
  2. Install this package via Composer:
composer require rapidez/confira

Layout Configuration

For the best experience with this theme, it's recommended to have a clean checkout page layout without header and footer. To achieve this, modify your project's app.blade.php:

<div id="app" class="flex flex-col min-h-dvh">
    @includeWhen(!request()->is('checkout'), 'rapidez::layouts.partials.header')
-    @includeWhen(request()->is('checkout'), 'rapidez::layouts.checkout.header')
    <main>
        @yield('content')
    </main>
    @includeWhen(!request()->is('checkout'), 'rapidez::layouts.partials.footer')
-    @includeWhen(request()->is('checkout'), 'rapidez::layouts.checkout.footer')
    @stack('page_end')
</div>

This configuration will:

  • Remove the checkout-specific header and footer
  • Keep the standard site header and footer for non-checkout pages
  • Create a cleaner checkout experience

Configuration

You can publish the config to customize the Confira-specific settings:

php artisan vendor:publish --tag=rapidez-confira-config

Views

If you need to customize the Confira styling further, you can publish its views:

php artisan vendor:publish --tag=rapidez-confira-views

Note: It's recommended to only publish and modify the specific views you need to change, rather than all views. This makes it easier to maintain and update the package.

Browser tests

  • Make sure Confira is working in your browser
  • Run the tests with yarn playwright test
  • Alternatively, run the tests from a UI with yarn playwright test --ui
  • Update the screenshots with yarn playwright test --update-snapshots

License

GNU General Public License v3. Please see License File for more information.

统计信息

  • 总下载量: 2.36k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 5
  • 开发语言: Blade

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2023-11-09