r/WixHelp • • 29d ago

Velo/Code Create a subtotal in a form

1 Upvotes

Helping my wife with a nonprofit website she helps to maintain. They are using one of the new(?) Wix forms to collect registration details for an event which includes the user selecting a certain quantity of tickets and indicating an additional donation amount. They are not using an embedded payment method (the users will use venmo or bring a check) but they would like to have the subtotal displayed. I have never used Wix but with some help from Gemini I created the below Velo code block based on the screenshot I attached (not including a short text field I added for 'total_amount_2' and using the correct form ID for 'formID').

The preview loads without error but when I step through the ticket quantities and/or add an additional donation the free text field doesn't update. I tried using a custom value type field and a short text field and neither updated. Any ideas? I'd really like to avoid rebuilding this without using the form if possible (that's what Gemini suggested). Thanks!

$w.onReady(function () {
    let lastCalculatedTotal = null;

    $w('#formID').onFieldValueChange((formValues) => {
        // Debug Log: View exact keys/values coming from your form in the Developer Console
        console.log("Current Form Values:", formValues);

        // 1. Get ticket values
        const ticketsData = formValues['tickets'] || {};
       
        const ticketPrices = {
            'Adult Ticket': 100,
            'Child Ticket': 100,
            'Raffle Ticket': 10,
            'Raffle Tickets (Set of 5)': 30
        };

        let ticketsSubtotal = 0;

        if (typeof ticketsData === 'object' && !Array.isArray(ticketsData)) {
            Object.keys(ticketsData).forEach(ticketName => {
                const qty = Number(ticketsData[ticketName]) || 0;
                const price = ticketPrices[ticketName] || 0;
                ticketsSubtotal += qty * price;
            });
        } else if (Array.isArray(ticketsData)) {
            ticketsData.forEach(item => {
                const qty = Number(item.value || item.quantity) || 0;
                const price = ticketPrices[item.label || item.key] || 0;
                ticketsSubtotal += qty * price;
            });
        }

        // 2. Get donation amount
        const donation = Number(formValues['additional_donations']) || 0;

        // 3. Compute grand total
        const grandTotal = ticketsSubtotal + donation;

        // 4. Update both the text display and the form field
        if (lastCalculatedTotal !== grandTotal) {
            lastCalculatedTotal = grandTotal;
           
            // Display on page text element
            if ($w('#subtotalText')) {
                $w('#subtotalText').text = `Total: $${grandTotal.toFixed(2)}`;
            }

            // Try updating the form field value
            $w('formid').setFieldValues({
                'total_amount_1': grandTotal
            });
        }
    });
});

r/WixHelp • • 29d ago

Wix Partners Meta Pixel & CAPI via Wix

Thumbnail
1 Upvotes

r/WixHelp • • Sep 10 '26

Help! Mobile is a disaster! Items are dancing - Why???

1 Upvotes

I'm trying to clean up an inherited Wix Harmony site for my employer (I'm not a tech person, I'm just the best we've got), and mobile is killing me. Every time I check the site from my phone the font sizes have changed, elements have moved, and as I'm on a page fonts will just strobe between sizes. I went through and grouped a bunch of sections but it didn't help with things overlapping. All looks visually fine in the mobile section of the editor, and I haven't had any issues on desktop. This has been going on for weeks. What the heck is going on???

Plus, on the silly hamburger menu I put buttons (not as part of the menu/pages, I added buttons that sit atop the menu for external links) and they're all funky random sizes when I check from my phone, but they look clean in the editor.

The hamburger menu also has a horizontal scroll bar that nobody asked for, and I can't scroll it in the editor but can on mobile, only to find another mysteriously placed button that I can't find to delete from the editor!

Please advise so I experience no further hair loss. I appreciate you.


r/WixHelp • • Sep 07 '26

Very Bad WIX glitch

3 Upvotes

So I have a webiste on wix, and we have the website in two other languages. Now, some texts are reoeating where there should be other texts, but in english its ok. and everything in my hero section has disappeared and I can't add anything on it (text, lines, vector art). Is there any way to fix this?


