OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?

MediaLibary Component Support

Go to bottom Favoured: 0

Buy it button

fazel (Visitor)
Posts: 0
graphgraph
User Offline
Buy it button 14 Years ago
Karma: 0  
I run Media-library component on my site. When I enter the media details manually, it does not show the [buy from] link on the front end. The example is at
www.spiritualise.org/index.php?option=co...tid=80&Itemid=64

I am setting the fetch information to my own and enter the URl for buy from link.
How can I fix this problem?
Fazel
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8366
graph
User Offline Click here to see the profile of this user
Re:Buy it button 14 Years ago
Karma: 102  
Hi,

Please go to folder: {yours host}/components/com_medialibrary file: medialibrary.html.php

and change below code at all places where you find it.
Code:

         if ( $params->get('show_input_buy_now') && $media->informationFrom == 1)


to code
Code:

         if ( $params->get('show_input_buy_now') )


Thanks,
Andrew
Logged Logged
The administrator has disabled public write access.
carrillotoste (Visitor)
Posts: 0
graphgraph
User Offline
Re:Buy it button 13 Years, 11 Months ago
Karma: 0  
I had make the changes you suggest but nothing happend.

diversidadpr.prometea.org/index.php?opti...Itemid=2&lang=es
Logged Logged
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8366
graph
User Offline Click here to see the profile of this user
Re:Buy it button 13 Years, 11 Months ago
Karma: 102  
Can you give admin access to yours site and we will check where error.

Account details please send with help this site "Contact form"

Thanks,
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
fredgo (Visitor)
Posts: 0
graphgraph
User Offline
Re:Buy it button 13 Years, 9 Months ago
Karma: 0  
I had this same issue and found this post on the forum. I made the changes to the file as you suggested and now it works fine. Thanks!

By the way, in looking to change the string, I did notice that there was a slight difference in spacing in what needed to be replaced. Some places it appeared as

if ( $params->get('show_input_buy_now' && $media->informationFrom == 1)

and other places it appeared as

if ( $params->get('show_input_buy_now' && $media->informationFrom == 1 )

with an extra space after the 1.

This might not make a difference in the code, but if does affect a simple search and replace since if you search and replace the first string, you will miss the second one.
Logged Logged
The administrator has disabled public write access.
fredgo (Visitor)
Posts: 0
graphgraph
User Offline
Re:Buy it button 12 Years, 3 Months ago
Karma: 0  
I also had this issue on the most recent version on Joomla 2.5. I made the suggested changes,and it also worked there.
Logged Logged
The administrator has disabled public write access.
Go to top
»