DEV Community

a.infosecflavour
a.infosecflavour

Posted on

5 3 3 3 3

Foodz

This is a submission for the Wix Studio Challenge .

What I Built

Are you hungry? Up to try something new? Luxembourgish and Danish dishes have your back...I mean stomach! Now, a round of applause for Foodz!

Demo

Inside Foodz: https://gowonder1.wixstudio.io/foodz

Fine, I'll be a spoiler.

home

delivery

Development Journey

I used the onClick Javascript function to redirect to Online Order page (seen as "Delivery"). :

import wixLocation from 'wix-location'; 
import wixWindow from 'wix-window';



$w.onReady(function () {
    $w("#box4").onClick(() => {
        wixLocation.to("/online-ordering"); 
    });
}); 
Enter fullscreen mode Exit fullscreen mode

The almost same effect can be achieved by creating a link without using any code. This is how I implemented the redirect to Surprise box page. I mentioned almost, because if one does not use the JavaScript code above, the text (i.e Surprise box) is not clickable. Only the box itself is linked to the redirect page.

Wix eCommerce API and Wix Stores are at the center of the website. Wix Restaurant Orders and Wix Stores are the applications used from App Market.

I invite you to have a taste from these delicious cuisines. 🍽️

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more