Jump to content

Lietuvos pašto sekimo url adresas


mockuss

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ą???

Link to comment
Share on other sites

  • 2 months later...
  • 3 weeks later...
  • 2 years later...

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)
Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...