iJoomla Forum

iJoomla Digistore => Pre-Sales Questions => Topic started by: godrifle on June 20, 2008, 08:52:07 PM



Title: php in product description
Post by: godrifle on June 20, 2008, 08:52:07 PM
I'd like to write a function that will output a list of songs with links to 30 second mp3 clips for each album in my store. First step is to determine whether Digistore allows me to enter PHP into the description....?


Title: Re: php in product description
Post by: RicardoCorai on June 23, 2008, 11:57:59 AM
Hi,
I suggest you to use this extension: OnePixelOut Player (http://www.duvien.com/1-pixelout-audio-player-151-released-joomla-15x).
On your product description you only need to add this tag:
Code:
{audio}media/audio.mp3{/audio}
Best regards,


Title: Re: php in product description
Post by: godrifle on June 23, 2008, 03:14:54 PM
Sounds great. Tedious with a thousand tracks though, which is why I'm hoping that I can inject PHP into product descriptions.


Title: Re: php in product description
Post by: RicardoCorai on June 24, 2008, 09:05:47 AM
I think that you can“t add PHP code there. Anyway you can try it using a simple PHP code.
Code:
<?php print("Hello World!"); ?>
Best regards,


Title: Re: php in product description
Post by: jkovar on October 06, 2008, 05:22:59 PM
Try the JUMI plugin.  I was able to add the Hello World test php file to my Long Description and it worked fine.

JUMI will let you imbed PHP, HTML, etc code into your content.  It apparently works OK in the descriptions for Digistore.

UPDATE:  Before Digistore saved my life (LOL) I had used JUMI to imbed PayPal buttons in my content.  Not a good solution when you need to track your orders, send confirmation emails, etc, etc.  All the things a Store system like Digistore can do!


Title: Re: php in product description
Post by: RicardoCorai on October 07, 2008, 11:59:20 AM
Thanks for your comment jkovar!  8)