Add Item to Cart Examples

Items can be added to the cart using either data hard coded into a model file or data retrieved from a html form or a database query.

This demo page uses a custom item table that is then linked to flexi cart, features like item shipping and tax rates, discounts and item stock can then be setup to interact with the custom item table and the shopping cart.

As the custom item table is setup in this demo, flexi carts features can be applied 'live' to these 5 demo items using functions in the Admin Library.

Item Database Examples

Item Link Examples | Item Form Examples | Item Ajax Examples | Item Discount Examples
Jump to Item

Item #1 | Item #2 | Item #3 | Item #4 | Item #5 The values displayed for shipping, tax and discount content are based on the current cart status, this includes the current shipping location set via the 'View Cart' page.
You can view the status of settings within the cart via the 'Cart Status' tab on the navigation menu.

Example Item #1

Edit Price Tax Rate and Value Shipping Rate Shipping Packaging Shipping to Location Reward Points Weight Stock Add to Cart
£25.00 20%
£4.17
Default Bundled Permitted 250 75g 100 Add Item
Discounts Available for Item #1

Insert a new item discount

Note: If applying a discount to a category, Item #1 is linked to Category #1
Edit Description Quantity Required Value Required Custom Status #1 Combine Expire Timer
Database Item #1: Buy 2, Get 1 Free. 2 £0.00 No Yes
2019-10-15 12:00:02

Example Item #2

Edit Price Tax Rate and Value Shipping Rate Shipping Packaging Shipping to Location Reward Points Weight Stock Add to Cart
£4.95 20%
£0.83
Default Bundled Permitted 50 15g 100 Add Item
Discounts Available for Item #2

Insert a new item discount

Note: If applying a discount to a category, Item #2 is linked to Category #1
Edit Description Quantity Required Value Required Custom Status #1 Combine Expire Timer
There are currently no discounts setup for this item.

Example Item #3

Edit Price Tax Rate and Value Shipping Rate Shipping Packaging Shipping to Location Reward Points Weight Stock Add to Cart
£25.49 20%
£4.25
Default Bundled Permitted 255 85g 100 Add Item
Discounts Available for Item #3

Insert a new item discount

Note: If applying a discount to a category, Item #3 is linked to Category #2
Edit Description Quantity Required Value Required Custom Status #1 Combine Expire Timer
Database Item #3: 10% off original price. 1 £0.00 No Yes
2019-10-11 12:00:02

Example Item #4

Edit Price Tax Rate and Value Shipping Rate Shipping Packaging Shipping to Location Reward Points Weight Stock Add to Cart
£199.99 20%
£33.33
Default Bundled Permitted 2000 250g 100 Add Item
Discounts Available for Item #4

Insert a new item discount

Note: If applying a discount to a category, Item #4 is linked to Category #2
Edit Description Quantity Required Value Required Custom Status #1 Combine Expire Timer
There are currently no discounts setup for this item.

Example Item #5

Edit Price Tax Rate and Value Shipping Rate Shipping Packaging Shipping to Location Reward Points Weight Stock Add to Cart
£74.99 20%
£12.50
Default Bundled Permitted 750 75g 100 Add Item
Discounts Available for Item #5

Insert a new item discount

Note: If applying a discount to a category, Item #5 is linked to Category #1
Edit Description Quantity Required Value Required Custom Status #1 Combine Expire Timer
Database Item #5: Get £5.00 off original price. 1 £0.00 No Yes
2019-10-08 12:00:02