[Skip to main content](#vessel-content)

#   Iframing specific dashboard components

##

- **[derek\_cts](/forum/user/57073-derek-cts "View derek&#95;cts's Profile")**
- [![derek&#95;cts's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/57073-derek-cts "View derek&#95;cts's Profile") Topic Author
- [ Offline](/forum/user/57073-derek-cts)

Less More

- Posts: 20
- Thank you received: 0
-
-

8 years 5 months ago [\#293965](#293965) by [derek\_cts](/forum/user/57073-derek-cts "View derek&#95;cts's Profile")  *[Iframing specific dashboard components](/forum/31-development/894980-iframing-specific-dashboard-components#293965 "-- HikaShop version -- : 3.4.0 Business -- Joomla version -- : 3.8.8 -- PHP version -- : 7.x -- Browser(s) name and version -- : chrome / firefox -- Error-message(debug-mod must be tuned on) -- : n/a  Is there any feasible way to iframe (or otherwise display) the #hikashop&#95;dashboard&#95;stat&#95;last&#95;orders div? I need this specific information to show up on another related dashboard site I'm building for the client (who is using hikashop business). They want an 'all-in-1' page, so they don't have to go to the joomla backend of the site.  any suggestions are welcome. thanks.")* was created by *[derek\_cts](/forum/user/57073-derek-cts "View derek&#95;cts's Profile")*

-- HikaShop version -- : 3.4.0 Business
-- Joomla version -- : 3.8.8
-- PHP version -- : 7.x
-- Browser(s) name and version -- : chrome / firefox
-- Error-message(debug-mod must be tuned on) -- : n/a

Is there any feasible way to iframe (or otherwise display) the #hikashop_dashboard_stat_last_orders div?
I need this specific information to show up on another related dashboard site I'm building for the client (who is using hikashop business).
They want an 'all-in-1' page, so they don't have to go to the joomla backend of the site.

any suggestions are welcome.
thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2RldmVsb3BtZW50Lzg5NDk4MC1pZnJhbWluZy1zcGVjaWZpYy1kYXNoYm9hcmQtY29tcG9uZW50cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

8 years 5 months ago [\#293966](#293966) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Iframing specific dashboard components](/forum/31-development/894980-iframing-specific-dashboard-components#293966 "-- HikaShop version -- : 3.4.0 Business -- Joomla version -- : 3.8.8 -- PHP version -- : 7.x -- Browser(s) name and version -- : chrome / firefox -- Error-message(debug-mod must be tuned on) -- : n/a  Is there any feasible way to iframe (or otherwise display) the #hikashop&#95;dashboard&#95;stat&#95;last&#95;orders div? I need this specific information to show up on another related dashboard site I'm building for the client (who is using hikashop business). They want an 'all-in-1' page, so they don't have to go to the joomla backend of the site.  any suggestions are welcome. thanks.")*

Hi,

You can do it like that: Code:

if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR); if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')) return true; $statisticsClass = hikashop_get('class.statistics'); $statisticsClass-&gt;display(array('last_orders' =&gt; array( 'slot' =&gt; 2, 'order' =&gt; 2, 'published' =&gt; 1, 'container' =&gt; 1, 'class' =&gt; 'hkc-lg-8 hkc-sm-12', 'type' =&gt; 'dynamic', 'label' =&gt; JText::_('HIKA_STATS_LAST_ORDERS'), 'vars' =&gt; array( 'COUNTER' =&gt; 6 ), 'prefix' =&gt; '&lt;table style="width:100%" class="table table-striped table-hover table-bordered"&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;'.JText::_('ORDER_NUMBER').'&lt;/th&gt;&lt;th&gt;'.JText::_('ORDER_STATUS').'&lt;/th&gt;&lt;th&gt;'.JText::_('CUSTOMER').'&lt;/th&gt;&lt;th&gt;'.JText::_('DATE').'&lt;/th&gt;&lt;th&gt;'.JText::_('PRICE').'&lt;/th&gt;&lt;/thead&gt;&lt;tbody&gt;', 'dynamic' =&gt; '&lt;tr&gt;&lt;td&gt;{order_number:order_link}&lt;/td&gt;&lt;td&gt;{order_status:order_status}&lt;/td&gt;&lt;td&gt;{user_email}&lt;/td&gt;&lt;td&gt;{order_created:date}&lt;/td&gt;&lt;td&gt;{order_full_price:price}&lt;/td&gt;&lt;/tr&gt;', 'suffix' =&gt; '&lt;/tbody&gt;&lt;/table&gt;', 'format' =&gt; 'text', 'query' =&gt; array( 'get' =&gt; 'list', 'select' =&gt; 'hk_order.*, hk_user.*, hk_order.order_currency_id as currency', 'tables' =&gt; array( hikashop_table('order') . ' AS hk_order', 'INNER JOIN '.hikashop_table('user').' AS hk_user ON hk_order.order_user_id = hk_user.user_id' ), 'filters' =&gt; array( 'order_type' =&gt; 'hk_order.order_type = '.$order_type.'' ), 'order' =&gt; 'hk_order.order_created DESC', 'limit' =&gt; '{COUNTER}' ) )));

That should work anywhere (in any PHP file) on a Joomla website with HikaShop if Joomla is already loaded.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2RldmVsb3BtZW50Lzg5NDk4MC1pZnJhbWluZy1zcGVjaWZpYy1kYXNoYm9hcmQtY29tcG9uZW50cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[derek\_cts](/forum/user/57073-derek-cts "View derek&#95;cts's Profile")**
- [![derek&#95;cts's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/57073-derek-cts "View derek&#95;cts's Profile") Topic Author
- [ Offline](/forum/user/57073-derek-cts)

Less More

- Posts: 20
- Thank you received: 0
-
-

8 years 5 months ago [\#293984](#293984) by [derek\_cts](/forum/user/57073-derek-cts "View derek&#95;cts's Profile")  Replied by *[derek\_cts](/forum/user/57073-derek-cts "View derek&#95;cts's Profile")* on topic *[Iframing specific dashboard components](/forum/31-development/894980-iframing-specific-dashboard-components#293984 "-- HikaShop version -- : 3.4.0 Business -- Joomla version -- : 3.8.8 -- PHP version -- : 7.x -- Browser(s) name and version -- : chrome / firefox -- Error-message(debug-mod must be tuned on) -- : n/a  Is there any feasible way to iframe (or otherwise display) the #hikashop&#95;dashboard&#95;stat&#95;last&#95;orders div? I need this specific information to show up on another related dashboard site I'm building for the client (who is using hikashop business). They want an 'all-in-1' page, so they don't have to go to the joomla backend of the site.  any suggestions are welcome. thanks.")*

Any way to do it from another website if you have the Jooma creds for the one you are targeting?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2RldmVsb3BtZW50Lzg5NDk4MC1pZnJhbWluZy1zcGVjaWZpYy1kYXNoYm9hcmQtY29tcG9uZW50cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

8 years 5 months ago [\#293992](#293992) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Iframing specific dashboard components](/forum/31-development/894980-iframing-specific-dashboard-components#293992 "-- HikaShop version -- : 3.4.0 Business -- Joomla version -- : 3.8.8 -- PHP version -- : 7.x -- Browser(s) name and version -- : chrome / firefox -- Error-message(debug-mod must be tuned on) -- : n/a  Is there any feasible way to iframe (or otherwise display) the #hikashop&#95;dashboard&#95;stat&#95;last&#95;orders div? I need this specific information to show up on another related dashboard site I'm building for the client (who is using hikashop business). They want an 'all-in-1' page, so they don't have to go to the joomla backend of the site.  any suggestions are welcome. thanks.")*

Hi,

Use this code in a system plugin that you install on your Joomla website with the trigger onAfterRoute and check specific parameters in the URL before that code to make sure that the plugin is being called and check a password or something in the URL.
Then, simply use that URL in an iframe on that other website.
So it's possible if you're a developer and write a bit of code.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2RldmVsb3BtZW50Lzg5NDk4MC1pZnJhbWluZy1zcGVjaWZpYy1kYXNoYm9hcmQtY29tcG9uZW50cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[derek\_cts](/forum/user/57073-derek-cts "View derek&#95;cts's Profile")**
- [![derek&#95;cts's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/57073-derek-cts "View derek&#95;cts's Profile") Topic Author
- [ Offline](/forum/user/57073-derek-cts)

Less More

- Posts: 20
- Thank you received: 0
-
-

8 years 4 months ago -  8 years 4 months ago [\#294279](#294279) by [derek\_cts](/forum/user/57073-derek-cts "View derek&#95;cts's Profile")  Replied by *[derek\_cts](/forum/user/57073-derek-cts "View derek&#95;cts's Profile")* on topic *[Iframing specific dashboard components](/forum/31-development/894980-iframing-specific-dashboard-components#294279 "-- HikaShop version -- : 3.4.0 Business -- Joomla version -- : 3.8.8 -- PHP version -- : 7.x -- Browser(s) name and version -- : chrome / firefox -- Error-message(debug-mod must be tuned on) -- : n/a  Is there any feasible way to iframe (or otherwise display) the #hikashop&#95;dashboard&#95;stat&#95;last&#95;orders div? I need this specific information to show up on another related dashboard site I'm building for the client (who is using hikashop business). They want an 'all-in-1' page, so they don't have to go to the joomla backend of the site.  any suggestions are welcome. thanks.")*

I took that code you gave me and created a hidden page w/ an article (on the site using Hika Business).
In the article I pasted the code, and I have DirectPHP (and Sourcerer) plugin installed on the site, but the code is not yielding the dashboard component.
Is there anything else I'd need to do?
Code:

{source} &lt;?php if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR); if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')) return true; $statisticsClass = hikashop_get('class.statistics'); $statisticsClass-&gt;display(array('last_orders' =&gt; array( 'slot' =&gt; 2, 'order' =&gt; 2, 'published' =&gt; 1, 'container' =&gt; 1, 'class' =&gt; 'hkc-lg-8 hkc-sm-12', 'type' =&gt; 'dynamic', 'label' =&gt; JText::_('HIKA_STATS_LAST_ORDERS'), 'vars' =&gt; array( 'COUNTER' =&gt; 6 ), 'prefix' =&gt; '&lt;table style="width:100%" class="table table-striped table-hover table-bordered"&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;'.JText::_('ORDER_NUMBER').'&lt;/th&gt;&lt;th&gt;'.JText::_('ORDER_STATUS').'&lt;/th&gt;&lt;th&gt;'.JText::_('CUSTOMER').'&lt;/th&gt;&lt;th&gt;'.JText::_('DATE').'&lt;/th&gt;&lt;th&gt;'.JText::_('PRICE').'&lt;/th&gt;&lt;/thead&gt;&lt;tbody&gt;', 'dynamic' =&gt; '&lt;tr&gt;&lt;td&gt;{order_number:order_link}&lt;/td&gt;&lt;td&gt;{order_status:order_status}&lt;/td&gt;&lt;td&gt;{user_email}&lt;/td&gt;&lt;td&gt;{order_created:date}&lt;/td&gt;&lt;td&gt;{order_full_price:price}&lt;/td&gt;&lt;/tr&gt;', 'suffix' =&gt; '&lt;/tbody&gt;&lt;/table&gt;', 'format' =&gt; 'text', 'query' =&gt; array( 'get' =&gt; 'list', 'select' =&gt; 'hk_order.*, hk_user.*, hk_order.order_currency_id as currency', 'tables' =&gt; array( hikashop_table('order') . ' AS hk_order', 'INNER JOIN '.hikashop_table('user').' AS hk_user ON hk_order.order_user_id = hk_user.user_id' ), 'filters' =&gt; array( 'order_type' =&gt; 'hk_order.order_type = '.$order_type.'' ), 'order' =&gt; 'hk_order.order_created DESC', 'limit' =&gt; '{COUNTER}' ) ))); ?&gt; {/source}

Last edit: 8 years 4 months ago by [derek\_cts](/forum/user/57073-derek-cts "View derek&#95;cts's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2RldmVsb3BtZW50Lzg5NDk4MC1pZnJhbWluZy1zcGVjaWZpYy1kYXNoYm9hcmQtY29tcG9uZW50cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

8 years 4 months ago [\#294296](#294296) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Iframing specific dashboard components](/forum/31-development/894980-iframing-specific-dashboard-components#294296 "-- HikaShop version -- : 3.4.0 Business -- Joomla version -- : 3.8.8 -- PHP version -- : 7.x -- Browser(s) name and version -- : chrome / firefox -- Error-message(debug-mod must be tuned on) -- : n/a  Is there any feasible way to iframe (or otherwise display) the #hikashop&#95;dashboard&#95;stat&#95;last&#95;orders div? I need this specific information to show up on another related dashboard site I'm building for the client (who is using hikashop business). They want an 'all-in-1' page, so they don't have to go to the joomla backend of the site.  any suggestions are welcome. thanks.")*

Hi,

You need to echo the return of the display function call.
So the line: Code:

$statisticsClass-&gt;display(array('last_orders' =&gt; array(

should be: Code:

echo $statisticsClass-&gt;display(array('last_orders' =&gt; array(

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2RldmVsb3BtZW50Lzg5NDk4MC1pZnJhbWluZy1zcGVjaWZpYy1kYXNoYm9hcmQtY29tcG9uZW50cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[derek\_cts](/forum/user/57073-derek-cts "View derek&#95;cts's Profile")**
- [![derek&#95;cts's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/57073-derek-cts "View derek&#95;cts's Profile") Topic Author
- [ Offline](/forum/user/57073-derek-cts)

Less More

- Posts: 20
- Thank you received: 0
-
-

8 years 4 months ago [\#294320](#294320) by [derek\_cts](/forum/user/57073-derek-cts "View derek&#95;cts's Profile")  Replied by *[derek\_cts](/forum/user/57073-derek-cts "View derek&#95;cts's Profile")* on topic *[Iframing specific dashboard components](/forum/31-development/894980-iframing-specific-dashboard-components#294320 "-- HikaShop version -- : 3.4.0 Business -- Joomla version -- : 3.8.8 -- PHP version -- : 7.x -- Browser(s) name and version -- : chrome / firefox -- Error-message(debug-mod must be tuned on) -- : n/a  Is there any feasible way to iframe (or otherwise display) the #hikashop&#95;dashboard&#95;stat&#95;last&#95;orders div? I need this specific information to show up on another related dashboard site I'm building for the client (who is using hikashop business). They want an 'all-in-1' page, so they don't have to go to the joomla backend of the site.  any suggestions are welcome. thanks.")*

Still nothing. Neither as guest nor logged in.

[ ![hikaDash.jpg](/forum/attachment/43978) ](/forum/attachment/43978 "hikaDash.jpg")

- [ ![hikaDash.jpg](/forum/attachment/43978) ](/forum/attachment/43978 "hikaDash.jpg") [ ](/forum/attachment/43978?download=1 "hikaDash.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2RldmVsb3BtZW50Lzg5NDk4MC1pZnJhbWluZy1zcGVjaWZpYy1kYXNoYm9hcmQtY29tcG9uZW50cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

8 years 4 months ago [\#294321](#294321) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Iframing specific dashboard components](/forum/31-development/894980-iframing-specific-dashboard-components#294321 "-- HikaShop version -- : 3.4.0 Business -- Joomla version -- : 3.8.8 -- PHP version -- : 7.x -- Browser(s) name and version -- : chrome / firefox -- Error-message(debug-mod must be tuned on) -- : n/a  Is there any feasible way to iframe (or otherwise display) the #hikashop&#95;dashboard&#95;stat&#95;last&#95;orders div? I need this specific information to show up on another related dashboard site I'm building for the client (who is using hikashop business). They want an 'all-in-1' page, so they don't have to go to the joomla backend of the site.  any suggestions are welcome. thanks.")*

Hi,

Note that you need to initialize the variable $order_type.
So for example, you could add such line at the beginning:
$order_type='sale';
Also, maybe your tag plugin doesn't like that there are these {COUNTER}, {user_email}, etc tags inside the code.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2RldmVsb3BtZW50Lzg5NDk4MC1pZnJhbWluZy1zcGVjaWZpYy1kYXNoYm9hcmQtY29tcG9uZW50cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[derek\_cts](/forum/user/57073-derek-cts "View derek&#95;cts's Profile")**
- [![derek&#95;cts's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/57073-derek-cts "View derek&#95;cts's Profile") Topic Author
- [ Offline](/forum/user/57073-derek-cts)

Less More

- Posts: 20
- Thank you received: 0
-
-

8 years 4 months ago [\#294329](#294329) by [derek\_cts](/forum/user/57073-derek-cts "View derek&#95;cts's Profile")  Replied by *[derek\_cts](/forum/user/57073-derek-cts "View derek&#95;cts's Profile")* on topic *[Iframing specific dashboard components](/forum/31-development/894980-iframing-specific-dashboard-components#294329 "-- HikaShop version -- : 3.4.0 Business -- Joomla version -- : 3.8.8 -- PHP version -- : 7.x -- Browser(s) name and version -- : chrome / firefox -- Error-message(debug-mod must be tuned on) -- : n/a  Is there any feasible way to iframe (or otherwise display) the #hikashop&#95;dashboard&#95;stat&#95;last&#95;orders div? I need this specific information to show up on another related dashboard site I'm building for the client (who is using hikashop business). They want an 'all-in-1' page, so they don't have to go to the joomla backend of the site.  any suggestions are welcome. thanks.")*

What are the allowed $order_type=''; ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2RldmVsb3BtZW50Lzg5NDk4MC1pZnJhbWluZy1zcGVjaWZpYy1kYXNoYm9hcmQtY29tcG9uZW50cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

8 years 4 months ago [\#294340](#294340) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Iframing specific dashboard components](/forum/31-development/894980-iframing-specific-dashboard-components#294340 "-- HikaShop version -- : 3.4.0 Business -- Joomla version -- : 3.8.8 -- PHP version -- : 7.x -- Browser(s) name and version -- : chrome / firefox -- Error-message(debug-mod must be tuned on) -- : n/a  Is there any feasible way to iframe (or otherwise display) the #hikashop&#95;dashboard&#95;stat&#95;last&#95;orders div? I need this specific information to show up on another related dashboard site I'm building for the client (who is using hikashop business). They want an 'all-in-1' page, so they don't have to go to the joomla backend of the site.  any suggestions are welcome. thanks.")*

Hi,

Check the order_type column in the hikashop_order table in your database and you'll see all the types.
In 95% of the cases, you'll only have the "sale" type. You can have another type for the sub-orders generated by HikaMarket for each vendor, and the affiliate system also has another type when you make pay outs to partners for their comissions.
But in your case, you want to use "sale".

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2RldmVsb3BtZW50Lzg5NDk4MC1pZnJhbWluZy1zcGVjaWZpYy1kYXNoYm9hcmQtY29tcG9uZW50cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[derek\_cts](/forum/user/57073-derek-cts "View derek&#95;cts's Profile")**
- [![derek&#95;cts's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/57073-derek-cts "View derek&#95;cts's Profile") Topic Author
- [ Offline](/forum/user/57073-derek-cts)

Less More

- Posts: 20
- Thank you received: 0
-
-

8 years 4 months ago [\#294358](#294358) by [derek\_cts](/forum/user/57073-derek-cts "View derek&#95;cts's Profile")  Replied by *[derek\_cts](/forum/user/57073-derek-cts "View derek&#95;cts's Profile")* on topic *[Iframing specific dashboard components](/forum/31-development/894980-iframing-specific-dashboard-components#294358 "-- HikaShop version -- : 3.4.0 Business -- Joomla version -- : 3.8.8 -- PHP version -- : 7.x -- Browser(s) name and version -- : chrome / firefox -- Error-message(debug-mod must be tuned on) -- : n/a  Is there any feasible way to iframe (or otherwise display) the #hikashop&#95;dashboard&#95;stat&#95;last&#95;orders div? I need this specific information to show up on another related dashboard site I'm building for the client (who is using hikashop business). They want an 'all-in-1' page, so they don't have to go to the joomla backend of the site.  any suggestions are welcome. thanks.")*

Ok, yeah that's what I had. Still not rendering anything when the code is put into the article.

I've checked other php code and it works.

I'm using the same codeset w/ the addition of the line:
Code:

&lt;div id="lastOrders" style="height:500px;"&gt; &lt;?php defined('_JEXEC') OR defined('_VALID_MOS') OR die( "Direct Access Is Not Allowed" ); if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR); if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')) return true; $statisticsClass = hikashop_get('class.statistics'); $order_type='sale'; echo $statisticsClass-&gt;display(array('last_orders' =&gt; array( 'slot' =&gt; 2, 'order' =&gt; 2, 'published' =&gt; 1, 'container' =&gt; 1, 'class' =&gt; 'hkc-lg-8 hkc-sm-12', 'type' =&gt; 'dynamic', 'label' =&gt; JText::_('HIKA_STATS_LAST_ORDERS'), 'vars' =&gt; array( 'COUNTER' =&gt; 6 ), 'prefix' =&gt; '&lt;table style="width:100%" class="table table-striped table-hover table-bordered"&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;'.JText::_('ORDER_NUMBER').'&lt;/th&gt;&lt;th&gt;'.JText::_('ORDER_STATUS').'&lt;/th&gt;&lt;th&gt;'.JText::_('CUSTOMER').'&lt;/th&gt;&lt;th&gt;'.JText::_('DATE').'&lt;/th&gt;&lt;th&gt;'.JText::_('PRICE').'&lt;/th&gt;&lt;/thead&gt;&lt;tbody&gt;', 'dynamic' =&gt; '&lt;tr&gt;&lt;td&gt;{order_number:order_link}&lt;/td&gt;&lt;td&gt;{order_status:order_status}&lt;/td&gt;&lt;td&gt;{user_email}&lt;/td&gt;&lt;td&gt;{order_created:date}&lt;/td&gt;&lt;td&gt;{order_full_price:price}&lt;/td&gt;&lt;/tr&gt;', 'suffix' =&gt; '&lt;/tbody&gt;&lt;/table&gt;', 'format' =&gt; 'text', 'query' =&gt; array( 'get' =&gt; 'list', 'select' =&gt; 'hk_order.*, hk_user.*, hk_order.order_currency_id as currency', 'tables' =&gt; array( hikashop_table('order') . ' AS hk_order', 'INNER JOIN '.hikashop_table('user').' AS hk_user ON hk_order.order_user_id = hk_user.user_id' ), 'filters' =&gt; array( 'order_type' =&gt; 'hk_order.order_type = '.$order_type.'' ), 'order' =&gt; 'hk_order.order_created DESC', 'limit' =&gt; '{COUNTER}' ) ))); ?&gt; &lt;/div&gt;

still not working... suggestions?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2RldmVsb3BtZW50Lzg5NDk4MC1pZnJhbWluZy1zcGVjaWZpYy1kYXNoYm9hcmQtY29tcG9uZW50cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

8 years 4 months ago [\#294359](#294359) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Iframing specific dashboard components](/forum/31-development/894980-iframing-specific-dashboard-components#294359 "-- HikaShop version -- : 3.4.0 Business -- Joomla version -- : 3.8.8 -- PHP version -- : 7.x -- Browser(s) name and version -- : chrome / firefox -- Error-message(debug-mod must be tuned on) -- : n/a  Is there any feasible way to iframe (or otherwise display) the #hikashop&#95;dashboard&#95;stat&#95;last&#95;orders div? I need this specific information to show up on another related dashboard site I'm building for the client (who is using hikashop business). They want an 'all-in-1' page, so they don't have to go to the joomla backend of the site.  any suggestions are welcome. thanks.")*

Hello,

Your $order_type is not quoted.
I don't understand why you do not have a query error.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2RldmVsb3BtZW50Lzg5NDk4MC1pZnJhbWluZy1zcGVjaWZpYy1kYXNoYm9hcmQtY29tcG9uZW50cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.065 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
