Software made for Wix-Code. Allows site owners to add coupons with an expiration site directly to their website.
These instructions will help get you get a coupon uploading system set up on Wix.
Make sure you have a Wix account and a Wix website that has the Unlimited plan. You will need to have developer tools turned on for this to work.
In the top bar on the site editor, click on Code -> Developer Tools.
Give the example
And repeat
until finished
Explain how to run the automated tests for this system
Explain what these tests test and why
Give an example
Explain what these tests test and why
Give an example
We will cover the design and code of this page later. For now, you just need to create the page.
If a page doesn’t exist yet for coupons and promotions. Create new page for coupons - title “Coupons”
Create a lightbox using the side toolbar. Use the template:
Promo 20% off
Title the lightbox:
Success
Change main text to “Upload Successful!”, change the colors of the text and overlay background to fit your brand.
Rename the existing button to "Close", and link it to the Coupons/Promotions page.
Change settings of lightbox so it does NOT automatically appear on page load.
We will cover the design and code of this page later. For now, you just need to create the page.
Create new page called “Coupon Upload”, and make it password protected - set the password to a memorable password. Also, set the page to “Hidden” and disable it from showing up in SEO.
We will cover the design and code of this page later. For now, you just need to create the page.
Copy the code exactly from Coupons and paste it in SITE code for the page "Coupons"
We will cover the design and code of this page later. For now, you just need to create the page.
Copy the code exactly from Coupon-Upload and paste it in SITE code for the page "Coupon Upload"
Save your code - and then publish it. :)
- Wix Code - The framework used
- Javascript - Programming Language
- Ben St. John - Initial work - Authoritek
This project is licensed under the MIT License - see the LICENSE.md file for details
- Hat tip to anyone whose code was used
- Inspiration
- etc