Basic Question: Code for purchase button?

Author Message

Alex Jones

Thursday 24 July 2003 10:17:31 am

What is the code to add to a product template to display a button which will add the product to the shopping cart? I don't have the demo data set up and cannot seem to locate anywhere in the templates to copy it from.

Thanks!

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

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 18 2025 11:33:55
Script start
Timing: Jan 18 2025 11:33:55
Module start 'layout'
Timing: Jan 18 2025 11:33:55
Module start 'content'
Timing: Jan 18 2025 11:33:57
Module end 'content'
Timing: Jan 18 2025 11:33:57
Script end

Main resources:

Total runtime1.4742 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 589.1250152.6250
Module start 'layout' 0.00740.0039 741.750039.4453
Module start 'content' 0.01131.4611 781.1953459.9375
Module end 'content' 1.47230.0018 1,241.13288.1406
Script end 1.4742  1,249.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2394160.0002
Check MTime0.00150.1000160.0001
Mysql Total
Database connection0.00240.163110.0024
Mysqli_queries1.426496.7568460.0310
Looping result0.00050.0345440.0000
Template Total1.432297.220.7161
Template load0.00250.168020.0012
Template processing1.429796.984620.7149
Template load and register function0.00010.006410.0001
states
state_id_array0.00140.093510.0014
state_identifier_array0.00100.071020.0005
Override
Cache load0.00160.111770.0002
Sytem overhead
Fetch class attribute can translate value0.00050.032010.0005
Fetch class attribute name0.00100.069820.0005
XML
Image XML parsing0.00040.029310.0004
class_abstraction
Instantiating content class attribute0.00000.000320.0000
General
dbfile0.00070.0461160.0000
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs