Skip to content

Instantly share code, notes, and snippets.

@drmmr763
Created June 18, 2014 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drmmr763/f623c2fd9379c48bd74a to your computer and use it in GitHub Desktop.
Save drmmr763/f623c2fd9379c48bd74a to your computer and use it in GitHub Desktop.
why i hate virtuemart
<?php
foreach ($this->product->customfieldsSorted['normal'] as $field) {
if ( $field->is_hidden ) //OSP http://forum.virtuemart.net/index.php?topic=99320.0
continue;
if ($field->display) {
if($field->virtuemart_custom_id == 3) {
$Dimension = $field->custom_value;
} else if($field->virtuemart_custom_id == 4) {
$Graphs = $field->custom_value;
} else if($field->virtuemart_custom_id == 5) {
$Material = $field->custom_value;
} else if($field->virtuemart_custom_id == 6) {
$Reflow = $field->custom_value;
} else if($field->virtuemart_custom_id == 11) {
$Leaded = $field->custom_value;
} else if($field->virtuemart_custom_id == 12) {
$Leadfree = $field->custom_value;
} else if($field->virtuemart_custom_id == 13) {
$Notes = $field->custom_value;
} else if($field->virtuemart_custom_id == 109) {
$Series_Intro = $field->custom_value;
} else if($field->virtuemart_custom_id == 113) {
$Maximum_Quantity_per_Reel = $field->custom_value;
} else if($field->virtuemart_custom_id == 114) {
$Reel_Diameter = $field->custom_value;
} else if($field->virtuemart_custom_id == 115) {
$Pitch_Between_Parts = $field->custom_value;
} else if($field->virtuemart_custom_id == 116) {
$Tape_Width = $field->custom_value;
} else if($field->virtuemart_custom_id == 117) {
$Class_No = $field->custom_value;
} else if($field->virtuemart_custom_id == 110) {
$Weight_in_Grams = $field->custom_value;
} else if($field->virtuemart_custom_id == 111) {
$Standard_Termination_Finishes = $field->custom_value;
} else if($field->virtuemart_custom_id == 112) {
$Lead_Free_Termination_Finishes = $field->custom_value;
} else if($field->virtuemart_custom_id == 121) {
$Pb_and_RoHS = $field->custom_value;
} else if($field->virtuemart_custom_id == 122) {
$Pb_Only = $field->custom_value;
} else if($field->virtuemart_custom_id == 123) {
$RoHS_Only = $field->custom_value;
}
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment