- Posts: 13
- Thank you received: 0
Table in Article
- curlingkc
- Topic Author
- Offline
- New Member
-
Less
More
13 years 7 months ago #11301
by curlingkc
Table in Article was created by curlingkc
I have been trying to add the catagory table layout as seen in a menu component to an existing article.
I found a joomla extension plugin called "Plugin Include Component" that does just that.
In addition I have added a few tweeks like pricing to the table view except that the pricing will not carry over to the table loaded on the article. It Seems to drop the currency symbol and the first two digits.
I am not an expert on php so I am at a loss as to why it keeps dropping these digits but works great elsewhere.
Otherwise I am good to go.
Pricing in the catagories table view can be seen at test.kccurling.com/jupgrade/index.php/curling-programs
Pricing in catagory table embeded in article can be seen here. test.kccurling.com/jupgrade/index.php/cu...s/new-curlers/league
php used
I found a joomla extension plugin called "Plugin Include Component" that does just that.
In addition I have added a few tweeks like pricing to the table view except that the pricing will not carry over to the table loaded on the article. It Seems to drop the currency symbol and the first two digits.
I am not an expert on php so I am at a loss as to why it keeps dropping these digits but works great elsewhere.
Otherwise I am good to go.
Pricing in the catagories table view can be seen at test.kccurling.com/jupgrade/index.php/curling-programs
Pricing in catagory table embeded in article can be seen here. test.kccurling.com/jupgrade/index.php/cu...s/new-curlers/league
php used
<?php echo JText::_('EB_INDIVIDUAL_PRICE'); ?></strong> :
<?php
if ($item->individual_price > 0)
echo $this->config->currency_symbol.number_format($item->individual_price,2) ;
else
echo '<span class="eb_free">'.JText::_('EB_FREE').'</span>' ;
?>
Please Log in or Create an account to join the conversation.
- curlingkc
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 13
- Thank you received: 0
13 years 7 months ago #11337
by curlingkc
Replied by curlingkc on topic Re: Table in Article
I solved the problem by adding the following in bold
<?php
if ($item->individual_price > 0)
echo $this->config->currency_symbol.' '.number_format($item->individual_price,2,'.','') ;
else
echo '<span class="eb_free">'.JText::_('EB_FREE').'</span>' ;
?>
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.