Spade

Mini Shell

Directory:~$ /proc/self/root/tmp/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ //proc/self/root/tmp/phpj9GyUV

HIKAPARENTCHILD_PLUGIN_NAME="HikaShop: Parent-Child Custom Field"
HIKAPARENTCHILD_PLUGIN_DESC="HikaShop: Parent-Child Custom Field for
simulating parent-child relation for hikashop users"
HIKAPARENTCHILD="Hika Parentchild"
HIKAPARENTCHILD_OPTIONS="Hika Parentchild Options"
HIKAPARENTCHILD_WARNING="The
<strong>\"hilation\"</strong> component is not
installed or not active on your Joomla. This plugin is completed with this
component. But you can also use other tables from the database. For
example, you might want to implement the parent-child model using the
Community Builder and its additional fields."
HIKAPARENTCHILD_PLUGIN_SETUP_WARNING="Don't forget to select this
field in <a href='%s'>HikaParentChild plugin
setting</a> after saving this custom field."

HIKAPARENTCHILD_CODE_EXAMPLE="This code is executed in the body of the
<a
href='https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#onAfterOrderUpdate'><strong>onAfterOrderUpdate</strong></a>
function. For a better experience, you can use the following code sample.
If you don't know what this function is or what it does, leave the
above field blank<pre>
if($params->get('customfield', 0))
{
  if(empty($order->cart)) {
    $orderClass = hikashop_get('class.order');
    $order->cart = $orderClass->loadFullOrder($order->order_id,
false, false);
  }
  if(empty($order->cart->products))
  {
    $customfield = $params->get('customfield', 0);
    $db = JFactory::getDbo();
    $query = $db->getQuery(true);
    $query->select(array('p.*', 'op.' .
$customfield));
   
$query->from($db->quoteName('#__hikashop_order_product',
'op'));
    $query->join('INNER',
$db->quoteName('#__hikashop_order', 'o') . ' ON
' . $db->quoteName('o.order_id') . ' = ' .
$db->quoteName('op.order_id'));
    $query->join('INNER',
$db->quoteName('#__hikashop_product', 'p') . '
ON ' . $db->quoteName('p.product_id') . ' = ' .
$db->quoteName('op.product_id'));
    $query->where($db->quoteName('o.order_id') . ' =
' . $db->quote($order->order_id));
    $db->setQuery($query);
    if(!isset($order->cart))
      $order->cart = new stdClass;
    $order->cart->products = $db->loadObjectList();
  }
  if($order->order_status == 'confirmed' &&
!empty($order->cart->products))
  {
    
    
    // ---> your code should be here! <---
    
    
  }
}</pre>"
HIKAPARENTCHILD_ONAFTERORDERUPDATE="On after order update"
HIKAPARENTCHILD_ONAFTERORDERUPDATE_DESC="This code is executed in the
body of the <a
href='https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#onAfterOrderUpdate'>\"onAfterOrderUpdate\"</a>
function. For a better experience, you can use the following code sample.
If you don't know what this function is or what it does, leave this
field blank"HIKAPARENTCHILD_PLUGIN_NAME="HikaShop: Parent-Child
Custom Field"
HIKAPARENTCHILD_PLUGIN_DESC="HikaShop: Parent-Child Custom Field for
simulating parent-child relation for hikashop users"
HIKAPARENTCHILD="Hika Parentchild"
HIKAPARENTCHILD_OPTIONS="Hika Parentchild Options"
HIKAPARENTCHILD_WARNING="The
<strong>\"hilation\"</strong> component is not
installed or not active on your Joomla. This plugin is completed with this
component. But you can also use other tables from the database. For
example, you might want to implement the parent-child model using the
Community Builder and its additional fields."
HIKAPARENTCHILD_PLUGIN_SETUP_WARNING="Don't forget to select this
field in <a href='%s'>HikaParentChild plugin
setting</a> after saving this custom field."

HIKAPARENTCHILD_CODE_EXAMPLE="This code is executed in the body of the
<a
href='https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#onAfterOrderUpdate'><strong>onAfterOrderUpdate</strong></a>
function. For a better experience, you can use the following code sample.
If you don't know what this function is or what it does, leave the
above field blank<pre>
if($params->get('customfield', 0))
{
  if(empty($order->cart)) {
    $orderClass = hikashop_get('class.order');
    $order->cart = $orderClass->loadFullOrder($order->order_id,
false, false);
  }
  if(empty($order->cart->products))
  {
    $customfield = $params->get('customfield', 0);
    $db = JFactory::getDbo();
    $query = $db->getQuery(true);
    $query->select(array('p.*', 'op.' .
$customfield));
   
$query->from($db->quoteName('#__hikashop_order_product',
'op'));
    $query->join('INNER',
$db->quoteName('#__hikashop_order', 'o') . ' ON
' . $db->quoteName('o.order_id') . ' = ' .
$db->quoteName('op.order_id'));
    $query->join('INNER',
$db->quoteName('#__hikashop_product', 'p') . '
ON ' . $db->quoteName('p.product_id') . ' = ' .
$db->quoteName('op.product_id'));
    $query->where($db->quoteName('o.order_id') . ' =
' . $db->quote($order->order_id));
    $db->setQuery($query);
    if(!isset($order->cart))
      $order->cart = new stdClass;
    $order->cart->products = $db->loadObjectList();
  }
  if($order->order_status == 'confirmed' &&
!empty($order->cart->products))
  {
    
    
    // ---> your code should be here! <---
    
    
  }
}</pre>"
HIKAPARENTCHILD_ONAFTERORDERUPDATE="On after order update"
HIKAPARENTCHILD_ONAFTERORDERUPDATE_DESC="This code is executed in the
body of the <a
href='https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#onAfterOrderUpdate'>\"onAfterOrderUpdate\"</a>
function. For a better experience, you can use the following code sample.
If you don't know what this function is or what it does, leave this
field blank"<html><body
bgcolor="#FFFFFF"></body></html><html><body
bgcolor="#FFFFFF"></body></html>