SOLVED: Wix with PHP

Hi there, I’m new to Wix.
I used to make website using PHP and some basic javascript. Can Wix be using together with PHP? If yes, please let me know how can I do it ?
Currently I am making a web site that is for bakery. There are online orders for this shop but they do not need to handle the payment part. We just takes order and email the request to a certain email address. It will only be cash upon delivery. Can that be done using wix ?

Please help.
Thank you
Jared

1 Like

Hi Jared,

Welcome to Wix Code.

Wix websites do not support PHP, only Wix Code.

WixCode understands all of Javascript, except for anything that accesses the DOM. This keeps the user from inadvertently “breaking” something. I myself tried to hack things from the code, from an iFrame, and in my dreams, but WixCode wasn’t having any of it.

Accessing document elements such as div, span, button, etc is off-limits. The way to access elements on the page is only through $w. One small exception is the $w.HtmlComponent (which is based on an iFrame). This element was designed to contain vanilla HTML and it works just fine. You just can’t try to trick it by using parent, window, top, etc.

You should be able to build the site that you want with Wix Code. I would recommend starting with Wix Code Basics . You can also play with the Examples to give you a hands-on feel for how Wix Code works.

You may also want to check out the WixArena - it’s a hub where you can look for Wix Code (and other) experts for hire.

Have fun and good luck,

Yisrael