Hi. I have been using this code for a while and not ir suddenly has stopped with an error.
$w("#productPage1").getProduct()getProduct
.then((product) => {
let ProdNam = "";
ProdNam = product.brand
console.log("Product name is: ", ProdNam);
Wix is now telling me that the .then is nolonger valid. it comes up with the error
Property ‘then’ does not exist in ‘Productv1 and Productv3’
This is a total disaster for my site!!!
Researching I can find that I can use the
import { wixStoresBackend } from "wix-stores-backend";
But it complains that I need to put this in a backend module and duplicate all of the calls so the Front End can use it..
Have I totally lost the plot, and where can I find simple examples on what V3 expects.
There must be a simpler way to access the Product from the Front system..
I am not a novice coder.. I have 50 years experience. But some working samples and clear defintions of what is Front and what is Back in the Wix examples would help greatly
Many thanks
Dave