Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated

Price show on mobile but not in desktop browser

7 years 11 months ago
  • Bosse's Avatar
    Topic Author
  • Bosse
  • Offline
  • Fresh Boarder
  • Posts: 48
  • Thank you received: 4
Licenses:
JomSocial Expired GURU Active

I don't sell separate courses. So there's no prices. When on a desktop browser it looks fine, but when I'm on my iPhone it still show text/buy button as if you can buy it.

Don't wanna... :)

Fix?

/Bosse



Attachments:
7 years 11 months ago
  • Bosse's Avatar
    Topic Author
  • Bosse
  • Offline
  • Fresh Boarder
  • Posts: 48
  • Thank you received: 4
Licenses:
JomSocial Expired GURU Active

Edit: And yes, in the settings Edit layouts -> Course Page the "Show 'Buy Now' button " is set to "No"

7 years 11 months ago
Licenses:

Hi, Bosse.

Try this. Copy this file:

ROOT/components/com_guru/views/guruprograms/tmpl/tabs.php

to:

ROOT/templates/your-template/html/com_guru/guruprograms/ (if you don't have those folders - feel free to create them)

And comment line 311 like this:

//$return .= '<div class="uk-width-large-1-10 uk-width-medium-1-1 uk-width-small-1-1 uk-text-right padding-none"><input type="button" class="uk-button uk-button-success uk-button-small" onclick="document.location.href=\''.JURI::root()."index.php?option=com_guru&view=guruPrograms&task=buy_action&course_id=".$course_id."&Itemid=".intval($itemid).'\';" value="'.JText::_("GURU_BUY_NOW").'" name="Buy" /></div>';

Place two slashes // at the beginning of the line. If this won't work just leave $return .='';


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW