Joomla Templates - J-network: Correcting positioning on packages display

Support Forum

 
 

 

Hi, if you look at the bottom of the list of packages here: http://demo.cmsjunkie.com/j-businessdirectory/directory/j-network/directory/main-features/business-plans you will be able to see how they are not aligned. It doesn't look neat and makes it not so simple to compare plans.

I've tried all sorts of things to get some text printing on the basic package, in place where the price would be (like adding a case 'default', adding an extra if statement, etc), but I'm not even at novice level for php yet! Sorry :P Though I did look up the meaning of various operators and statement syntax!

Please can you add the necessary statement to the below code, so that a text string prints where the price is normally printed.

This is from default_package.php in /public_html/components/com_jbusinessdirectory/views/packages/tmpl

Btw, I'm not meaning to retrieve any text from the database, but merely to print it in the php file when no time period is ascertained.

        <div class="jpackage-price">
            <p class="jpackage-price-period">
                <?php if($package->days > 0) {?>
                     <?php
                         echo $package->time_amount;
                         echo ' ';
                         $time_unit = JText::_('LNG_DAYS');
                         switch($package->time_unit){
                             case "D":
                                 $time_unit = $package->time_amount>1?JText::_('LNG_DAYS'):JText::_('LNG_DAY');
                                 break;
                             case "W":
                                 $time_unit = $package->time_amount>1?JText::_('LNG_WEEKS'):JText::_('LNG_WEEK');
                                 break;
                             case "M":
                                 $time_unit = $package->time_amount>1?JText::_('LNG_MONTHS'):JText::_('LNG_MONTH');
                                 break;
                             case "Y":
                                 $time_unit = $package->time_amount>1?JText::_('LNG_YEARS'):JText::_('LNG_YEAR');
                                 break;
                            default : $time_unit = 'Lifetime';
                         }
                         echo $time_unit;
                     ?>
                 <?php }else if($package->expiration_type==1 && $package->price > 0){?>
                    <?php echo JText::_("LNG_LIFETIME")    ?>
                <?php } ?>   
             </p>
            <p class="jpackage-price-text"><?php echo $package->price == 0 ? JText::_("LNG_FREE"):JBusinessUtil::getPriceFormat($package->price)?></p>
        </div>

thank you!

3 replies

Also please, to do with the same template, how do you extend the top and bottom of the middle (blue) column at http://demo.cmsjunkie.com/j-businessdirectory/directory/j-network/directory/main-features/business-plans The Quickstart install doesn't seem to have this set.

I think the model should undergo a reconstruction and maintenance, I do not mean visual reconstruction but the code. Joomla 4 is coming, and even in 3.9 today there are several improvements that could be implemented. One of the points that I always complain about is the excess of standard directives for the website: you change a color of a certain variable then you change so many others on the website.

 

An example: The color of the rating stars, you change it and even change the color of the module's search icon.

It would be good to hear from a dev on this please, about how to get the rows level.

Also, the packages page supplied in the Quickstart file doesn't have the same packages display as the online demo, i.e. no slighly taller/lower middle column.

 

 
 
 

4 Item(s)

Show per page