Magic Extra Field Light is a lightweight WordPress plugin that allows you to add custom fields to your WooCommerce products using Elementor’s interface. It’s perfect for adding text inputs, checkboxes, and other form elements to your product pages.
Clone the repository:
bash
git clone https://github.com/loyalcoder/magic-extra-field-light.git
Navigate to the plugin directory:
bash
cd magic-extra-field-light
Install dependencies:
bash
npm install
Build the assets:
bash
npm run build
This plugin uses build tools to generate optimized production assets. The source code for all JavaScript and CSS files is available in the following locations:
assets/src/js/ – Contains the original, human-readable JavaScript source filesassets/src/css/ – Contains the original, human-readable CSS source fileswebpack.config.js – Webpack configuration for asset compilationThe compiled/minified assets are located in assets/dist/ and are generated from the source files using webpack.
This plugin uses the following build tools:
* Webpack: For bundling and optimizing JavaScript and CSS assets
* npm: For dependency management and build scripts
To modify the plugin’s frontend or admin interface:
1. Edit the source files in assets/src/
2. Run npm run build to compile changes
3. Test your modifications
The source code is also available on GitHub: https://github.com/loyalcoder/magic-extra-field-light