top of page
To see this working, head to your live site.
The Wix Wiz Community Forum
Welcome! Have a look around and join the discussions.
Velo (Wix Code)
Engage in discussions about Wix Velo on our Q&A forum. Ask tutorial-related queries, seek advice, and share your project
97Wix Classic Editor
Dive into Wix Classic Editor discussions on our Q&A forum. Ask questions, seek advice, and share your website projects.
25Editor X
Dive into Wix Editor X discussions on our Q&A forum. Ask questions, seek advice, and share your website projects.
6Wix Studio
Dive into the new Wix Studio discussions on our Q&A forum. Ask questions, seek advice, and share your website projects.
7Courses
Have questions about Wix Wiz courses? Ask away in our forum! Get the answers you need to enhance your learning.
3Apps & Templates
This is a channel dedicated to questions about apps and templates developed by the Wix Wiz Team.
5
New Posts
- Wix Classic EditorI have a custom Block/app for my site and can see and add it to a Page. But I cannot see how to add it to a Blog Post. The idea is build a Block that allows my Collaborator to add them to blog post and take out the need for them to mess about with embed codes that they consistently mess up or forget how to edit them to show new content etc. Is it actually possible to add a custom Block to a Blog post?. Cheers
- Velo (Wix Code)import * as ecomValidations from 'interfaces-ecommerce-v1-validations-provider'; const MIN_AMOUNT = 2500; // Set the minimum amount required export const getValidationViolations = async (options, context) => { const { lineItems } = options.validationInfo; const violations = []; console.log('Line Items:', lineItems); // Log the line items to see their structure // Calculate total cart value by summing the price of each line item const totalAmount = lineItems.reduce((sum, item) => { return sum + (item.price * item.quantity); }, 0); console.log('Total Amount:', totalAmount); // Log the total amount // Check if the total amount is below the minimum required amount if (totalAmount < MIN_AMOUNT) { const amountTooLowViolation = { severity: "ERROR", target: { other: { name: "MIN_AMOUNT_VIOLATION" // Unique identifier for the violation } }, description: `Your cart total must be at least ₱${MIN_AMOUNT}.` // Message for the user }; violations.push(amountTooLowViolation); // Push violation if total is below minimum } console.log('Violations:', violations); // Log the violations array return { violations }; // Return any validation violations found }; is this the correct way ? of having a min amount validation?
- Velo (Wix Code)Hi, I'm not an engineer (just a UX designer trying to do this on my own...) and I'm using this video {https://www.youtube.com/watch?v=1ICaE9IR9rQ&t=1155s} to set up the wix google sheets integration. I got up to 19:30 in the video doing everything exactly as was specified, but when I try to run the function I get the following error. Not sure what it means and how to fix it, and chatGPT basically told me this shouldn't be an issue if I'm using Velo (which I am). I would be so grateful for some help! Thanks you! Error loading web module backend/google-sheets.jsw: Cannot find module 'googleapis' Require stack: - /user-code/node_modules/@velo/google-sheets-integration-backend/backend/googlesheet.js - /user-code/node_modules/@velo/google-sheets-integration-backend/index.js - /user-code/backend/google-sheets.jsw - /user-code/stubmodule-that-does-the-require.js - /cloud-runtime-code/node_modules/scoped-require/index.js - /cloud-runtime-code/packages/elementory/cloud-runtime/factories.js - /cloud-runtime-code/packages/elementory/cloud-runtime/create-app.js - /cloud-runtime-code/packages/elementory/cloud-runtime/cloud-grid-runner.js
bottom of page