How to modify post checkout script for pickup point selection?

Dear Expers,

I would like to ask for help as my skills are not enough to crack this :slightly_smiling_face:

I have in checkout additional scripts code for pickup point selection.

Now I would need after this script call following address:

https://www.heureka.cz/direct/dotaznik/objednavka.php?id=ed41fb4d2c6c09d7a27e25f6f227ba01&email=[email removed]&itemId=yyyyy&orderid=zzzzz

where xxxx should be customer email

yyyy should be product SKU

zzzz should be order number

Would really help if someone could guide me.

I’m adding also current script:

{%- comment -%}
Zasilkovna start
{%- endcomment -%}
{% assign zasilkovna_shipping_method_name = “zásilkovna” %}
{% assign zasilkovna_api_key = “549d1fdde5bd54be” %}

{% assign zasilkovna_selected_heading = “Výdejní místo vybráno” %}
{% assign zasilkovna_selected_text = “Zásilku pošleme na výdejní místo:” %}

{% assign zasilkovna_not_selected_heading = “Kam to bude?” %}
{% assign zasilkovna_not_selected_text = “Vyber výdejní místo Zásilkovny.” %}
{%- comment -%}
Zasilkovna config end - please don’t change anything after this
{%- endcomment -%}
{% assign zasilkovna_method = false %}
{% for shipping_method in order.shipping_methods %}
{% assign shipping_method_name = shipping_method.title|downcase %}
{% assign downcase_zasilkovna_shipping_method_name = zasilkovna_shipping_method_name|downcase %}
{% if shipping_method_name contains downcase_zasilkovna_shipping_method_name %}
{% assign zasilkovna_method = true %}
{% endif %}
{% endfor %}

{% for attr in order.attributes %}
{% assign attr_name = attr|first %}
{% if attr_name == “PickupPointName” %}
{% assign zasilkovna_name = attr|last %}
{% assign pickup_point = zasilkovna_name %}
{% endif %}
{% endfor %}

{%if zasilkovna_method %}
{% assign order_hmac = order.id | hmac_sha256:“08ad7cda14b6de7cffa662ffcdf9ddc8b137a95a5991fb7819376cb84cf97c61” %}

{%endif%}

{%- comment -%}
Zasilkovna end
{%- endcomment -%}

Hi friend, our agency developed a zásilkovna app so you can sure try emailing our support (apps@soundsgood.agency) and we could sure make a deal with you regarding doing some customization of the app :slightly_smiling_face:

If you could describe some more what exactly you want to do with the "

https://www.heureka.cz/direct/dotaznik/objednavka.php?id=ed41fb4d2c6c09d7a27e25f6f227ba01&email=[email removed]&itemId=yyyyy&orderid=zzzzz" i might be able to give you an advice.

But besides all that I also took a look at your code and you have a lot of things there with which that code can no longer function.

Shopify updated deleted all of the “order.” commands.

So you have to change your “order.shipping_methods” to “checkout.shipping_methods”, “order.attributes” to “checkout.attributes” and “order.id” to “checkout.order_id”. :slightly_smiling_face:

While not a solution, I wanted to share our experience that having pickup point selection after checkout led to:

  • Many missed sales, as customers were hesitant to complete payment because they were unsure about selecting a pickup location
  • An increase in after-sales support, with customers choosing parcel locker deliveries for items too large or heavy to fit in the locker compartments, or just leaving the “thank you” page before selecting a location

Therefore, if you can offer point selection at the checkout step (before the order confirmation page), it should improve your conversion rate.