Jump to content
mockuss

Lietuvos pašto sekimo url adresas

Recommended Posts

Sveiki kolegos,

atnaujino Leituvos pašto saitas ir pasikeite pašto sekimo url adresas, dabar neveikia per presta, ankšciau url adresas buvo toks http://www.post.lt/en/help/parcel-search/index?num=@ dabar yra toks url http://www.post.lt/en/help/parcel-search, ir neisivaizduoju kaip tą url irašyt kad rodytų, nes dabar naujam url adrese neliko išvis sekimo numerio, jo nerodo. Kaip Jus išsprendėte šią problemą???

Share this post


Link to post
Share on other sites

Jeigu kam idomu dar...

Lietuvos paštas, siuntų sekimas. post.lt shipment tracking

I sajto "root" failiuka:

post.lt-track.php (tik pakoreguokit jūsų LANG)

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>www.post.lt - Tracking</title>
</head>
<body onLoad="Forma1.submit()">
<?php
// @metacreo
// tracking url:  https://your_prestashop_domain/post.lt-track.php?num=@ //
$num = $_GET['num'];
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
switch ($lang){
    case "en":
        $action = 'https://post.lt/en/help/parcel-search';
        break;
    case "lt":
        $action = 'https://post.lt/lt/pagalba/siuntu-paieska';
        break;
    case "ru":
        $action = 'https://post.lt/en/help/parcel-search';
        break;
}
echo $lang;
?>
<form name="Forma1" action="<?php echo $action ?>" method="post">
<input name="parcel_numbers" value="<?php echo $num ?>" type="hidden">
<input name="form_id" value="shipment_tracking_search_form" type="hidden">
</form>
</body>
</html>

BO: Shipping > Carriers > post.lt

tracking url:  https://your_prestashop_domain/post.lt-track.php?num=@

failiuką pridėdu, nepamirškit pakoreguoti lang post.lt-track.php

Edited by metacreo
add attach (see edit history)

Share this post


Link to post
Share on other sites

Sveiki, ar yra sukurtas modulis  versijai 1.7.x siuntų siekimui?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More