Okay
  Public Ticket #3302087
Dont show Widget if no Track is set up
Closed

Comments

  • Lukas started the conversation

    Hey, 

    at my record store, i dont have always Track snippets to show. So if i set up a product, there is always the track one shown in the back end. There is no option to select "no Tracks". 
    Because i dont set up a track, i still see the Widget in the frontend which says "Track 1" but it doesn't trigger anything. 


    Is there an option to hide it if no track is set? Would be soooooo helpful. 

    Attached files:  Bildschirmfoto 2023-03-14 um 12.10.34.png
      Bildschirmfoto 2023-03-14 um 12.10.38.png

  •  669
    Alexandre replied

    Hi Lukas, 
    Are you able to provide the record store url?

    Thanks,


    Alexandre from the Sonaar.io Crew

  • Lukas replied

    The store is not launched jet. So everything is still wip. But this product for example is one without any track setup: https://lemmeknowrecords.com/produkt/majik-back-into-your-heart/. This one has some tracks: https://lemmeknowrecords.com/produkt/mr-president-one-night/

    You also see that i placed  a "Play" button next to the main cta. This one is not shown, if i dont set up any track. Which is strange, because "Track 1" is shown under the tracklist. 

  •  669
    Alexandre replied

    Hi Lukas, 

    I dont figure it out how you have set the player in the product page. Have you created your own single product template? May I have a login credential to understand how it is set. 
    Are you aware we have developed the option to display automatically the audio player in the single product page. Please go to wp-admin>mp3 player>woocommerce>woocommerce product page, You should not have this issue with this feature, but it is not avalaible if you own the starter plan. Only available with the Business plan and higher.

    https://drops.sonaar.io/i/V1jytv


    Thanks,


    Alexandre from the Sonaar.io Crew

  • Lukas replied

    Hey Alex, 


    sorry for my late reply. 

    So i created a Product Template with Elementor. I tried to explain what happened on the attached images. Hope that makes it more clear. Thanks again. 


    Attached files:  Tracklist should be visible - Thats right.png
      Tracklist should not be visible.png

  • Lukas replied

    Ah, and i have a Business plan. 

  •  669
    Alexandre replied

    If you I understand well you have built a Product template with elementor. 
    In this template you have add a dynamic sonaar Player. 
    So when not track is set to the single product the player doesnt work. 
    This behavior is normal. If you use the native product template with our feature from wp-admin>mp3 player>woocommerce>woocommerce, the player will be visible only when a track is set, but in your case, the player will be always visible. 
    I recommend you to built two product template. One with the audio player, and one without.

    Thanks,


    Alexandre from the Sonaar.io Crew

  • Lukas replied

    Hey, thank you for your reply. But this behavior is strange. Because as shown in the image i use two times the same widget. The "MP3 Audio Player". But if i will display a list, it will also show "Track 1" even if i didnt set up a track for that product. But if i use the same widget and set the "Player Design Layout" to "Button" the button will disapear if no track is set up on that track. 

    Hope that makes it clear. The widget have two behaviors, based on the "Player Design Layout" selection.  

  •  669
    Alexandre replied

    Hi Lukas, 
    I comprehend the problem at hand. However, if a player is included in the template but no track is allocated, it may result in issues like this. I acknowledge that this is an aspect that can be enhanced, but at present, you will need to utilize a workaround solution such as utilizing the template or experimenting with this custom CSS code. It is possible that it may resolve the issue.

    li.sr-playlist-item:not([data-audiopath*=".mp3"]){
      display: none !important;
    }

    Thanks,


    Alexandre from the Sonaar.io Crew

  • Lukas replied

    Thank you Alex, that solution actually works well. :) Thanks

  •  669
    Alexandre replied

    You are welcome

    Thanks,


    Alexandre from the Sonaar.io Crew