Giter VIP home page Giter VIP logo

Comments (7)

richard-vock avatar richard-vock commented on June 19, 2024 1

Manually building on mount indeed circumvents this problem in my case - the widget no longer disappears.

For my specific needs this issue is resolved and can be closed. Tell me if you need further tests.

from pretix.

wiffbi avatar wiffbi commented on June 19, 2024

You do not have any products/tickets to sell in your event, so the widget does not show anything. Not sure we should change that behaviour. But I guess we could log a message to the browser console. I will discuss with the team.

from pretix.

raphaelm avatar raphaelm commented on June 19, 2024

Not sure that's the full issue, the widget should at least render its border and "powered by pretix". Even if that is hidden by CSS, but I don't even see it in the DOM on the linked page.

from pretix.

wiffbi avatar wiffbi commented on June 19, 2024

Huh, it did show the „powered by pretix“ when I looked at it yesterday!? Strange.

from pretix.

wiffbi avatar wiffbi commented on June 19, 2024

It gets better: when I reload, it shows the box with „powered by pretix“. Reload again, it does not. I will look into this.

from pretix.

wiffbi avatar wiffbi commented on June 19, 2024

I think it has something to do with docReady and how svelte sets up things. Whenever the widget is not loaded and I execute window.PretixWidget.buildWidgets(); on the console, everything works. You might want to try to not automatically build the widgets, but do it manually in your svelte mounted callback (or whatever that is called). For how to manually build the widgets, see https://docs.pretix.eu/en/latest/user/events/widget.html#dynamically-loading-the-widget

from pretix.

richard-vock avatar richard-vock commented on June 19, 2024

Having a ticket available indeed fixes it.

The visibility of the empty box (it does have the "Event-Ticketing-Software von pretix" link at the bottom) depends on the browser and my guess is that it is due to the DOM tree shaking frameworks like svelte or vue do. That is just a wild guess though. I will give the manual setup a try.

Having an empty box as soon as contingents run out or deadlines pass really limits the versatility of the widget, so having at least some "There are no available tickets at the moment, if you have a voucher code click here..." message would greatly improve things from the user perspective.

from pretix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.