Okay
  Public Ticket #3611188
Working with WooCommerce
Closed

Comments

  • Nick started the conversation

    Hi,

    I've signed up to MP3 Player Pro today and currently testing it out. 

    My longterm plan is to turn my website into a music app with a subscription. I'm hoping that the player will work with the AppMySite mobile converter. I'll test this out shortly.

    But first, I'm trying to get the player to show on my WooCommerce product posts. Each of my tracks is a WooCommerce product. I've got 'product' ticked under Settings > General > Post Type. But it doesn't seem to show any MP3 Player fields. 

    I was expecting to see a field that I could use for selecting an MP3 or external link. Is that correct? Or should I use my own custom field? I'm using Toolset's Types plugin for setting custom fields etc. 

    I was then hoping that in my Product template, I'm using Elementor, I can set the sticky player or widget with it linked to the custom field and it play the MP3. If it works like that?

    Have I understood correctly from what I've seen in your support videos and docs? A few pointers would be great.

    Thanks

    Nick   

  • Nick replied

    Please can I ask an additional question about where best to store the mp3s.

    Ideally this would be off site, as I don't want to overload our web server. 

    Can you recommend a 3rd party streaming service that works with your MP3 Player? 

    I'm currently thinking somehting like Amazon S3. Not sure if that would work? Or are there better options you know of?

    Re security ... One feature I was hoping for was for the link to be secure. ie people couldn't use the link directly and be able to download the MP3. Do you know if that's possible and how a streaming service could work with the MP3 Player?

    Thanks

    Nick

  •  1,114
    Max replied

    Hi,

    Yes correct. The custom fields show appear in the product page. 

    Could you please provide me temporary access to your WP-Admin (WordPress dashboard), I will gladly check the issue you have.

    To create an access:

    1. Log in to your WordPress website using your existing administrator account.
    2. Navigate to the "Users" section and click "Add New."
    3. Fill in the user details, including a unique username, email address ([email protected]), and a strong password.
    4. Assign the administrator role from the dropdown menu
    5. Click "Add New User" to create the administrator account.
    6. Submit the username and password you have created, in this ticket.

    For the best way to store mp3s, I still recommend using the same server than your wp site because it will be must faster to start the audio than if audio is hosted on another server.


    Amazon s3 might be a good option. Lot of our users use s3.


    To prevent files to be downloaded directly, see this doc https://sonaar.io/docs/preventing-mp3-download-block-direct-url-file-access/

    Thanks,


    Max from the Sonaar.io Crew

  •   Nick replied privately
  •  1,114
    Max replied

    Hi,

    It looks like a conflict with one of your third party plugins.

    Could you try something for me? Please deactivate all your plugins except our 2 plugins + WooCommerce, then see if the issue persists. If not, please reactivate your plugins one by one and see which plugin can cause the conflict.

    Tell me how it goes.

    Thanks,


    Max from the Sonaar.io Crew

  • Nick replied

    Hi Max,

    I've deactivated all the plugins and changed the theme. I didn't see any new fields popup in the product edit window.

    I've had to turn them all back on.

    I'll create a staging site so we can test further. Back in a moment with credentials.

  •   Nick replied privately
  •  1,114
    Max replied

    Hi,

    on your staging server, we do can see the custom fields when we edit your product. See screenshot https://drops.sonaar.io/i/8bOwBb

    So this might related to one of your third party plugins.

    Thanks,


    Max from the Sonaar.io Crew

  •   Nick replied privately
  •   Nick replied privately
  •  1,114
    Max replied

    I've found the issue and I was too blind to see this.

    Its just because the setting in WP-Admin > MP3 Player > Settings were not saved a first time. It looked like the product check box was set https://drops.sonaar.io/i/SwCuxu so I assumed that the settings were saved before but I was wrong.


    So just hit save changes and it will work.

    Thanks,


    Max from the Sonaar.io Crew

  • Nick replied

    Ah brilliant. I've saved those settings on the main live site and can now see the Playlist Content section on the products.

    These issues are sometimes like a haystack and you found the needle! Nice one .. thank you

    I'll go ahead and delete those staging sites and carry on testing. 

    THanks

  • Nick replied

    Hi Max,

    I'm making great progress on testing it. But just stuck on the restricting MP3 downloading. 

    I've checked with SiteGround support and unfortuantely the method 1 (mentioned here https://sonaar.io/docs/preventing-mp3-download-block-direct-url-file-access/) is not possible as the NGINX configuration file can't be edited on any of their hosting plans. Also it would mean that NGINX caching would need to be turned off.

    So at the moment the only option is the method 2 with editing the .htaccess file and turning NGINX caching off.

    But .. am I correct in thinking that if we use Amazon S3 to host the mp3s then the .htaccess restriction rules do not apply, as they only impact direct links from the domain .. not Amazon S3 links.

    If so, is there another way we can use Amazon S3 where the permissions are set to restrict downloads?

    Either using the permissions on the objects (mp3 files) or integreated with the plugin where the doamin is seen as the 'Object owner'? 

    For example, I've used a WooCommerce plugin called 'Amazon S3 Storage' which uses Amazon Web Services credentials (Access Key ID and Secret Access Key) to securly provide download links for bought mp3s which are then restricted once downloaded, and during all this the 'public access' permissions to the files are kept private/off.

    At the moment I can only get the MP3 player working with Amazon S3 stored mp3 by setting the Object's public access to 'Read'. So in theory the link could be captured and shared for all to download.

    Is something like the way the Woocommerce 'Amazon S3 Storage' plugin does it, by keeping the files not public, possible? 

    Or is this maybe one for the dev roadmap?

    Cheers

  •  1,114
    Max replied

    Hi,

    The configuration needs to be setup where your MP3 Files are hosted. If you host the files on S3, the config needs to be achieve on the S3 server, not on your website hosting.

    Im not familiar with S3 hosting as I never used it personally.


    Thanks,


    Max from the Sonaar.io Crew