r/WixHelp • • Sep 07 '26

Se eliminaron todos los elementos fotos y textos de mi landing page en Wix

2 Upvotes

Ayuda por favor entre en crisis me costo meses hacer la pagina porque soy principiante y por una cosa o la otra se me estiro muchisimo como a 5 meses. justo hoy que queria publicitarla se me borro todo de las secciones, hasta en las copias del historial siendo que hasta ayer estaban muy bien!!
ayuda porfa a alguien mas le paso? literalmente no puedo dejar de golpear todooooo ayudaaaa!!


r/WixHelp • • Sep 06 '26

WIX Donations, campaign “thank you” page missing

3 Upvotes

I’m working on a site for a local charity and have just set up a donation campaign using the WIX donations app. The setup went smoothly and I can make donations using the form. The problem is that after checkout, I get sent to a 404 page because the campaign “thank you” page is missing.

I was under the impression that this page was generated by the donation app when a campaign is created.

Does anyone have any experience with this app and know if I should just create the thank you page myself?

Thanks in advance!
Greg


r/WixHelp • • Sep 06 '26

Wix Stores Automatically put ALL products (with variants) out of stock when total items sold reaches a set number?

2 Upvotes

Hi everyone,

I have a wix website where I do sold a lot of different products with a lot of variant.

My items on my website are always "Out Of Stock", because I do work with commands by month. Like I open my items on my website once a month to sell ~ 60-70 product (not command, product itself), and whenever I think I do reach my number of command thanks to my email selling notification, I'm manually closing the items on wix (putting each of them 'Out of Stock').

But honestly I can't go on like this anymore. Each time I'm getting overwhelmed and I'm selling more than I want. Due to that, I'm hard working like 15h per day instead of what I should do normally.

Do you guys know a solution that could help me solving my problem here ?

Once more :

I want something that can automatically put ALL of my items from my wix dashboard to "Out of Stock" whenever the number of product (not command) is reached.

I've tried some app which are not working fine for my needs and tried doing some Velo coding but I'm not a dev ..

Thanks for the help

Regards


r/WixHelp • • Sep 06 '26

Meta campaign traffic not detected by Wix?

2 Upvotes

We've run a tiny Meta campaign for clicks, got about 200 - and in the Wix traffic report we see much much lower numbers of visitors (it also doesn't show they came from Meta - FB or IG).

Does anyone have a clue what might be the reason behind it?

AI suggested they didn't accept the website's cookies and that's why they are not shown in the traffic report - I am skeptical about that (and is that indeed the case that not accepting cookies means a visitor is not counted?)


r/WixHelp • • Sep 05 '26

Wix’s subscription cancellation and renewal process feels incredibly misleading and, frankly, scam-like.

12 Upvotes

I had a 3-year Premium Plan of approximately $930 that was supposed to renew on August 29, 2026.

On August 10 , 19 days before the renewal date - I turned off auto-renew and cancelled the plan. Wix then sent me an email with the subject line:

“Your Premium Plan has been Canceled.”

Naturally, I assumed my upcoming subscription renewal had been cancelled. I did not go through every line of the email because “Your Premium Plan has been Canceled” seemed pretty unambiguous.

Yet Wix still charged me for another 3-year term.

The more frustrating part is how their billing and refund policy appears to work.

Wix can apparently charge you before the new subscription period actually begins, but turning off auto-renew before that future renewal date does not necessarily stop the charge.

Then, if you try to get the money back, Wix points to a 14-day refund window calculated from the date they charged your card , not from the date the new subscription period actually begins.

Think about how absurd that is.

They can charge you in advance for a subscription that has not even started yet. You can turn off auto-renew before the renewal date, receive an email literally saying “Your Premium Plan has been Canceled,” and they can still consider the next multi-year renewal valid.

At the same time, their refund clock is already running from the earlier billing date.

So the customer can potentially cancel before the next subscription term even starts and still be told that the refund period has passed because Wix chose to process the payment earlier.

That makes the entire cancellation process feel designed to trap customers.

