solved Paypal Button

Developer Networks
Developer Networks
@developer-networks
10 years ago
566 posts
Trying to bring in the jrPayPal buttons to a skin charts if they have the module activated.

I tried
{jrCore_module_function function="jrPayPal_item_cart_button" module="jrAudio" field="audio_file" item=$item}


however it did not work.


The button is showing on the album listing. It is not showing if i add the jrPayPal button with the others buttons on the charts row



updated by @developer-networks: 09/15/14 07:02:39PM
brian
@brian
10 years ago
10,148 posts
It's not designed to work in a skin template - only on the item detail and item list pages (since it's a feature button that can be manipulated by the admin).

You will need to do something custom for skin templates.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

updated by @brian: 08/12/14 10:23:55AM
Developer Networks
Developer Networks
@developer-networks
10 years ago
566 posts
Ok thank you I will do that. I have looked in the docs and ended up here:

https://www.jamroom.net/the-jamroom-network/documentation/development/758/jrcore-item-create-button

It wasn't very helpful. I'll try to look at other modules and see if I can figure it out.

Thanks.
douglas
@douglas
10 years ago
2,791 posts
This is whats being used in the MediaPro templates and its seems to be working...

{if isset($item.audio_file_item_price) && $item.audio_file_item_price > 0}
{if jrCore_module_is_active('jrFoxyCart')}
{jrCore_module_function function="jrFoxyCart_add_to_cart" module="jrAudio" field="audio_file" item=$item}{elseif jrCore_module_is_active('jrPayPal')}
{jrPayPal_buy_now_button module="jrAudio" item=$item}
{/if}
{elseif $_conf.jrAudio_block_download != 'on'}
<div class="add_to_cart_section"><span class="add_to_cart_price">Free</span><a href="{$jamroom_url}/{$murl}/download/audio_file/{$item._item_id}">{jrCore_icon icon="download" size="18"}</a></div>
{else}
<div class="add_to_cart_section" title="Download Not Available"><span class="add_to_cart_price">N/A</span>{jrCore_icon icon="lock" size="18"}</div>
{/if}

Hope this helps,
Douglas
pp_on_skinside.png
pp_on_skinside.png  •  136KB




--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

updated by @douglas: 08/12/14 11:44:47PM
Developer Networks
Developer Networks
@developer-networks
10 years ago
566 posts
wow thanks Douglas! I was able to use:
{if jrCore_module_is_active('jrPayPal')}
{jrPayPal_buy_now_button module="jrAudio" item=$item}
{/if}


and it worked perfectly!
douglas
@douglas
10 years ago
2,791 posts
Glad to hear it. ;)


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

Tags