Custom delivery point picker
Most online stores want full control over how customers can choose the delivery location at checkout.
Many themes, such as Flatsome, have their own templates for defining the display of checkout (cart and checkout).
Templates from the theme override templates from the Wildrobot Logistra integration plugin.
So it will override and the delivery location selector will not be displayed. To show the selector, you can add this code snippet to your woocommerce/cart/cart-shipping.php template file.
If you are using the Flatsome theme, you can use this file. (Remove "-flatsome" from the filename so it is just named cart-shipping.php. This file is from Flatsome version 3.15.3).
Then it should be displayed as soon as you turn it on in the settings and have a delivery with a delivery location. If you want to make changes to how it looks, you can copy this file into your own theme and change it as desired. You will likely need to create the /woocommerce and /cart folders where you place the file.
Attachment icon
cart-shipping-flatsome.php
Attachment icon
cart-shipping.php
Many themes, such as Flatsome, have their own templates for defining the display of checkout (cart and checkout).
Templates from the theme override templates from the Wildrobot Logistra integration plugin.
So it will override and the delivery location selector will not be displayed. To show the selector, you can add this code snippet to your woocommerce/cart/cart-shipping.php template file.
<?php if (is_checkout() && get_option("wildrobot_logistra_pickuppoint_checkout_inline") === "yes") : ?>
<?php $service_partner_object = apply_filters("logistra_robots_service_partner_select", null, $args) ?>
<?php if ($service_partner_object && $service_partner_object->service_partner_possible) : ?>
<tr class="woocommerce-wildrobot-pickuppoint-checkout-inline">
<th><?php echo __('Utleveringssted', 'logistra-robots'); ?></th>
<td>
<?php
woocommerce_form_field("logistra_robots_select_servicepartner", [
'type' => 'select',
'class' => array('logistra_robots_select_servicepartner form-row-wide'),
'required' => false,
'options' => $service_partner_object->service_partner_select_values,
'customAttributes' => [
'style' => 'font-weight: bold;'
]
]);
?>
</td>
</tr>
<?php endif; ?>
<?php endif; ?>
If you are using the Flatsome theme, you can use this file. (Remove "-flatsome" from the filename so it is just named cart-shipping.php. This file is from Flatsome version 3.15.3).
Then it should be displayed as soon as you turn it on in the settings and have a delivery with a delivery location. If you want to make changes to how it looks, you can copy this file into your own theme and change it as desired. You will likely need to create the /woocommerce and /cart folders where you place the file.
Attachment icon
cart-shipping-flatsome.php
Attachment icon
cart-shipping.php
Updated on: 06/06/2024
Thank you!