S
S
semki0962016-11-23 15:52:47
Drupal
semki096, 2016-11-23 15:52:47

How to modify the cart in Drupal (Basic cart)?

The Basic Cart module adds a cart. I need to refine it - recalculate the order amount depending on the number of goods. From which side to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2016-11-23
@semki096

I think that it is necessary to correct it in the basic_cart.cart.incfunction basic_cart_get_total_price() file . There, in the cycle , the order amount is calculated, a couple of if and variables will solve the problem.
foreach ($cart as $nid => $node)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question