Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Per Item Per Country with a max shipping fee


Recommended Posts



I am an admin and the site owner would like a flate rate per item per country.

That part is set up and working, now they would like to put a cap on the domestic shipping fee.


This can be either a maximum $$ amount for domestic shipping or only charge shipping for the first 2 items.


Currently I am using Per Country Per Item v1.1 for the shipping module.




Does anyone have a suggestion for setting up a maximum shipping amount on one group (domestic)?

Link to comment
Share on other sites

I could use some help with the php asap.

What I need to do is add a condition for the United States if the item count is >2 the shipping_cost is $14.00


if ($dest_zone == 0) {

$groups_cost = constant('MODULE_SHIPPING_PIPC_COST_DEFAULT');


} else {

$groups_cost = constant('MODULE_SHIPPING_PIPC_COST_' . $dest_zone);

$handle_cost = constant('MODULE_SHIPPING_PIPC_HANDLING_' . $dest_zone);



$shipping_method = MODULE_SHIPPING_PIPC_TEXT_WAY . ' ' . $dest_country . ' : ' . $shipping_weight . ' ' . MODULE_SHIPPING_PIPC_TEXT_UNITS;

$shipping_cost = $groups_cost * $total_count + $handle_cost;


$this->quotes = array('id' => $this->code,


'methods' => array(array('id' => $this->code,

'title' => $shipping_method,

'cost' => $shipping_cost)));



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...