I use GOS’s template to make a dealer’s page.
but my site can’t run it well. showed the error code Wix code SDK error: The “onItemReady” function of “repeater1” threw the following error: Cannot read property ‘name’ of undefined Delear Products Line 16.
Please help me to solve this.
Explain what you are trying to do, what works, and what doesn’t. Also, add any code in a code block as stated in the Forum Guidelines .
I am trying a dealer page which has the wholesale price. So i copy GOS’s Template: https://www.grampsworkbench.com/Examples/Wholesale
I think i have copied 100% all this template and add an new database wholesale. But it cannot show correctly, and showed the error code like i just posted.
Have you tried running the example first without any changes? Once you get the original example working, then you can start making changes for your own use.
You will need to make sure that your database collection name and field names are the same as in the example, or you will need to change the code in the example to suit your database collection.
I have tried running the example with our any change. And also check all my database collection name and field names are the same as the example. I will check again.
By the way, do you know other way to set the wholesale price in the store page? Let the dealer see the wholesale price and the retail customer see the retail price?
The GOS’s template is just make a normal page to show the wholesale price and retail price of each products, but it can’t have the same function as store page to make a purchase order.
Thanks for your support.
I tried out the example myself and it works fine. BTW - This is actually an example that I wrote a while ago as a workaround.
You can try this workaround to create restricted page that you can use to sell wholesale.
If you need further clarification, I would recommend contacting Wix Customer Care .
i have already tried to create restricted page, but there is still a problem. As you know the store page model is already set you can’t change the code. even if i create the restricted page but in the main page “shop” always show the all products include the retail price products and the wholesale price products. So I try this template.
Anyway, thanks for your support.