I have been trying to put in place the ability to have a “Request Quote” function added for a given product in my Wix Store. Followed instruction video and sets of code from the Code Queen’s YouTube article.
Almost have it completed except when this part of the code runs I get the above error, it comes from the import wixCrm from ‘wix-crm-backend’ ; line.
When I comment out the “problem line” things run ok except I end up not getting the desired Notifications.
Help! Thanks in advance.
import { sendInterest } from ‘backend/notifications’ ;
import wixCrm from ‘wix-crm-backend’ ; ← the problem line.
import { session } from ‘wix-storage’ ;
import wixData from ‘wix-data’ ;
Much thanks for the quick reply. I’m new here and not going to be doing any coding of my own. So was counting on the code that came with the Code Queen’s “solution”. I’ll try tour suggestion about getting the wixcrm from wix-crm.
Just to add to J.D. post above, please always add a link to any example used so that we can check it ourselves or if Nayeli sees this herself, she could guide you correctly as well.
Thanks GOS and JD. I made JD’s adjustment and do not get the error any more.
The links you gave above are what I was working with. The error I got was in the code for the “Quote Page”. I do now see Notifications but when I click to see one, it doesn’t take me to the info I expect to see as was shown in the Tutorial Video.
The Video goes very fast to explain how to deal with the “Backed Code”, but me being new to this I have no clue what to put for the URL in this line so I just left it as was given in the article. I’m hoping to see the info captured from the request for quote, see the product info, email, etc. like I can see in my database (in your example the database is called “request”). Here is the link to the “backend code” as provided in the tutorial.
Ok, scary! I figured it out, just went to my Dashboard, then to my Database Collection and copied the URL when I got there. Works like a champ! Much thanks to all.