/** * Assembles the $child_options variable for storage in the product table * * @param unknown_type $d * @return unknown */ function set_child_options($d) { if ($d["product_parent_id"] != 0) { $child_options = null; } else { $child_options = vmrequest::getYesOrNo('display_use_parent') . "," . vmGet($d, 'product_list', 'N') . "," . vmrequest::getYesOrNo('display_headers') . "," . vmrequest::getYesOrNo('product_list_child') . "," . vmrequest::getYesOrNo('product_list_type') . "," . vmrequest::getYesOrNo('display_desc') . "," . vmrequest::getVar('desc_width') . "," . vmrequest::getVar('attrib_width') . "," . vmrequest::getVar('child_class_sfx'); } return $child_options; }
* @copyright Copyright (C) 2009 soeren - All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * VirtueMart is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details. * * http://virtuemart.net */ mm_showMyFileName(__FILE__); if (!isset($_REQUEST["shopper_id"]) || empty($_REQUEST["shopper_id"])) { echo $VM_LANG->_('VM_CHECKOUT_ORDERIDNOTSET'); } else { include CLASSPATH . "payment/ps_ipayment.cfg.php"; $order_number = vmrequest::getVar('shopper_id'); $q = 'SELECT order_id,order_total,order_status,order_currency FROM #__{vm}_orders WHERE '; $q .= '#__{vm}_orders.user_id= ' . $auth["user_id"] . "\n"; $q .= 'AND #__{vm}_orders.order_number=\'' . $db->getEscaped($order_number) . "'"; $db->query($q); if ($db->next_record()) { if (vmRequest::getVar('ret_status') == 'SUCCESS') { ?> <img src="<?php echo VM_THEMEURL; ?> images/button_ok.png" align="middle" alt="<?php echo $VM_LANG->_('VM_CHECKOUT_SUCCESS'); ?> " border="0" />