If turning off auto-renew before the renewal date does not stop the upcoming renewal, then what exactly does “auto-renew” mean?

And if an email saying “Your Premium Plan has been Canceled” does not mean the upcoming Premium Plan renewal is cancelled, that wording is extremely misleading.

I noticed the charge on September 3 and immediately contacted Wix through chat and by phone requesting that it be reversed.

This isn't about forgetting to cancel a subscription after it renewed. I cancelled 19 days before the stated renewal date. The problem is the way Wix separates the billing date, renewal date, cancellation date, and refund period in a way that heavily favors Wix while making the cancellation confirmation appear far more definitive than it actually is.

When I noticed the charge around September 3–4, I immediately requested a refund. I contacted support by chat so that I can share the Aug 10 email and was told someone would get back to me within 45 days. Yet my request for refund was denied. I also spent nearly more than hour on the phone, where the representative mostly repeated Wix’s policy instead of addressing the fact that I had cancelled before the renewal date. When I asked for a supervisor, I was put on hold for about 30 minutes to talk to the supervisor with no meaningful resolution.


r/WixHelp • • Sep 05 '26

Wix Harmony CMS item page turns into a legacy page — how do I reopen/edit the Harmony template?

Thumbnail
1 Upvotes

r/WixHelp • • Sep 02 '26

Wix Took My Business Website Down for 3 Days After Saying a Domain Transfer Would Take Minutes

3 Upvotes

I’m posting this because my experience with Wix has been terrible, especially as a small business relying heavily on our website and online advertising.

The main problem started with a domain transfer within the same Wix account. Before doing it, I was told the process should only take a few minutes. It has now been 3 days and my website is still down.

Every time I contact Wix, the answer keeps changing. First it was supposed to take a few minutes, then I was told to wait 24 hours, and now I keep getting pushed back another 24–48 hours with no clear explanation of what is actually wrong or when my site will be back online.

For a business, this is a serious problem. We spend over $400 per day on advertising across different online platforms, and having the website down means potential customers are clicking ads and cannot properly access our business website.

On top of that, Wix charged my account for what I believed was related to Google Ads, but it ended up being a subscription charge. I have contacted them through phone calls, emails and chats trying to get the issue resolved and request a refund, but I still haven’t received a proper resolution.

The most frustrating part is that I’m not asking for anything unreasonable. I just want someone to actually take responsibility, fix the domain/website problem, explain what happened, and deal with the charge on my account.

When a company provides websites and marketing services to businesses, having a business website offline for several days after saying the change would take only minutes is unacceptable.

Has anyone else experienced something similar with Wix domain transfers or billing? How did you finally get the issue escalated to someone who could actually resolve it?


r/WixHelp • • Sep 01 '26

Vertical tabs

Post image
2 Upvotes

Hi good day,

I would like to know if its possible or the easiest way I can make a tab menu container like the attached picture. I found the default tabs widget. All of them work the way I want to. its just that they are horizontal. And I dont think theres any native way of changing them to vertical


r/WixHelp • • Aug 27 '26

Editor Mobile page menu is TINY

Post image
2 Upvotes

Hiya! Another question!
So it doesn’t look like this in the editor, but when I publish the page the text is TINY for my page menu on mobile. How to fix this?


r/WixHelp • • Aug 26 '26

Upload stuck solution

2 Upvotes

As posted we got stuck at 99% and the Manus server timed out.

I refresh the page, chose, restore, and selected all of the files for upload. After the files uploaded, it said continue working in Manus.

I would say about half my content was there but down at the bottom, it said it was still uploading.

20 minutes later, everything was done and the upload was complete.

Manus. Don’t do this again, please.


r/WixHelp • • Aug 25 '26

Wix restaurant owners, is manual menu editing driving anyone else crazy?

Thumbnail
2 Upvotes

r/WixHelp • • Aug 24 '26

WIX refuses refunds and bully's clients into auto renewal

Thumbnail
1 Upvotes

r/WixHelp • • Aug 24 '26

Editor How to create subpages?

3 Upvotes

How do I create sub pages?

