Set group packages for shipping based on backorder

  • Posts: 128
  • Thank you received: 3
8 years 7 months ago #236198

I don't understand why it doesnt work like the UPS plugin and just simply ungroup the packages like it's 2 packages in the shipment instead of 1 if you choose to send in stock items now and backorder items later. I dont see what this has to do with dimension limitations. I should just be like saying that you have 2 smaller packages in the shipment instead of 1 larger package. Going on this

With FedEx Ground®
services, you can ship packages
up to 150 lbs.; up to 108" in length and 165" in length
plus girth

I'm completely lost on how to make this work. The largest shipping box I use to group packages together is 12" long x 12" wide x 6" tall. Can you help me understand what you mean to do exactly or either maybe there's a way to just not show Fedex methods as an option if someone chooses to send in stock items now and backorder items later?

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
8 years 7 months ago #236231

Hello,

maybe there's a way to just not show Fedex methods as an option if someone chooses to send in stock items now and backorder items later?


You can use a return true; after checking if you have these type of products in your cart or directly enable the "price per product" option through your shipping method configuration page and then go to your "in stock items now"/"backorder" products configuration page, and block that shipping method through the "shipping prices" tab.

Also note that when you set the "group package" option of your shipping method configuration page, you'll have one product per package, so the problem is globally coming from what the FedEx platform return.

The following user(s) said Thank You: deuce4884

Please Log in or Create an account to join the conversation.

  • Posts: 128
  • Thank you received: 3
8 years 7 months ago #236288

For the Fedex plugin I just disabled it if they selected to send in stock items now and backorder items later. Ended up with the code

$app = JFactory::getApplication();
$order_handling = $app->getUserState(HIKASHOP_COMPONENT . '.checkout_fields.backordered_items');
if($order_handling == 'send') return false;
foreach($local_usable_rates as $k => $rate){

Not the best solution, but for right now it works. Thanks for all your help with this.

Please Log in or Create an account to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum