DEV Community

Cover image for Join us for the Wix Studio Challenge with Special Guest Judge Ania Kubów: $3,000 in Prizes!

Join us for the Wix Studio Challenge with Special Guest Judge Ania Kubów: $3,000 in Prizes!

dev.to staff on June 26, 2024

We are so excited to announce our first partnered challenge with Wix. Running through July 07 July 14, the Wix Studio Challenge provides an opport...
Collapse
 
phalkmin profile image
Paulo Henrique

Ania will be a judge????

Image description

(sorry...)

Collapse
 
karandpr profile image
Karan Gandhi

Image description

Collapse
 
jennavisions profile image
Jenna

Waku Waku! 😄

I thought of that too. You beat me to the comment. 🤣

I see some Spy x Family fans here. 🕵️‍♂️

Collapse
 
your-ehsan profile image
EHSAN.

Ania 🤣

Collapse
 
jess profile image
Jess Lee

Good luck to everyone participating!!

Collapse
 
anthonywix profile image
Anthony L

Looking forward to seeing what people come up with!!

Collapse
 
dailydev profile image
Aditya Gupta

Will there be 3 winners like previous challenges or only 1 winner for this project because having only 1 winner doesn't seem fair.. 🙏

Collapse
 
jess profile image
Jess Lee

@dailydev there will only be one winner for this Wix Challenge 😉

Collapse
 
isaiahwp profile image
Isaiah

Image description

Collapse
 
dailydev profile image
Aditya Gupta

ok :) Thanks for clarifying!

Collapse
 
dailydev profile image
Aditya Gupta • Edited

Hey @anthonywix ,

I'm facing an issue with my Wix custom cart implementation. Specifically, I'm getting the error:
(0 , backend_cart_web_js_WEBPACK_IMPORTED_MODULE_0_.getCart) is not a function
this is my code->
Backend (cart.web.js):

import { currentCart } from "wix-ecom-backend";

export async function getCart() {
  try {
      const myCurrentCart = await currentCart.getCurrentCart();
      console.log("Success! Retrieved current cart:", myCurrentCart);
      return myCurrentCart;
    } catch (error) {
      console.error(error);

    }
};
Enter fullscreen mode Exit fullscreen mode

Frontend (CustomCart.jofsl.js):

import { getCart } from "backend/cart.web.js";
$w.onReady(function () {
populateCartItems();
});

async function populateCartItems(){
    const cart = await getCart();
    const {lineItems} = cart;

    $w("#lineItemsRepeater").onItemReady(($item,itemData) =>{
        $item("#productName").text = itemData.productName.original;
        $item("#image").src = itemData.image;
        $item("#price").text = itemData.price.formattedAmount;
    }
    )
    $w('#lineItemsRepeater').data = lineItems;
}

Enter fullscreen mode Exit fullscreen mode

Could you help me identify why getCart is not being recognized as a function? I also use wix AI assistant but nothing came up.

Collapse
 
anthonywix profile image
Anthony L

Functions exported in web modules need to be constructed with a call to webMethod. For example:

import { Permissions, webMethod } from "wix-web-module";

export const multiply = webMethod(
  Permissions.Anyone, 
  () => { 
    const test = "test";
    return test;
  }
);
Enter fullscreen mode Exit fullscreen mode

You can learn more about this here: dev.wix.com/docs/develop-websites/...

Collapse
 
dailydev profile image
Aditya Gupta

Ohh Thanks a lot.. :) resolved this error but got a new one will try to fix this now 😂

Collapse
 
lensco825 profile image
Lens

Looks like a great way to practice web design and JS!

Collapse
 
mahalobrownie profile image
Mahalo Brownie

This is so awesome. Thank you for that Wix!

Collapse
 
dailydev profile image
Aditya Gupta

Hi @anthonywix @jess I had a doubt regarding wix stores I was using it to display data onto my custom product page using its store->Product collection and I am not using its templates so do we have to build our own collection or can we use its prexisting collection for contest.

Collapse
 
anthonywix profile image
Anthony L • Edited

Hey @dailydev you can still use Wix Apps and all their collections and pre-configuration. By not being able to use templates we mean only the visual design templates presented when you first start a new site.

Collapse
 
dailydev profile image
Aditya Gupta

Got it Thanks ! for solving doubt In fact I am using the same approach you mentioned :)

Collapse
 
sarahokolo profile image
sahra 💫

Sounds interesting 🌟. Good luck to all the participants 💪💥

Collapse
 
dailydev profile image
Aditya Gupta • Edited

Heyy @anthonywix I was kinda setting up Reset Password Feature for my Login Form using this link But this only works for site members Is there any other way in using velo through which I can reset password if I am non member ?

Collapse
 
anthonywix profile image
Anthony L

If a user is a non-member then they wouldn't have an account to reset a password for. Perhaps direct them to a signup page instead?

The wix-members-backend API will contain all the functionality for managing user logins including the ability to send them a set password link although this will only work on members. dev.wix.com/docs/velo/api-referenc...

You're free to use the Wix Members app on your website.

Collapse
 
dailydev profile image
Aditya Gupta

Yeah I spelled it wrong Instead I wanted to send the email to reset password for a User who forgot his password for login and he is already a site member as he had already registered in the site and it stores its password. Ig there is no api to implement this feature for now still Thanks for the help ;) !

Thread Thread
 
anthonywix profile image
Anthony L • Edited

That is what the sendSetPasswordEmail() function does. It'll send an email like this:
Image description

Thread Thread
 
dailydev profile image
Aditya Gupta

ok 👍

Collapse
 
amandamartindev profile image
Amanda

Good luck everyone!!

Collapse
 
deecreativewriter profile image
David Adeaga

This is interesting

Collapse
 
youngfra profile image
Fraser Young

Looks like fun

Collapse
 
everlygif profile image
Everly Precia Suresh

Are we allowed to use wix templates? or do we have to build everything from scratch

Collapse
 
anthonywix profile image
Anthony L • Edited

Hey @everlygif great question! Everything should be built from scratch for this competition.

Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
thabo profile image
Thabo Nkejane

Nooice

Collapse
 
katorymnddev profile image
katorymnddev

interesting

Collapse
 
paul_freeman profile image
Paul

@anthonywix I tried the Velo API and API seems to be limiting functionalities. There is no option to select elements by className or addEventListners? A lot of existing JS functions seems to have been removed making it harder to develop the unique experience.

Is there something I am missing?

Collapse
 
anthonywix profile image
Anthony L

Correct those options do not currently exist on the platform. Development must be done within the APIs that Velo exposes.

Collapse
 
abhinandan__wadhwa profile image
Abhinandan Wadhwa

Very excited for this one! 💖

Collapse
 
jennavisions profile image
Jenna

Good luck to everyone participating in the Wix challenge! 🍀

Collapse
 
roger_hunt_ideatrek profile image
Roger Hunt

So do we post our completed project here?

Collapse
 
jess profile image
Jess Lee

You'll need to submit your project as a post with the template above, which will ask for a demo link.

Collapse
 
devarshishimpi profile image
Devarshi Shimpi

Excited!

Collapse
 
randy_antony profile image
randy antony

Thanks

Collapse
 
chintanonweb profile image
chintanonweb

@anthonywix Can we use the app manager wix stores or need to create everything our own?
Image description

Collapse
 
anthonywix profile image
Anthony L

You can use any existing apps in the App Market that you want including Wix Stores.

Collapse
 
jasgiigli profile image
JasGiigli

Image descriptionAwesome That great for US ....Thanks for all.!