Elxis CMS Forum

Extensions => Components => Topic started by: sophocles on November 11, 2010, 15:14:48

Title: IOS eshop shipping module
Post by: sophocles on November 11, 2010, 15:14:48
Hi,

I have started placing the prices for the shipping costs and I wonder if there is a way to achieve either one of the following solutions.
The problem is that the courier service has given me the following prices' format:

UP TO 0,5kg                --> 1,11€
FROM 0,51 UP TO 2 kg --> 2,22€
FROM 2,01 UP TO 5 kg --> 3,33€
EVERY ADDITIONAL kg --> 0,55€

Since the eshop will have products weighting (until now) up to 95 kg, I would need to have the ability:

a. EASY OPTION
The Overweight Field at the bottom to have the option to enter an argument like:
FROM 5,01 kg AND FOR EVERY ADDITIONAL kg  ADD 0,55€

b. LONG OPTION
To be able to add more lines for weight limits and prices for each additional kg, than the 10 available.

Thanks in advance
Thanks in advance
Title: Re: IOS eshop shipping module
Post by: CREATIVE Options on November 11, 2010, 16:23:44
Thea easy solution is and the most proper.

For this, it must be change the shipping calculations.
Title: Re: IOS eshop shipping module
Post by: sophocles on November 11, 2010, 16:49:33
How do we achieve this?
Where should I look and what to change (this applies to both options)?
Title: Re: IOS eshop shipping module
Post by: CREATIVE Options on November 11, 2010, 17:00:39
Because right now I am busy, I will come back.
Title: Re: IOS eshop shipping module
Post by: sophocles on November 15, 2010, 10:39:45
Probably the file that i need to change for the LONG OPTION is "flat.shipping.xml".

Is the following solution going to work?

    <param name="price8" type="price" size="8" dir="ltr" default="0.00" label="PRICE" description="PRICEWLIMIT" />
    <param name="@spacer" type="spacer" default="WEIPRIPAIR" label="9" description="" />
    <param name="weight9" type="weight" size="8" dir="ltr" default="0.00" label="WEIGHT" description="WEIGHTLIMIT" />
    <param name="price9" type="price" size="8" dir="ltr" default="0.00" label="PRICE" description="PRICEWLIMIT" />
    <param name="@spacer" type="spacer" default="WEIPRIPAIR" label="10" description="" />
    <param name="weight10" type="weight" size="8" dir="ltr" default="0.00" label="WEIGHT" description="WEIGHTLIMIT" />
    <param name="price10" type="price" size="8" dir="ltr" default="0.00" label="PRICE" description="PRICEWLIMIT" />
    <param name="@spacer" type="spacer" default="EXCESSWEIGHT" label="" description="" color="CC0000" />
    <param name="price11" type="price" size="8" dir="ltr" default="0.00" label="PRICE" description="PRICEWLIMIT" />
    <param name="@spacer" type="spacer" default="EXCESSWEIGHT" label="" description="" color="CC0000" />
    <param name="price12" type="price" size="8" dir="ltr" default="0.00" label="PRICE" description="PRICEWLIMIT" />
    <param name="@spacer" type="spacer" default="EXCESSWEIGHT" label="" description="" color="CC0000" />
.........
    <param name="price111" type="price" size="8" dir="ltr" default="0.00" label="PRICE" description="PRICEWLIMIT" />
    <param name="@spacer" type="spacer" default="EXCESSWEIGHT" label="" description="" color="CC0000" />
    <param name="overweight" type="weight" size="8" dir="ltr" default="0.00" label="WEIGHT" description="WEIGHTLIMIT" />
    <param name="overcost" type="price" size="8" dir="ltr" default="0.00" label="PRICE" description="PRICEEXLIMIT" />


I really don't mind entering so many price values but what it is going to happen in a future upgrade of IOS eshop?
Will this affect the operation of the shop?
Can i leave the overweight field blank?
Title: Re: IOS eshop shipping module
Post by: sophocles on November 15, 2010, 10:44:34
Correction:

     <param name="@spacer" type="spacer" default="WEIPRIPAIR" label="10" description="" />
    <param name="weight10" type="weight" size="8" dir="ltr" default="0.00" label="WEIGHT" description="WEIGHTLIMIT" />
    <param name="price10" type="price" size="8" dir="ltr" default="0.00" label="PRICE" description="PRICEWLIMIT" />
     <param name="@spacer" type="spacer" default="WEIPRIPAIR" label="10" description="" />
    <param name="weight11" type="weight" size="8" dir="ltr" default="0.00" label="WEIGHT" description="WEIGHTLIMIT" />
    <param name="price11" type="price" size="8" dir="ltr" default="0.00" label="PRICE" description="PRICEWLIMIT" />
    ........

    <param name="@spacer" type="spacer" default="WEIPRIPAIR" label="10" description="" />
    <param name="weight111" type="weight" size="8" dir="ltr" default="0.00" label="WEIGHT" description="WEIGHTLIMIT" />
    <param name="price111" type="price" size="8" dir="ltr" default="0.00" label="PRICE" description="PRICEWLIMIT" />
.....
     <param name="@spacer" type="spacer" default="EXCESSWEIGHT" label="" description="" color="CC0000" />
    <param name="overweight" type="weight" size="8" dir="ltr" default="0.00" label="WEIGHT" description="WEIGHTLIMIT" />
    <param name="overcost" type="price" size="8" dir="ltr" default="0.00" label="PRICE" description="PRICEEXLIMIT" />
Title: Re: IOS eshop shipping module
Post by: CREATIVE Options on November 15, 2010, 11:54:43
Generally I see it that is correct, but It has to be check if their is also more dependencies such us on the Database or into php files.
And after all must be debug it.

Now for future upgrade you have to track the changes that you will do, so in the future to place them back easy.