I’ve a extremely complicated set of delivery guidelines
I’ve three product varieties
Product kind A with a fee of £1 per product Product kind B with a fee of £2 per product Product kind C with a fee of £3 per product
A buyer can add any mixture of merchandise into their cart so
2 x Product kind A 1 x Product kind B 1 x Product kind C
I’ve created guidelines to loop via commerce_line_items and get Drupal Development Service particular person delivery prices for product varieties based mostly upon a subject in Drupal Development Service commerce_product entity and I’ve acquired it so it calculates amount occasions delivery value.
What I have no idea and can’t work out is how I then add these delivery prices again to Drupal Development Service order, there appears to be no technique to set Drupal Development Service worth of a delivery service.
Additionally I have no idea methods to parse Drupal Development Service line objects for every product kind and calculate Drupal Development Service delivery prices based mostly upon every product kind. So I want a situation examine on Drupal Development Service product kind of every line merchandise in Drupal Development Service order to acquire Drupal Development Service product kind after which do Drupal Development Service calculations based mostly upon Drupal Development Service appropriate delivery fee and amount.
Any recommendation could be absolutely appreciated.