Lorraine
Forum Replies Created
-
Forum: Plugins
In reply to: [Gravity PDF] Squares appearing in the pdfHi Jake
I resolved the issue yesterday – thanks anyway – It was caused by quotes in the text which when I removed them (‘) – removed the boxes
ThanksForum: Plugins
In reply to: [Gravity PDF] Squares appearing in the pdfHi Jake,
Please see the following pdf and you will see the squares on the second page;
https://norberttestsite.ie/hrs/?gf_pdf=1&fid=3&lid=8&template=example-hrstemp.php
Thanks & Regards,Forum: Plugins
In reply to: [Gravity PDF] conditional logic in template fileHi Jake,
The field is a drop down – When I wrap the == in the strong code it breaks it…
My code below doesn’t work…any help would be greatly appreciated
<?php$contract = $form_data[‘field’][15][‘Contract-Type’];
if ($contract == ‘Full-Time-Permanent’)
{
echo “Annual Leave and Holiday Pay Entitlement:
The company holiday year runs from April 1st to March 31st each year. You will be paid 20 days holidays a year once 1365 hours are worked. Leave may be restricted during busy periods. No annual leave days may be carried over to the next holiday year. You must keep enough holidays to cover fixed annual leave over shut down periods. Holiday pay is based on your current normal rate of remuneration. “;
}
else {
echo ” Annual Leave and Holiday Pay Entitlement:
The company holiday year runs from April 1st to March 31st each year. You will be entitled 8 % of the hours worked as annual leave. Leave may be restricted during busy periods. No annual leave days may be carried over to the next holiday year. You must keep enough holidays to cover fixed annual leave over shut down periods. Holiday pay is based on your current normal rate of remuneration. “;
}?>
Forum: Plugins
In reply to: [WooCommerce] Adding a new drop-down field to billing address formyes tried adding that to functions.php and it crashes my site.. ??
Forum: Plugins
In reply to: [WooCommerce] Adding a new drop-down field to billing address formHi,
I’m looking to do something similar with the postcode field. I want a drop-down instead of a text field – I’ve tried editing the code above to suit – but can’t get it working – help please?code:
// Hook in add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' ); // Our hooked in function - $fields is passed via the filter! function custom_override_checkout_fields( $fields ) { $fields['billing']['billing_postcode'] = array( 'label' => __('Postcode', 'woocommerce'), 'placeholder' => _x('Postcode', 'placeholder', 'woocommerce'), 'required' => false, 'clear' => false, 'type' => 'select', 'class' => false, 'options' => array( 'option_a' => __('option a', 'woocommerce' ), 'option_b' => __('option b', 'woocommerce' ) ) ); return $fields; }