Function Reference: geodir_package_price_form

Summary

This function has not been documented yet.

Actions

‘geodir_payment_package_extra_fields’ [Line: 529]

Filters

‘geodir_subscription_supported_by’ [Line: 228]

Source Code

function geodir_package_price_form()
{
global $wpdb, $price_db_table_name;
$priceinfo = array();
if(isset($_REQUEST[‘id’]) && $_REQUEST[‘id’]!=”)
{
$pid = (int)$_REQUEST[‘id’];

$pricesql = $wpdb->prepare(“select * from “.GEODIR_PRICE_TABLE.” where pid=%d”,array($pid));
$priceinfo = $wpdb->get_results($pricesql);

}

$sub_num_trial_units = isset( $priceinfo[0]->sub_num_trial_units ) && !empty( $priceinfo[0]->sub_num_trial_units ) ? $priceinfo[0]->sub_num_trial_units : ‘D’;
$sub_num_trial_units = in_array( $sub_num_trial_units, array( ‘D’, ‘W’, ‘M’, ‘Y’ ) ) ? $sub_num_trial_units : ‘D’;
$sub_num_trial_units_options = geodir_payment_get_sub_num_trial_units( $sub_num_trial_units );
$has_upgrades = isset($priceinfo[0]->has_upgrades) && (int)$priceinfo[0]->has_upgrades == 1 ? 1 : 0;
$disable_coupon = isset($priceinfo[0]->disable_coupon) && (int)$priceinfo[0]->disable_coupon == 1 ? 1 : 0;
?>



sub_active) && $priceinfo[0]->sub_active != ”){echo ‘checked=”checked”‘;}?>>
sub_active) && $priceinfo[0]->sub_active != ”){echo ‘style=”display:none”‘;}?> >

sub_active) || $priceinfo[0]->sub_active == ”){echo ‘style=”display:none”‘;}?> >

sub_active) || $priceinfo[0]->sub_active == ”){echo ‘style=”display:none”‘;}?>>

sub_active) || $priceinfo[0]->sub_active = ”){echo ‘style=”display:none”‘;}?>>

>

>

hide_related_tab ) && (int)$priceinfo[0]->hide_related_tab == 1 ? 1 : 0; ?>

sub_num_trial_days) && $priceinfo[0]->sub_num_trial_days >0){echo ‘checked=”checked”‘;}?> >



 
post_type) || $priceinfo[0]->post_type==”)
{
_e(‘You can only exclude categories once saved.’, ‘geodir_payments’);
}
else
{
/*if($priceinfo[0]->cat)
{
$catarr = explode(‘,’,$priceinfo[0]->cat);
}*/
?>

cat);
echo $post_type_array[‘html_cat’];
?>

(if removing a parent category, you should remove its child categories.’, ‘geodir_payments’);?>


packages as users will not be able to remove that category from the frontend.)’, ‘geodir_payments’);?>

downgrade_pkg) ? $priceinfo[0]->downgrade_pkg : ”;
$post_type_array = geodir_fields_list_by_posttype($post_type, $request_id, $select_dpkg);
echo $post_type_array[‘downgrade’];
?>






0 0