How to retrieve the price in the matrix ?

Author Message

Pierre Sudarovich

Monday 06 November 2006 8:45:44 am

Hi all,

i'm pretty new to Ez publish, so excuse me if my question seems to be stupid ;). I create a class for a product using a matrix. I create a field price to be able to add my products to the basket.
But i don't want that my client fill in the price field, i want to retrieve the price from my matrix (5 references, 5 prices ;)). So i add a select list who fill an hidden input (dynamically by javascript) on change on it.
My goal is to be able to define the price value in my database with the price contained in my hidden field.
How can i do that ? Please...

TIA,

Pierre.

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

Main resources:

Total runtime0.0332 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.0112 589.2500152.6250
Module start 'layout' 0.01120.0042 741.875039.4453
Module start 'content' 0.01540.0153 781.320385.2266
Module end 'content' 0.03070.0025 866.546930.3047
Script end 0.0332  896.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00298.6673140.0002
Check MTime0.00123.6998140.0001
Mysql Total
Database connection0.00278.037310.0027
Mysqli_queries0.004914.707830.0016
Looping result0.00000.084810.0000
Template Total0.00205.910.0020
Template load0.00113.265910.0011
Template processing0.00092.636010.0009
Override
Cache load0.00072.030510.0007
General
dbfile0.006619.989280.0008
String conversion0.00000.033040.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