Dear Expers,
I would like to ask for help as my skills are not enough to crack this ![]()
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 -%}