solved Foxycart and Downloadable Audio

MAD
MAD
@madc
11 years ago
600 posts
Hi there,
We have implemented the Downloadable Audio modification
https://www.jamroom.net/the-jamroom-network/documentation/howto/1389/howto-allow-downloads-to-logged-in-users

It is working sitewide except on certain areas.
The download button is showing or hidden everywhere except in the Song Menu and the Charts Menu ( seen so far ).
We have some songs/albums downloadable and some not but in the song menu and the chart menu they show up and can be downloaded whether logged in or out.

To explain a bit further,
*We have updated our Nova CLONED skin with the newest Nova template edits ( 1.1.2 )
*We had to Enable both foxycart modules and enabled the Merchandise store as well to fix the layout problem as seen in the image in A and B

The song - Broken is not downloadble as checked as not downloadable in the profile edit screen
Yet clearly you can see it can be downloaded whether logged in or out in song menu and charts menu as in figure C and F

Figures D and E show it is not downloadable in the profile under songs or album

Figure F shows it is downloadable in the charts menu.

Links to view are
http://final.punkbp.com/songs Look for 01 - Broken on page . That is not downloadable ( About 5th down )
http://final.punkbp.com/song_chart Same again but second down

To show that it is hidden in profile
http://final.punkbp.com/4-past-midnight/audio/230/01-broken
http://final.punkbp.com/4-past-midnight/audio
http://final.punkbp.com/4-past-midnight/audio/albums/life-on-the-inside

Can someone let me know whats wrong?
Cheers :D



DOWNLOAD-ERROR.jpg
DOWNLOAD-ERROR.jpg  •  76KB




--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion

updated by @madc: 01/21/14 05:00:31AM
michael
@michael
11 years ago
7,718 posts
all the letters made my head hurt.

If the question is "why isn't my download button showing in some sections?" It could be that your using the wrong variables for those sections.

Not all variables are the same everywhere.

To figure out the right variable for the {if....} put {debug} in the location that your trying to use it.
MAD
MAD
@madc
11 years ago
600 posts
No thats not it @michael
The downloadable edit is working fine

Since the last core update we had to enable foxycart as it threw in a FREE text in the songs page and the charts page
So we enabled foxcart which fixed up the FREE text to a FREE box
We aren't concerned about that at all.

It's the fact that the download is not meant to be on the songs and chart page as they are disabled in the song ( or album ) from my first post

So the edit is working AOK
Its the foxycart download button on songs and charts Pages that SHOULD'NT be showing as that song isn't DOWNLOADABLE
( The Song in question is called 01 Broken )

If you check the links I provided you can see what I mean

To me the foxycart is not reading the downloadable condition?


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion

updated by @madc: 12/12/13 08:43:11PM
CAPER
CAPER
@caper
11 years ago
125 posts
how did you make it into a free download? @ba9801
updated by @caper: 12/16/13 05:34:25PM
MAD
MAD
@madc
11 years ago
600 posts
You need to set it up through some edit
Check this out
https://www.jamroom.net/the-jamroom-network/documentation/howto/1389/howto-allow-downloads-to-logged-in-users

My question still stands
Quote: Its the foxycart download button on songs and charts Pages that SHOULD'NT be showing as that song isn't DOWNLOADABLE
( The Song in question is called 01 Broken )

How do I make the foxycart respect the Downloadable check box.
The rest of the areas are but not the Songs or Charts pages


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion
michael
@michael
11 years ago
7,718 posts
ba9801:
How do I make the foxycart respect the Downloadable check box.
The rest of the areas are but not the Songs or Charts pages

In order to answer this question I would need to setup the same setup you are trying to create, then tell you how I set it up.

You could make it easier on me by telling me how you have it setup now.
MAD
MAD
@madc
11 years ago
600 posts
Would it be easier if I gave you access to the server?


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion
michael
@michael
11 years ago
7,718 posts
not really because Im not setup to debug on your server. I just need to recreate it so I can see what needs to be done.
CAPER
CAPER
@caper
11 years ago
125 posts
I tried following everything but i can't see the end of this code {if $_conf.jrAudio_block_download == 'off' && (empty($item.audio_file_item_price) | | $item.audio_file_
michael
@michael
11 years ago
7,718 posts
Thats not anything your told to add. That was already there.
CAPER
CAPER
@caper
11 years ago
125 posts
it wasnt on my module
MAD
MAD
@madc
11 years ago
600 posts
EDIT: POSSIBLE FIX?

It seems as though I needed to also update the song_chart_row.tpl file and the songs_row.tpl file.
I couldn't find these in the ACP so had to hardcode them into the files in root

I added this to those two files and it seems to be ok now.
( Can someone else let me know if there are any more to edit or if the edit is correct )

Find
                            <div class="add_to_cart_section" title="Free Download"><span class="add_to_cart_price">Free</span><a href="{$jamroom_url}/{$murl}/download/audio_file/{$item._item_id}" title="download">{jrCore_icon icon="download" size="24"}</a></div>

Replace with this in both files

{if $item.audio_downloadable == 'on'}
                            <div class="add_to_cart_section" title="Free Download"><span class="add_to_cart_price">Free</span><a href="{$jamroom_url}/{$murl}/download/audio_file/{$item._item_id}" title="download">{jrCore_icon icon="download" size="24"}</a></div>
{/if}



--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion

updated by @madc: 12/17/13 05:35:31PM
michael
@michael
11 years ago
7,718 posts
nice one. that looks right. find what you want and wrap it in a check for a variable.

Well done. :)

Tags