Building a shop

Author Message

Bjørn Kaarstein

Friday 16 April 2004 6:33:01 am

I've recently upgraded a site from 3.1 to 3.3, and am currently in the planning stage of adding webshop functionality. I could use some help to get started.

Currently this site runs in element view.

It's only a given part of the site which is supposed to be a part of a shop. I'll keep the design as is, and what I want to do is just to add a "buy" button to the full view of one specific product class. Is this possible to do with element view, or will I have to put this in a section of its own using {$module_result.content} to display?

I'm a bit confused right now, so any clearifying answer will be greatly appreciated.

Regards Bjørn

Silke Fox

Sunday 18 April 2004 11:50:24 pm

The "add to basket" button should show up automatically in the full view of a product object (at least in the standard templates).
You can test that with the default product content class or, if you want to set up your own product class, just add the "price" attribute to it.

You don't need a new section for that.
Products work like any other content object, so template overriding and so on
is basically the same as with other content.

Maybe this is a little hint to start with.

Silke

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 19 2025 14:04:14
Script start
Timing: Jan 19 2025 14:04:14
Module start 'layout'
Timing: Jan 19 2025 14:04:14
Module start 'content'
Timing: Jan 19 2025 14:04:14
Module end 'content'
Timing: Jan 19 2025 14:04:14
Script end

Main resources:

Total runtime0.0142 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.0049 589.0313152.6094
Module start 'layout' 0.00490.0020 741.640639.4297
Module start 'content' 0.00690.0054 781.070389.1797
Module end 'content' 0.01230.0019 870.250030.3047
Script end 0.0141  900.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002215.6507140.0002
Check MTime0.00106.9248140.0001
Mysql Total
Database connection0.00064.372210.0006
Mysqli_queries0.001913.557130.0006
Looping result0.00000.055510.0000
Template Total0.001611.110.0016
Template load0.00085.882310.0008
Template processing0.00075.142310.0007
Override
Cache load0.00053.568410.0005
General
dbfile0.00107.309980.0001
String conversion0.00000.035340.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