rapidez/amasty-custom-form

There is no license information available for the latest version (1.0.0) of this package.

Installs: 1 149

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 2

Open Issues: 0

Language:Blade

1.0.0 2024-02-21 13:08 UTC

This package is auto-updated.

Last update: 2024-04-21 13:26:04 UTC


README

Requirements

You need to have the Amasty Custom Form module installed and configured within your Magento 2 installation. Including the graphql module.

Installation

composer require rapidez/amasty-custom-form

Showing a Form

You can show a form by loading the amasty-custom-form form component:

<x-amasty-custom-form::form :formId="$form_id"/>

the form id is the id that is in the database, not the code.

Getting the form id by code

If you want to render the form by code instead of id you can do so by getting it from the database

$form = \Rapidez\AmastyCustomForm\Models\AmastyCustomForm::select('form_id')->where('code', <form code>)->first();
...
<x-amasty-custom-form::form :formId="$form->form_id"/>

Views

If you need to change the views you can publish them with:

php artisan vendor:publish --provider="Rapidez\AmastyCustomForm\AmastyCustomFormServiceProvider" --tag=views

Note

Not all features are implemented yet! For example the review start & file upload aren't supported.

License

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