<modification>
	<id>CAPHomey</id>
	<version>1.0</version>
	<vqmver>1.2.3</vqmver>
	<author>grgr</author>
	


	
	
		<file name="catalog/view/theme/default/template/common/header.tpl">
        <operation>
            <search position="after"><![CDATA[
    <div id="logo"><a href="<?php echo $home; ?>"><img src="<?php echo $logo; ?>" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" /></a>
            ]]></search>
            <add><![CDATA[
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.galliumgroup.com/"><font size="1">Back to MAIN HOME</font></a>
            ]]></add>
        </operation>
	</file>
	
	
	
	<file name="catalog/controller/checkout/success.php">

        <operation>
            <search position="before"><![CDATA[
 $this->language->load('checkout/success');
            ]]></search>
            <add><![CDATA[
     
     
    ///////

$bought=170; ///convert to builder
$othergroupZ43old=30;
$othergroupZ43=15;

$bought1=1;
$bought=26614; ///convert to HOA group=35
$othergroupZ43old=8; ///default
$othergroupZ43old1=37;
$othergroupZ43old2=38;
$othergroupZ43=35;  //new place to go

$table_name47 = "order_product";
$table_name42 = "order_history";
$table_name41 = "order";
$table_name36 = "customer";
//$db_name="capchurc_gotool"; 
$host="localhost";


$db_name="galliumo_fillin"; 
$user="galliumo_org";  
$password="f*r25Get"; 

$connection = @mysqli_connect($host,$user,$password) or die(mysqli_error($connection));
//$db = @mysqli_select_db($connection,$db_name) or die(mysqli_error($connection));

$text_account3 = sprintf($this->customer->getId());

if ($bought1>0){

$sq112abSz="SELECT * FROM $db_name.$table_name41 WHERE customer_id ='$text_account3' ";
$result112abz = @mysqli_query($connection,$sq112abSz) or die(mysqli_error($connection));
 $num3334bT29z = mysqli_num_rows($result112abz);

if ($num3334bT29z>0) {
	 $bodpay1=$num3334bT29z;
	    $result222abT9z = @mysqli_query($connection,$sq112abSz) or die(mysqli_error($connection));
	while ($row1bSz = mysqli_fetch_array($result222abT9z)) {
	
	$ProductZ="product_id =$bought" ;
	 
	 $order7=  $row1bSz['order_id'];
	 $total7= $row1bSz['total'];

  $sq112abS1z="SELECT * FROM $db_name.$table_name47 WHERE order_id ='$order7' AND ( $ProductZ ) ";

		$result112ab1z = @mysqli_query($connection,$sq112abS1z) or die(mysqli_error($connection));
		 $num3334bT291z = mysqli_num_rows($result112ab1z); 
	if ($num3334bT291z>0) {

$sq112abS1ac="SELECT * FROM $db_name.$table_name42 WHERE order_id ='$order7'  AND order_status_id > '0'";
		$result112ab1ac = @mysqli_query($connection,$sq112abS1ac) or die(mysqli_error($connection));
 $num3334bT291ac = mysqli_num_rows($result112ab1ac);

 If ($num3334bT291ac>0){
 
 $sql2 = "UPDATE $table_name36 SET   customer_group_id='$othergroupZ43',status='1'  WHERE customer_id='$text_account3' AND customer_group_id ='$othergroupZ43old'" ; //add support_id the opportunity to be part of the $nameCustG[$groupS4]
$result2 = @mysqli_query($connection,$sql2) or die(mysqli_error($connection));



 $sql2 = "UPDATE $table_name36 SET   customer_group_id='$othergroupZ43',status='1'  WHERE customer_id='$text_account3' AND customer_group_id ='8'" ; //add support_id the opportunity to be part of the $nameCustG[$groupS4]
$result2 = @mysqli_query($connection,$sql2) or die(mysqli_error($connection));

$sql2 = "UPDATE $table_name36 SET   customer_group_id='$othergroupZ43',status='1'  WHERE customer_id='$text_account3' AND customer_group_id ='0'" ; //add support_id the opportunity to be part of the $nameCustG[$groupS4]
$result2 = @mysqli_query($connection,$sql2) or die(mysqli_error($connection));



 
// $totalPaid=$totalPaid+$total7;
 }
 }
 }
 }

}


/////

///// 
     
     
            ]]></add>
        </operation>
	</file>

	
	
	
	<file name="catalog/controller/product/product.php">
		<operation>
			<search position="before"><![CDATA[
				if ($product_info) {
			]]></search>
			<add><![CDATA[
				if ($product_id == 415 OR $product_id == 416 OR $product_id == 419 OR $product_id == 420) {
					$this->data['show_product_text'] = 1;
				}
			]]></add>
		</operation>
	</file>

	<file name="catalog/view/theme/default/template/product/product.tpl">
        <operation>
            <search position="after"><![CDATA[
   <h1><?php echo $heading_title; ?></h1>
            ]]></search>
            <add><![CDATA[
			<?php if (isset($show_product_text)) { ?>
				<font size="4" color="#921a2a">Please enter your credentials below. You can also register others in the Additional Attendee Section. You will pay for them at Checkout. More information about this event is in the Description section at the bottom of the page.<br/>
				<br/></font>
			<?php } ?>
            ]]></add>
        </operation>
	</file>
		
	
	
	
	<file name="catalog/view/theme/default/template/checkout/cart.tpl">
        <operation>
            <search position="after"><![CDATA[
   <h1><?php echo $heading_title; ?>
            ]]></search>
            <add><![CDATA[
        <br/><font size="3" color="#921a2a">To add more or update attendees/items, hit the edit button. Use the remove function below to remove unwanted registrations/items. <br/>Click CART at the top to get back to your CART.</font><br/>
            ]]></add>
        </operation>
	</file>
			
	
	
	

</modification>
