Yes desperately. I recently tried to do this
import { session } from ‘wix-storage’;
import wixLocation from ‘wix-location’;
$w.onReady( function () {
$w(“#addButton”).onClick((event) => {
$w(“#lightingdata”).onReady( () => {
$w(“#lightingdata”).getItems(0,1000)
.then((result) => {
let theProduct = result._id; //This line gets the ID of the current product
session.setItem(“result”, theProduct); //This line saved the product ID into session storage
})
.then(() => {
wixLocation.to(“/quote”); //This line redirects you to the page with the request form
})
.catch((error) => {
console.log(error);
});
});
});
but didn’t work