项目作者: dubrod

项目描述 :
MODX Flat Order Extra
高级语言: PHP
项目地址: git://github.com/dubrod/flatorder.git
创建时间: 2018-03-21T19:26:37Z
项目社区:https://github.com/dubrod/flatorder

开源协议:MIT License

下载


MODX Flat Order

A MODX extra to add a Resources Based “Shopping Cart” Table and/or Product Grid to your site.

screenshot

screenshot

Features:

  1. Keeps products in Local Storage not session.
  2. 2 Product Variants (Size & Color) by default.
  3. Product Variants can change thumbnail.
  4. Confirmation screen (resource).
  5. Email Order Submission, no processing (via snippet > ajax).
  6. Built using KnockoutJS so adding Filtering is easily done.

Dependencies:

  1. jQuery (CDN called in Template)
  2. Knockout JS (CDN called in Template)
  3. MIGX - You must have at least 1 Product Variant in the MIGX table for every product. But the Option Dropdowns are not required.

Default Settings:

  1. Template Variable “Option 1” - Will be a “Size” option.
  2. Template Variable “Option 2” - Will be a “Color” option.
  3. Template Variables “Product Tag”, “Product Type”, and “Vendor” are not used in the Published Free Version. You can use them inside grid loops or product pages like you would any other Template Variable.

After Install, System Setup:

  1. Update the Template Variable “fo_variants” to be a MIGX input type. Below are the JSON configuration settings.

    Form Tabs:

    1. [{"fields": [
    2. {"field": "title","caption": "Title"},
    3. {"field": "price","caption": "Price"},
    4. {"field": "featured_image","caption": "Image","inputTVtype": "image"},
    5. {"field": "option1","caption": "Option One","inputTV":"fo_option1"},
    6. {"field": "option2","caption": "Option Two","inputTV":"fo_option2"}
    7. ]}]

    Grid Columns:

    1. [
    2. {"header": "Image","dataIndex": "featured_image","renderer": "this.renderImage"},
    3. {"header": "Title","dataIndex": "title"},
    4. {"header": "Price","dataIndex": "price"}
    5. ]
  2. Create a “Catalog” Resource to be the parent of your products. You could have multiple levels, like “Catalog” > “Mens” > “Shirts” if you want.
  3. In the Flat Order System Settings: Adjust “Catalog > Catalog ID” to what you just created.
  4. In the Flat Order System Settings: Adjust “From Name”, “Subject”, and “TO” Email Address.
  5. Create or Update a Template to use as a “Product Template” and assign the Template Variables for Flat Order, except the 2 “Option” TVs. The “Option” TVs are used in the “Variants” TV.
  6. Create Products…