Adding products to cart

Author Message

Rob Clews

Monday 05 January 2004 3:14:40 am

I have my own content class which I want to work like the Product class, how do I get my class to add the item into the cart?

Thanks

Rob Clews

Monday 05 January 2004 7:32:05 am

Found it.

<form method="post" action={"content/action/"|ezurl}>
<input type="hidden" name="ContentNodeID" value="{$node.node_id}" />
<input type="hidden" name="ContentObjectID" value="{$content_object.id}" />
<input class="button" type="submit" name="ActionAddToBasket" value="Add to basket" />
</form>

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 06:26:04
Script start
Timing: Jan 31 2025 06:26:04
Module start 'layout'
Timing: Jan 31 2025 06:26:04
Module start 'content'
Timing: Jan 31 2025 06:26:04
Module end 'content'
Timing: Jan 31 2025 06:26:04
Script end

Main resources:

Total runtime0.0143 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.1250151.2109
Module start 'layout' 0.00540.0023 739.335936.6484
Module start 'content' 0.00770.0047 775.984490.0156
Module end 'content' 0.01240.0018 866.000029.9922
Script end 0.0142  895.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002719.2693140.0002
Check MTime0.00138.8926140.0001
Mysql Total
Database connection0.00075.200910.0007
Mysqli_queries0.002517.593130.0008
Looping result0.00000.105310.0000
Template Total0.00149.710.0014
Template load0.00117.943410.0011
Template processing0.00021.682910.0002
Override
Cache load0.00085.944610.0008
General
dbfile0.00043.048380.0001
String conversion0.00000.036840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs