Copy/clone of TABLE shipping module 1.3.7
Hi, I would like to make a copy of shipping module TABLE e.g. TABLE1 and TABLE2.
How can I do it ? I think to make a copy of:
\includes\languages\MY LANGUAGE\modules\shipping\table.php
\includes\modules\shipping\table.php
rename these files and make some changes in \includes\modules\shipping\table1.php
but I still can not find, what I have to change in this file.
Can anybody help me, please ?
Re: Copy/clone of TABLE shipping module 1.3.7
You are cloning the 2 files:
/includes/modules/shipping/table.php
/includes/languages/english/modules/shipping/table.php
to the files:
/includes/modules/shipping/table1.php
/includes/languages/english/modules/shipping/table1.php
Change all words:
table to table1
TABLE to TABLE1
NOTE: These are case sensative ...
WARNING: Do NOT change anything that starts with the word TABLE_ as this is a physical table in the database ...
Test ... table1 ... does it work?
If so, now clone table1.php files to table2.php files looking for the words:
table1
TABLE1
as those will help skip the database TABLE_ references ...
Let us know how it goes ...
1 Attachment(s)
Re: Copy/clone of TABLE shipping module 1.3.7
Thank yuo very much. I tried the TABLE1 module and it looks it works OK,.
Only one small mistake - you can see it in the picture (sorry it is in czech). It is not possible to see the sort order by "Česká pošta 2 -table1", but in the detail of "Česka pošta 2 -table1" you can see it. Also, in the shop the sort order does not work, because the "Česka pošta 2" is in tle last possition and has to be the second one.
I also do not understand why it is RED and "Česka pošta - table" and Store pickup is YELLOW.
Re: Copy/clone of TABLE shipping module 1.3.7
Red is not installed ...
Yellow is installed with either:
1 Zones
2 Not configured correctly (this only tests obvious things)
Green is installed ...
Re: Copy/clone of TABLE shipping module 1.3.7
OK, and do you know what to do with the SORT ORDER PROBLEM ?
Re: Copy/clone of TABLE shipping module 1.3.7
Install the other module and set the sort order?
Re: Copy/clone of TABLE shipping module 1.3.7
Thanks a lot, it is OK now. I reinstalled all shipping modules and it is OK.
Now, I have just one question. It is possible to have two different prices for cash on delivery fee ?
e.g.
CZECH POST (shipping module TABLE)
1kg pack e.g. 100 CZK + cash on delivery fee 30 CZK
or
DHL (shipping module TABLE1
1kg pack e.g. 120 CZK + cash on delivery fee 50 CZK
SO, what I would like to se up is:
If customer select CZECH POST with cash on delivery the price will be plus 30CZK
or If the customer select DHL with cash on delivery then the price will be +50 CZK.
Re: Copy/clone of TABLE shipping module 1.3.7
This is built into the Modules ... Order Totals ... COD Fee ot_cod
You will need to look at how this file handles this and recode to include the new tables and uninstall and reinstall and reconfigure ...
Re: Copy/clone of TABLE shipping module 1.3.7
So, I try to use ship2pay modul. It looks fine. I have the shipping&payments combination I need:
Czech post pack - pay: czech post COD, money order
Czech post business pack - pay: czech post COD, money order
PPL pack - pay: PPL COD, money order
store pickup - pay: cash, money order
but I have problem with the COD fee, because it is not add to total price for shipping:
I use this configuration:
Shipping modules
Modul TABLE - Czech post pack
Modul TABLE1 - Czech post business pack
Modul TABLE2 - PPL pack
Payments
Modul COD - czech post COD
Modul COD1- PPL COD
Modul COD2- cash payment
Order total
Modul ot_cod_fee - COD fee
I am not sure if I have to make copy of ot_cod_fee and create from this module ot_cod1_fee for PPL COD fee ???
May be I have some mistake in COD1 and COD2 modules copied from COD module, but the fee for COD module also does not work ?
Re: Copy/clone of TABLE shipping module 1.3.7
I would have to sit down and write the code for looking into adding the additional shipping modules ...
The best I can tell you in order to do this yourself is to look at how table is added and clone its settings for your new one ... if it is hard to follow, trace how flat is done to follow the code for this ...