Subversion Repositories SmartDukaan

Rev

Rev 16630 | Rev 16665 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16630 Rev 16633
Line 92... Line 92...
92
    <?php
92
    <?php
93
    	//print_r($product_detail->dtrAffiliateJSON->map->products->myArrayList);
93
    	//print_r($product_detail->dtrAffiliateJSON->map->products->myArrayList);
94
		function callback ( $a, $b ){
94
		function callback ( $a, $b ){
95
			return $a->map->available_price >=$b->map->available_price;  
95
			return $a->map->available_price >=$b->map->available_price;  
96
		}
96
		}
-
 
97
		
97
		$storeObj = $product_detail->dtrAffiliateJSON->map->products->myArrayList;
98
		$storeObj1 = $product_detail->dtrAffiliateJSON->map->products->myArrayList;
-
 
99
		$storeObj = array();
-
 
100
		for ($x=0;$x < count($storeObj1);$x++){
-
 
101
	  		if($storeObj1[$x]->map->source_id == 6){
-
 
102
	  			continue;
-
 
103
	  		}
-
 
104
	  		array_push($storeObj, $storeObj1[$x]);
-
 
105
	  	}
-
 
106
		
98
		usort( $storeObj , callback );
107
		usort( $storeObj , callback );
99
    ?>
108
    ?>
100
    <?php if($instock){?>
109
    <?php if($instock){?>
101
        <div class="price-hldr" itemprop="offerDetails" itemscope itemtype="http://data-vocabulary.org/Offer">
110
        <div class="price-hldr" itemprop="offerDetails" itemscope itemtype="http://data-vocabulary.org/Offer">
102
          <meta itemprop="priceCurrency" content="INR" />
111
          <meta itemprop="priceCurrency" content="INR" />
Line 192... Line 201...
192
      <div class="clearfix"></div>
201
      <div class="clearfix"></div>
193
      <div class="pd-tab-open" id="tab7" style="display:none;">
202
      <div class="pd-tab-open" id="tab7" style="display:none;">
194
	  <?php
203
	  <?php
195
	  	$storeItemMap = array();
204
	  	$storeItemMap = array();
196
	  	foreach ($storeObj as $storeItem){
205
	  	foreach ($storeObj as $storeItem){
197
	  		//print_r($storeItem);
-
 
198
	  		//print_r("<br/>");
-
 
199
	  		if (!isset($storeItemMap[$storeItem->map->source_id])){
206
	  		if (!isset($storeItemMap[$storeItem->map->source_id])){
200
	  			$storeItemMap[$storeItem->map->source_id] = array(); 
207
	  			$storeItemMap[$storeItem->map->source_id] = array(); 
201
	  		}
208
	  		}
202
	  		array_push($storeItemMap[$storeItem->map->source_id],$storeItem->map); 
209
	  		array_push($storeItemMap[$storeItem->map->source_id],$storeItem->map); 
203
	  	} 
210
	  	}