Elxis CMS Forum

Extensions => Components => Topic started by: sophocles on October 09, 2012, 18:46:36

Title: IOS eShop and Updated ELTA shipping costs
Post by: sophocles on October 09, 2012, 18:46:36
Hi all,

I'm about to publish the eShop of the company that I'm employed in and I wanted to check if the ELTA prices are the same as in the original "elta.shipping.php".
As i suspected the prices have changed. Regarding prices for Balkans/Cyprus, Europe and the Rest of the World, it was quite straight forward replacing of them.

When it came to changing the prices for delivery inside Greece, there is a slight change in the way ELTA is doing this. It carries different prices from 0,1kg up to 20kg, and then it charges 0,60€ per kg.

I made some slight modifications on "elta.shipping.php".

I have tested the script and it seems that everything is functioning properly.
It would be nice to have a php coder to check the script and if everything is all right to make it avaliable for everyone or embed it into the eshop package.   

The current ELTA price list can be found on http://www.elta.gr/Portals/0/pdf/pricelist_de_es_ex.pdf (http://www.elta.gr/Portals/0/pdf/pricelist_de_es_ex.pdf).

Attached you can find the "elta.shipping.php" that has been modified.
Title: Re: IOS eShop and ELTA shipping costs
Post by: datahell on October 09, 2012, 20:17:11
Thanks for the information.

You have wrong the shipping calculation for more than 20kgr.
The 0.60 EUR/kgr refers to the extended weight (over 20), not the total.

$w-20;
$cost = $this->onekgrcost + ($w * $this->stepamount);

The correct is:
$cost = 15.60 + (($w - 20) * $this->stepamount);

I updated IOS Eshop (with different code but the result is the same), thanks again!
Title: Re: IOS eShop and ELTA shipping costs
Post by: sophocles on October 10, 2012, 07:57:23
Thank you so much for the correction; everything runs smoothly.
I attach the correct file for anyone that is interested.

Thanks once more datahell for the support.