Shortcode for delivery slot
-
Hi,
I am not sure if this is possible with the plugin at all: On my webshop I use the plugin “delivery slots”. https://woocommerce.com/products/delivery-slots-for-woocommerce/?quid=0295ddc0e5b8ecad5fe2529e02de3f1f
Clients can choose a time slot for their delivery. I would like to output the slot a client has cosen on the invoice template (germanized plugin) by using a shortcode.I am not quite sure if and how I can generate a shortcode for the delivery slots and would be thankful for any help.
Best regards
Stefanie
This is the code the plugin “delivery slots” uses:
<?php
/**
* This template displays the order delivery details.
*
* This template can be overridden by copying it to yourtheme/delivery-slots-for-woocommerce/templates/order-delivery-details.php
*
* To maintain compatibility, Delivery Slots for WooCommerce will update the template files and you have to copy the updated files to your theme
*/
if ( ! defined( ‘ABSPATH’ ) ) {
exit ; // Exit if accessed directly.
}foreach ( $delivery_details as $key => $delivery_detail ) :
?>
<p class=”dey-delivery-order-details dey-delivery-order-<?php echo esc_attr( str_replace( ‘_’ , ‘-‘ , $key ) ) ; ?>”>
<span><?php echo esc_html( $delivery_detail[ ‘label’ ] ) ; ?></span>
<?php echo wp_kses_post( $delivery_detail[ ‘value’ ] ) ; ?>
</p>
<?php
endforeach ;
- The topic ‘Shortcode for delivery slot’ is closed to new replies.