Jump to content



- - - - -

Master Products - But Different


  • Please log in to reply
20 replies to this topic

#21 ONLINE   Mort-lemur

Mort-lemur
  • Members
  • 1,708 posts
  • Real Name:Heather
  • Gender:Female
  • Location:UK

Posted Today, 11:04 AM

@toyicebear Thanks Nick, I was calling up the table rather than the table query..... - just one step away from getting this working now - but again struggling with a bit of code as follows:

  if ($product_info['products_mult'] == '0') {
  if ($products_options['price_prefix'] == '+') {
		   $price_with_attribute = ($product_info['products_price'] + $products_options['options_values_price']);
} else {
	$price_with_attribute = ($product_info['products_price'] - $products_options['options_values_price']);
		  }
	  ?>
			<tr>
			  <td class="main" align="center">
		 <?php echo $products_options[''];
			   echo tep_draw_hidden_field('a[]', $products_options['products_options_values_id']);
			   echo tep_draw_hidden_field('b[]',$products_options_name['products_options_id']); ?>	   </td>
	   <td class="main" align="center">
  <?php /* uncomment if you want to show the model number
		echo $product_info['products_model']; */
   ?>
	   </td>
			  <td class="main" align="center">&nbsp;<?php echo $currencies->display_price($price_with_attribute, tep_get_tax_rate($product_info['products_tax_class_id'])); ?></td>
			  <td class="main" align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo tep_draw_input_field('quantity[]',$value = '0',"size=2");?></td>
			<td class="main" align="center"><?php echo $ProdOpt_Comment . ':'; ?><br></td>
   </tr>
	 <?php
	 $x++; 
   
	}
	} else {
	}
	   
}
		if (is_string($HTTP_GET_VARS['products_id']) && isset($cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']])) {
		  $selected_attribute = $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']];
		} else {
		  $selected_attribute = false;
		}

if ($product_info['products_mult'] == '0') { 
// BOF Option types v2: Change layout of drop down
?>
	  <div class="clear"></div>
	  <div class="option select">
		<div class="name"><?php echo $products_options_name['products_options_name'] . ' :' ; ?></div>
		<div class="Desc"><?php echo $longDesc; ?></div>
  <div class="comment"><?php echo $ProdOpt_Comment ; ?></div>
		<div class="content"><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute); ?></div>
	  </div>
<?php
}
// EOF Option types v2: Change ;layout of drop down 

Now running on a fully modded 2.3.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.