diff options
-rw-r--r-- | catalog.cfg | 1 | ||||
-rw-r--r-- | config/pikul_cost.tag | 6 | ||||
-rw-r--r-- | config/pikul_order.tag | 7 | ||||
-rw-r--r-- | products/ship/shipping.asc | 4 |
4 files changed, 18 insertions, 0 deletions
diff --git a/catalog.cfg b/catalog.cfg index 87aeebe..c368116 100644 --- a/catalog.cfg +++ b/catalog.cfg @@ -758,3 +758,4 @@ Jobs log __LOGDIR__/jobs.log Jobs base_directory etc/jobs Variable PIKUL_ANTERAJA 0 +Variable PIKUL_SICEPAT 1 diff --git a/config/pikul_cost.tag b/config/pikul_cost.tag index 3316ef9..7570fcd 100644 --- a/config/pikul_cost.tag +++ b/config/pikul_cost.tag @@ -11,6 +11,12 @@ sub { ); $origin = $::Variable->{ANTERAJA_ORIGIN}; $table = 'anteraja'; + } elsif ($company == $::Variable->{PIKUL_SICEPAT}) { + @provisions = ( + "$Global::Variable->{SICEPAT_API_KEY}" + ); + $origin = $::Variable->{SICEPAT_ORIGIN}; + $table = 'sicepat_destination'; } use Pikul; Pikul::init($company, \@provisions); diff --git a/config/pikul_order.tag b/config/pikul_order.tag index e159028..368f225 100644 --- a/config/pikul_order.tag +++ b/config/pikul_order.tag @@ -21,6 +21,13 @@ sub { "$Global::Variable->{ANTERAJA_PREFIX}" ); $origin = "$::Variable->{ANTERAJA_ORIGIN}"; + } elsif (substr($table, 0, 7) eq 'sicepat') { + $company = $::Variable->{PIKUL_SICEPAT}; + @provisions = ( + "$Global::Variable->{SICEPAT_API_KEY}" + ); + $origin = "$::Variable->{SICEPAT_ORIGIN}"; + $table .= '_destination'; } my @items = @{$Tag->query({sql => "SELECT sku,quantity FROM orderline WHERE \ order_number='$order_number'", diff --git a/products/ship/shipping.asc b/products/ship/shipping.asc index 8c64631..21e2c54 100644 --- a/products/ship/shipping.asc +++ b/products/ship/shipping.asc @@ -9,3 +9,7 @@ anteraja_ND: Anteraja Next Day anteraja_SD: Anteraja Same Day crit weight cost f [pikul_cost company=__PIKUL_ANTERAJA__ service='SD' district='[evalue address2]' city='[evalue city]' province='[evalue state]' weight=@@TOTAL@@] + +sicepat_REG: SiCepat Regular + crit weight + cost f [pikul_cost company=__PIKUL_SICEPAT__ service='REG' district='[evalue address2]' city='[evalue city]' province='[evalue state]' weight=@@TOTAL@@] |