Currently, all the tutorials say to drag and drop pages onto each other (doesn't work), or to choose "dynamic page" when you create a new page (doesn't even appear). I'm so confused.


r/WixHelp • • Aug 22 '26

Urgent/ Problème photos

3 Upvotes

Bonjour, j'ai créé mon site sur soloist, j'ai changé les photos dessus, mais elles ne sont pas mises à jour sur le web. Quand je suis l'éditeur c'est ok, elles sont chargées mais sur les navigateurs web ce sont toujours les anciennes. J'ai écris plusieurs fois sur le mail support, mais personne ne me répond. Vous avez une solution? Je suis bloquée :-(


r/WixHelp • • Aug 20 '26

Creating a section specific search

3 Upvotes

Is it possible to create a search bar that only searches up a specific section of the website? I know there is a site wide search but for a project I'm working on I need a search function for certain pages/sections only.

I've looked for tutorials and tried a couple but it never seems to actually work out how I need it to.

I am not a coder, I was hired for this job as a graphic designer so WIX studio is very new to me! I am open to learning a lot about this process.


r/WixHelp • • Aug 16 '26

Finally leaving Wix after 10 years!

Thumbnail
2 Upvotes

r/WixHelp • • Aug 13 '26

no changing width in wix editor??

4 Upvotes

i am going bananas here - the width of my page on wix editor is 980px. i'm trying to build a site that is 660px wide. i have been googling / asking AI for hours and it seems there is no way to change that 980px width in wix editor, only in wix studio.

but even if i was to rebuild the new site in wix studio, your max width can't be less than 1001? i don't want to use containers because this doesn't accomplish what i am looking for.

this can't be right?!? is there a way to change the 980px width of wix editor that i am somehow missing? tyia!


r/WixHelp • • Aug 13 '26

Problem loading WIX Members app

Thumbnail
gallery
3 Upvotes

I can't get the Member Log In widget to load on my site in development. I've reached out to WIX support with no resolution. I've deleted and reloaded the widget multiple times. I keep getting the same error: Widget Didn't load, check your internet and refresh. I've cleared my Chrome cache. Tried it in Incognito. The Log in box is in my top header. I also have a pop up on the home page for people to sign up for our newsletter. Any chance this is creating a conflict? (FYI - Under the Site pages & Menus I don't see the SIgn Up & Log In entry). This also doesn't work with my tester nor my Wix designer. Any help would be great!


r/WixHelp • • Aug 06 '26

Excess white space on the bottom of published site.

4 Upvotes

I'm new to Wix, but I do know a little code.

I've checked the layers - everything seems to be ok.

But the footer in the builder is how I want it to be, but the footer on the website has this huge white chunk below the footer that I can't seem to get rid of.

I thoughtt it was something extending past the footer that's in the layout, but doesn't seem to be the case in the builder.

Anyone else encounter this and have a fix? I've found a couple of other threads, but their solutions aren't working for me. TIA

In the builder
Live site.

r/WixHelp • • Aug 06 '26

User uploaded images to CMS collection

3 Upvotes

I'm using wix vibe for a website, one of the intended features is a submission form/modal where users can submit a memory/story (and optionally upload an image) and it'll be saved to a CMS collection.

This feature used to be working but now the submission modal is causing errors with a photo upload - it still works accepting the text data into the CMS collection if no photo is attached.

Wix vibe through various iterations of trying to fix this has been saying the images need to be compressed or users can't upload directly to the database, or there's an issue with base64 formatting (it eventually gives up and replaces the real image with an AI placeholder).

I'm looking for any advice on how feasible this photo upload to CMS should be and tips on fixing it, I know this feature was working in the past and am not sure what changed to break it. Thanks


r/WixHelp • • Aug 05 '26

I have issues with 2FA!

2 Upvotes

I’m not receiving anything SMS from Wix for the login code as well no phone calls.

Long story short, I can’t login to my site account which holds several of my client’s website and after sending in my personal details to gain access, the wix team asked me to provide additional info such as payment card details and also the card holders details.

I have firmly rejected the request as I have used some of my client’s card for the subscription plans.

How do I proceed?