feat: add previous configuration handling for user selections in quotes
- Implemented session storage management for the last configuration choices made by the user. - Added functionality to prompt users when changing models to retain their previous selections. - Introduced methods to apply previous choices to the newly loaded model, including finishes, handles, glass types, and options. - Enhanced user experience by ensuring selections are automatically applied where applicable.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Support\Configuratore;
|
||||
|
||||
/**
|
||||
* URL pubblici delle immagini del configuratore. Passano dalla rotta API `media` (e non
|
||||
* da /storage) perché le texture caricate da Three.js richiedono gli header CORS.
|
||||
*/
|
||||
class Media
|
||||
{
|
||||
/** Cartelle del disco public servite dalla rotta media. */
|
||||
public const CARTELLE = ['configuratore/', 'modelli/'];
|
||||
|
||||
public static function url(?string $percorso): ?string
|
||||
{
|
||||
return $percorso ? route('media', ['percorso' => $percorso]) : null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user