Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need help


PsykoMaN

Recommended Posts

Hi folks.

 

I'm currently trying to integrate oscommerce into my design.

It can be found @ http://www.totaalcomputers.nl

 

I'm looking for some help with the shopping cart (to begin with :))

 

As you can see right above, I want to show in the cart info:

 

Amount of products (linking to a new page with all info of the products in the cart.

Amount to be payed with the current selected products.

 

So if people select 3 products, I want to see:

 

Aantal producten: 3

 

And from that I want to see the amount to be payed for those 3 products:

 

Subtotaal ? ....

 

 

Any help is appreciated... I'm stuck right now after hours of work :blink: :o

Link to comment
Share on other sites

Perhaps not the most fancy method, but try this:

 

    $products = $cart->get_products();

    for ($i=0, $n=sizeof($products); $i<$n; $i++)

    {

      $counter = $counter + $products[$i]['quantity'];

    }

 

The above counts the number of products in the basket.

 

    $total_basket = $cart->show_total();

 

This shows the amount in the basket. I'm not sure if this is taking into account taxes.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...