承接 rapidez/compare 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

rapidez/compare

最新稳定版本:4.0.0

Composer 安装命令:

composer require rapidez/compare

包简介

Rapidez Product Compare

README 文档

README

Installation

composer require rapidez/compare

Compared products

The compared products are available in the compare variable imported from the useCompare.js file.

import { compare } from './../stores/useCompare.js'

Adding products

To add a product to the compare list you can simply import the add function and execute it with product id's.

import { addProductToCompare } from './../stores/useCompare.js'

addProductToCompare(['1', '2']);

If you want a button on the product detail page, you can simply import this partial:

@include('rapidez-compare::product.partials.compare')

If you want checkbox on a category page, you can simply add this import in the item tile:

@include('rapidez-compare::listing.partials.checkbox')

Showing a user their compare list

Within your vue app container you can show the user they have a compare list. This will show a button with a count. Clicking on this will result in the user redirecting to the compare page.

@include('rapidez-compare::partials.button')

Compare page

The compare page show's a list of the comparable attributes of the products that are added. The url of the compare page can be changed in the config.

Views

php artisan vendor:publish --provider="Rapidez\Compare\RapidezCompareServiceProvider"

Note

Currently this module does not support:

  • Linking a compare list to a customer

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2021-06-30