How to divide the cart into 2 or more packages?

Asked

Viewed 369 times

0

As my e-commerce will only work with the post office, I need the cart to be divided into more than 1 package, today I use the Post Office plugin created by Claudio (excellent plugin), where the same reaching a quantity x of products in the cart it no longer allows shipping, because it treats that cart only as 1 package and exceeds the limit allowed by the post office in cubic weight.

I do not know how exactly is the logic used in the plugin to request the value of a freight next to the post office. I imagine to be informed to the post office the information as dimensions and weight of the products and the system of the post office automatically makes the calculation and returns the value of the freight.

I don’t have much experience with PHP or Woocommerce, but I wonder if it would be possible to make the logic below:

  • Customer sends a product to cart;

  • The product, with its filled dimensions and weight, would be made the calculation of cubic weight according to the formula of the post office;

  • With the calculated cubic weight, the same would be used to go "accumulating" in a variable (package), up to a limiting X value, this value would be the maximum cubic weight allowed by the post office;

  • When the first variable (pacote1) was completed, a new variable (pacote2) would be created and would be filled with the other products being inserted in the cart and so on;

  • When requested the value of the freight, a freight requisition amount would be made with the post office according to the amount of packages created;

  • With the freight values returned, make the sum of the same and show the customer only the total value of the sum of the requisitions, according to the type of shipment (PAC, SEDEX, SEDEX10 etc..).

I know it’s kind of a crazy idea, but I think a lot of people today have the same problem I have with shipping a lot of goods via post office.

The only problem I see in this is in relation to the tracking number that would be generated, since it would be in more than 1 package, would be created more than 1 tracking code, which would complicate the automation today made to inform customers via email.

Obs.: Today I decided to use only the post office to make the deliveries of my products because analyzing and simulating with some carriers more used in the market, I verified that it would be more expensive to send by a carrier a package bigger than 2 smaller packages by the Post Office (at least in my case it is possible to divide in several packages), outside that the Post Office make practically the whole Brazil and the carriers not.

  • First of all, I don’t think it’s a crazy idea. The list that stuck with the steps, to me this correctissima, remembering that it has limit of cubic volume and weight, then what happens first should count as a single package. As for the part of the tracking codes, I think will have to change something in the woocomerce panel to display the 2. As I do not work with Woocommerce I can not help with the code :(

  • Surely there is nothing crazy there... rsrs.. this is the right thing to do. The implication is related to tracking codes. In this case you have to check with the carrier technical support (Post Office), to verify possibility of generating a single code.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.