Variables for selected Delivery Dates and Time Slots (Magento)

Variables for Delivery Dates and Time Slots (Magento)

If you are using Estimated Delivery Dates or Selected Delivery Dates and Time Slots features from Calcurates you may utilize 'date' or 'time' variables for your email or PDF templates in the Magento admin.
Use the following code to insert the variable:
  1. {{block class="Calcurates\ModuleMagento\Block\Order\DeliveryDateTime" type="date" area="frontend" order=$order order_id=$order_id template="Calcurates_ModuleMagento::order/delivery_date_time.phtml"}}
The parameter type may have 2 values:
  1. "date"
  2. "time"
You should insert this particular code in the Email Templates > "Insert Variables" modal window.
order=$order is used for older Magento versions, while order_id=$order_id is used in newer versions, where transfer of objects is prohibited.
Therefore the above code should work for all Magento versions.

Adding variables into the Amasty One Step Checkout success page

Unzip the file ( - attached) into your theme folder.

    • Related Articles

    • How to set Delivery Dates display format in Magento module config

      There are 2 additional settings available in the Calcurates Magento 2 module config, that are responsible for the display of Delivery Dates info at checkout. Ignore these settings if you don’t have “Delivery Dates” feature activated for your ...
    • How Delivery Dates feature works

      Video: How to Set Up Shipping Segments and Rules in Calcurates How to add Delivery Dates feature To add the Delivery Dates advanced feature to your Calcurates account you can in the left menu in the section Pro Features. Pricing for Delivery Dates ...
    • How to set up In-Store Pickup

      Video: How to Set Up In-Store Pickup in Calcurates General Information In-Store Pickup is a handy feature that we offer. It enables a new shipping option type that will allow your customers to choose in-Store Pickup on checkout and see the available ...
    • How Rate Shopping feature works

      Add Rate Shopping Feature Rate Shopping is an advanced feature that we offer and it can be added to your account in the section Shipping Options as Custom Shipping Options. Rate Shopping Logic Rate Shopping is a complex shipping option that will ...
    • How Product Page Widget feature works

      General Information Product Page Widget (aka Shipping on Product Pages) is an advanced feature that is available in the left menu in the section Pro Features. Product Page Widget allows you to provide your customers with certain shipping methods and ...