Download the PHP package zaius/zaius-magento-2 without Composer
On this page you can find all versions of the php package zaius/zaius-magento-2. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zaius/zaius-magento-2
More information about zaius/zaius-magento-2
Files in zaius/zaius-magento-2
Package zaius-magento-2
Short Description The Zaius Engage Connector for Magento 2.
License MIT
Informations about the package zaius-magento-2
Zaius Magento 2 Connector
Integrate Zaius directly into your Magento instance using the Zaius Magento 2 Connector.
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Prerequisites
- Magento 2 "^2.2.5"
- PHP 5 >= 5.5.0, PHP 7
- Composer
Installing
Composer
By far the quickest and easiest way to install and maintain the Zaius connector is to use Composer.
- Require the Zaius Magento 2 package.
- Install the Zaius Magento 2 package.
- Finally, make sure the package is up-to-date.
Note for users who have installed previous RC versions
Now that stable releases are available, you may remove these previously-required lines from your
<MAGENTO_ROOT>/composer.json
file:
"minimum-stability" "RC",
"prefer-stable": true
- Add the required packages.
Alternative install: ZIP
- Download the Zaius Magento 2 module archive from Git: https://github.com/ZaiusInc/zaius-magento-2/archive/master.zip
- Extract the contents of the ZIP file to
/app/code/Zaius/Engage/ .
The Zaius PHP SDK is required, and must be installed separately if you've chosen to install via ZIP archive.
- Add the required packages:
Verify & Enable the Zaius Magento 2 Connector
- To verify that the extension installed properly, run the following command:
By default, the extension is probably disabled, and you will see output like this:
- Enable the extension and clear static view files:
You should see the following output:
-
Register the extension:
-
Recompile your Magento project:
- Verify that the extension is enabled:
You should see output verifying that the extension is no longer disabled:
- Clean the cache:
API Setup
In order to support the coupon code functionality Zaius utilizes, and to enable the Zaius support team to most effectively troubleshoot any issues, we require an API user be created with access to the Zaius APIs.
Create an appropriate role
In the Magento admin panel, navigate to System > User Roles (under the "Permissions" heading).
- Click "Add New Role".
- Enter the name "Zaius API".
- Click "Role Resources".
- Select the "Zaius Engage API" resource.
- Click "Save Role".
Create the API user
Still in the Magento admin panel, navigate to System > All Users (under the "Permissions" heading).
- Click "Add New User".
- Enter the User Name "zaius_api"
- Enter any details you like (Zaius recommends a maintainer's details) for name and email.
- Create a new password for the user (and make sure to save this in a secure password manager or similar key store).
- Click "User Role".
- Select the "Zaius API" role you created in the previous section.
- Click "Save User.
Save the API User in Zaius
Navigate to the Zaius integration (Settings (cogwheel) > Integrations) page, making sure you're editing the Zaius account this Magento store will be integrating with (Test or Prod, for the appropriate brand if relevant).
- Click the "Magento" card.
- Select "Magento 2" from the Version dropdown.
- Enter "zaius_api" as the Username.
- Enter the password you configured in the previous section.
- Enter the base Magento API URL, which usually matches your website's root URL.
- Click Save.
Zaius does not recommend clicking "Start Bulk Import" at this time. Please consult with your Customer Success Manager to coordinate the bulk import process.
Configuration
After installing the module and setting up the API user, all configuration is done via Stores >> Configuration >> Zaius >> Engage.
Zaius Engage Status
Enabled: Enable or disable the Zaius Engage Connector functionality.
Version: The currently installed version of the Zaius Engage Connector.
Composer Installed?: Checks if Composer is installed. Will ALWAYS be installed for Magento 2 projects.
SDK Installed?: Checks if the Zaius PHP SDK is installed. The SDK is REQUIRED by the Zaius Engage Connector, and installed automatically with Composer.
Zaius Tracker ID: Configuration field for the Zaius client Tracker ID. Found at API Management in the Zaius client Account.
Zaius Private API Key: Configuration field for the Zaius Private API Key. Found at API Management in the Zaius client Account. This is REQUIRED for [Batch Updates](Batch Updates) to work.
Amazon S3
Enable Amazon S3: Enable or disable the Amazon S3 Upload functionality.
Amazon S3 Key: Configuration field for the Zaius Client Amazon S3 Key. Found At Integrations in the Zaius Client Account. This is REQUIRED if Amazon S3 functionality is enabled.
Amazon S3 Secret: Configuration field for the Zaius Client Amazon S3 Secret. Found At Integrations in the Zaius Client Account. This is REQUIRED if Amazon S3 functionality is enabled.
Settings
Global ID Prefix: If provided, this prefix will be added to all product, customer, and order IDs sent from the corresponding store view. This is rarely needed, but may be helpful in complicated multi-store configurations. Typically your Zaius CSM will recommend this if your setup will benefit.
Zaius Newsletter List ID: When an end user subscribes to, or unsubscribes from, the Magento newsletter on this store view, the subscription will be synced with the provided list within Zaius.
Collect All Product Attributes: Enable or disable the functionality to collect all product attributes defined in the default attribute set, or only the Zaius-curated minimum. If your product feed has fields which are not yet captured in Zaius, you will likely need to turn this on, ensure that field is added to the default attribute set, and create a corresponding custom field in Zaius. For more detail, see "Collecting additional product attributes"
Timeout: Specify a number of seconds to wait before timing out the connection to Zaius.
Schema Update
Update Schema: When this button is clicked, Magento will use the provided API keys (in the Zaius Engage Status section) to assess your objects and fields within Zaius, and will create any fields which are needed for the Magento integration's core functionality.
Zaius Localizations
Enabled?: Enable or disable the Zaius Localizations functionality. With Zaius Localizations functionality enabled, localized store_view data will be sent to Zaius. Please consult with your Zaius CSM before enabling.
Collecting additional product attributes
The “Collect all product attributes” feature is limited to collecting all attributes in the “default” attribute set. This attribute set is user-configurable and therefore can include custom attributes, but if you are using multiple distinct attribute sets AND some products are still on the default, you might run into limitations. Specifically, if a custom attribute is a required field, but only for products which use a particular attribute set, adding this attribute to the default set would cause products which don’t have their own attribute set to require an irrelevant field.
If an attribute is required and cannot be added to the default attribute set, the missing attributes can be exported and uploaded as a separate CSV.
If the “default” attribute set is NOT applied to any products, or if the desired attributes are required values, simply add the missing attributes to the default attribute set and enable "Colled all product attributes.
Adjusting the Default Atrribute Set
To add attributes to the Default attribute set, the user will need to log into the Magento admin. From here they should:
- Navigate to Stores > (Attributes section) Attribute Set
- Click the “Default” set (you can use the search bar to find it if needed)
- (Recommended, not required): in the middle “Groups” section, click “Add New” and create a new group called “Zaius Field Import”. This will allow you to group the attributes under a separate heading in the catalog which will be unexpanded and nonintrusive.
- In the right-hand “Unassigned Attributes” section, click and drag any missing attributes into the middle “Groups” section. If you did step 3, add the missing attribute to the “Zaius Field Import” group; otherwise, wherever makes sense to you.
- Click Save. The following steps are not strictly required, but seemed to refresh the connector’s view of the product feed in some environments:
- Navigate to Stores > (Attributes section) Product
- Find and click on any one of the previously missing attributes.
- Click the “Save Attribute” button (you need not make any changes).
Finally, ask Zaius Support to reimport your product feed to ensure the new fields are populated for all existing products.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Release Notes
1.0.4 - 2019-11-27: Stabilization fix
- Reverted base back to 1.0.0
- Re-applied "Configurable products now report their own product ID as their parent_product_id (smoother use of parent_product fields in Zaius)."
- Re-applied "Users reported incorrect references when multiple items were in a minicart and one of the items was updated. This has been addressed."
- Fixed edge cases caused by Zaius SDK not loading: Add-to-carts and other cart updates no longer at risk of errors when Zaius cookies are undefined
- Added better error handling for serverside errors
1.0.3 UNSTABLE - 2019-11-22 Hotfix: Respect tracking IDs
- This version should not be installed due to problems identified post-release.
1.0.2 UNSTABLE - 2019-11-21 Hotfix: Remove checkout dependency on SDK
- This version should not be installed due to problems identified post-release.
1.0.1 UNSTABLE - 2019-11-19 Bugfix: Parent Products and Minicarts
- This version should not be installed due to problems identified post-release.
- Configurable products now report their own product ID as their parent_product_id (smoother use of parent_product fields in Zaius).
- Users reported incorrect references when multiple items were in a minicart and one of the items was updated. This has been addressed.
1.0.0 - 2019-07-23 - Initial Release
License
This project is licensed under the MIT License - see the LICENSE file for details.