321 reputation
18
bio website jefflunt.com
location Evanston, IL
age 34
visits member for 2 years, 11 months
seen Dec 8 '12 at 23:03

I code because it is the single, greatest expression of creativity that I have ever found. Coding isn't just the ability to translate an idea into working software, it's the ability to focus creativity into reality.


May
25
answered Should I jump straight into HTML 5 and CSS 3 from minimum knowledge of HTML?
May
23
comment Getting the filename associated with a sample in the “Downloadable Information” area in Magento
Sweet. Even better!
May
23
revised Getting the filename associated with a sample in the “Downloadable Information” area in Magento
Removed introductory paragraph, which is no longer relevant.
May
23
suggested suggested edit on Getting the filename associated with a sample in the “Downloadable Information” area in Magento
May
23
accepted Getting the filename associated with a sample in the “Downloadable Information” area in Magento
May
23
revised Getting the filename associated with a sample in the “Downloadable Information” area in Magento
Modified example with known working code.
May
23
comment Getting the filename associated with a sample in the “Downloadable Information” area in Magento
So I modified your answer to include the working code. I don't know if you have to approve it before it shows up, but you definitely got me going in the right direction, and I found the code that does it thanks to your help.
May
23
comment Getting the filename associated with a sample in the “Downloadable Information” area in Magento
Nope, the getURL() function returns the URL (e.g. example.com/samples/01), which (a) doesn't include the filename, and (b) just delegates to your browser to handle the view/playback of the sample appropriately. For example, the URL, if the sample is a PDF, will launch whatever your default PDF viewer is. In the case of .MP3s, for me the URL was launching my default media player, locally on my machine.
May
23
suggested suggested edit on Getting the filename associated with a sample in the “Downloadable Information” area in Magento
May
23
comment Getting the filename associated with a sample in the “Downloadable Information” area in Magento
This got me headed in a good direction, but the best I could do with the methods mentioned above, as well as other ones that I found in the API, was get the base directory for the samples, e.g. /path/to/app/samples, rather than /path/to/samples/1/sample.mp3. I may just have to add this functionality. Luckily (I think), Magento is open source.
May
22
comment Getting the filename associated with a sample in the “Downloadable Information” area in Magento
I'll give this a shot tomorrow and let you know. Looks like the getSampleUrl() and/or getSamplePath() will get me what I need. Thanks!
May
21
answered I am 16 and want to learn how to develop websites (complex sites with video and members).. what language do you suggest I learn?
May
20
revised Getting the filename associated with a sample in the “Downloadable Information” area in Magento
edited title
May
20
asked Getting the filename associated with a sample in the “Downloadable Information” area in Magento
May
20
accepted Adding jPlayer to Magento site
May
19
revised Adding jPlayer to Magento site
Corrected a couple of typos / clarified my wording.
May
19
asked Adding jPlayer to Magento site
May
19
awarded  Scholar
May
19
accepted Previews for audio e-commerce site
May
19
comment Previews for audio e-commerce site
This is a really cool solution. I think I'm going to wind up modifying the Magento product page so I can get an embedded player (after thinking it over, that's more akin to the functionality I'm looking for), but you've definitely answered my question. Thanks!