Instalasi

Jalankan perintah di bawah di folder aplikasi:

mim app install admin-product

Price Config

Module ini tidak memiliki configurasi pricing. Tambahkan konfigurasi seperti di bawah pada aplikasi untuk menentukan bagaimana pricing suatu produk diatur:

return [
    'libForm' => [
        'forms' => [
            'admin.product.edit' => [
                // opsi 1
                'price-min' => [
                    'label' => 'Price Min',
                    'type' => 'number',
                    'rules' => [
                        'numeric' => [
                            'min' => 0
                        ]
                    ]
                ],
                'price-max' => [
                    'label' => 'Price Max',
                    'type' => 'number',
                    'rules' => [
                        'numeric' => [
                            'min' => 0
                        ]
                    ]
                ],

                // opsi 2
                'price-daily' => [
                    'label' => 'Price Daily',
                    'type' => 'number',
                    'rules' => [
                        'numeric' => [
                            'min' => 0
                        ]
                    ]
                ],
                'price-weekly' => [
                    'label' => 'Price Weekly',
                    'type' => 'number',
                    'rules' => [
                        'numeric' => [
                            'min' => 0
                        ]
                    ]
                ],
                'price-monthly' => [
                    'label' => 'Price Monthly',
                    'type' => 'number',
                    'rules' => [
                        'numeric' => [
                            'min' => 0
                        ]
                    ]
                ],
                'price-anually' => [
                    'label' => 'Price Anually',
                    'type' => 'number',
                    'rules' => [
                        'numeric' => [
                            'min' => 0
                        ]
                    ]
                ],

                // opsi 3
                'price' => [
                    'label' => 'Price',
                    'type' => 'number',
                    'rules' => [
                        'numeric' => [
                            'min' => 0
                        ]
                    ]
                ]
            ]
        ]
    ]
];

Custom Field

Positions:

  1. left-top-left
  2. left-top-right
  3. left-middle-top
  4. left-middle-bottom
  5. left-bottom-left
  6. left-bottom-right
  7. left-bottom-right-left
  8. left-bottom-right-right
  9. right