How to split the cart in 2 or more packages?

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 plugin of the Posts created by Claudius (excellent plugin), where the same arriving at a quantity x of products in the cart he no longer allows the shipment, because he treats that cart only as 1 package and exceeds the limit allowed by the post in cubic weight.

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

I do not have much experience with PHP or Woocommerce, but I would like to know if it would be possible to carry out the logic below:

  • Customer sends a product to the cart;

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

  • With the calculated cubic weight, it would be used to "accumulate" in a variable (package), up to a limiting X value, which would be the maximum cubic weight allowed by the post; / li>

  • When the first variable (package1) was completed, a new variable (package2) would be created and would be populated with other products being inserted into the cart and so on;

  • With the values of the freights returned, make the sum of them 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 a crazy idea, but I think a lot of people today have the same problem as me in sending many 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, more than 1 tracking code would be created, which would complicate today's automation to inform customers via email.

Note: Today I decided to use only the mails to make the deliveries of my products because analyzing and simulating along with some of the most used carriers in the market, I found 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 into several packages), apart from the fact that the Post Office makes practically the whole of Brazil and the carriers do not.

    
asked by anonymous 10.09.2016 / 20:36

0 answers