ammazza/webar

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

Virtual Try on Jewellery for laravel e-commerce solutions

v1.0.1 2023-05-09 12:40 UTC

This package is not auto-updated.

Last update: 2024-04-23 14:36:14 UTC


README

Logo

Introduction

  • AMMAZZA is an out-of-box multi-utility product in the market of jewellery with the fusion of AR (Augmented Reality) + AI (Artificial Intelligence) + BI (Business Intelligence).
  • By integrating Virtual Try-On feature, customers can try jewellery from anywhere anytime.
  • Virtual Try-On is available for Facial and Hand jewelleries like Earrings, Necklace, Sets, Rings, Bracelets.

Prerequisites

ammazza-webAR-laravel

Incorporate the ammazza-webar-laravel plugin in any of the laravel project

Step 1 : Install package using below command in project root terminal

composer require ammazza/webar

Step 2 : Publish assets for ammaza plugin by running below command

php artisan vendor:publish --tag=public --force

Step 3 : Add client id in your project .env file (Refer Prerequisites to get client id)

AMMAZZA_CLINET_ID=YourClientId

Don't forget to run clear cache after changes in env file

php artisan optimize:clear

Step 4: Now add ammaza script and style to your view/blade file where you want to add tryon button

<link rel="stylesheet" href="{{ asset('css/ammaza-tryon-style.css') }} "/>
<script src="{{ asset('js/ammaza-tryon-scripts.js') }} "></script>

Step 5: Add try on button using below code in view or controller

{!! app('trynow')::getTryOn()!!}

By default it will load all the products for the client id. If you want to show custom products pass product id as below

{!! app('trynow')::getTryOn("YourProductId")!!}