[Solved] Algorithm for quantity selection [closed]

You should have a Product class. Each product object has different quantity measures and increment methods. Something like this: public abstract class Product { String quantityMeasure; //You can encapsulate this with a getter public abstract int step (int value); //here you want to increment “value” with different algorithms. } Now you can create different product … Read more

[Solved] I need help getting the grand total of a simple php cart using sessions [closed]

Just replace this chunk of code, with my code below….should work… <?php //Print all the items in the shopping cart $totalAll = 0; foreach ($_SESSION[‘SHOPPING_CART’] as $itemNumber => $item) { $totalAll = $totalAll + ($item[‘qty’]*$item[‘price’]); ?> <tr id=”item<?php echo $itemNumber; ?>”> <td height=”41″><a href=”https://stackoverflow.com/questions/17129590/?remove=<?php echo $itemNumber; ?>”>Remove Item</a></td> <td><?php echo $item[‘name’]; ?></td> <td>£<?php echo $item[‘price’]; … Read more

[Solved] easiest way to connect paypal to my own shopping kart [closed]

Paypal express is the cheapest & easiest solution, particularly if you want to store information in your database about whether or not the transaction was successful. If all you need is button functionality, you can use the paypal api to generate dynamic buttons. Just see – https://www.x.com/developers/paypal/products/button-manager solved easiest way to connect paypal to my … Read more