ezpublish shop module

Author Message

philumo luan

Monday 24 September 2007 12:26:35 am

hello everybbody

i create a shop online . and everything is normal until i create hot product and this is my code on the top of page and this code separate with others products

this is code:

{def $my_node=fetch( content, node, hash( node_id, $node.node_id) )}

{def $hotinfo=fetch( content, node, hash( node_id, $my_node.data_map.hot_id.content) )}
<div id="article-jadm-contain">

<div id="article-jadm-pic">
{section show=$hotinfor.data_map.image.has_content}
<div class="attribute-image">

{attribute_view_gui image_class=articlethumbnail href=$hotinfo.url_alias|ezurl attribute=$hotinfo.data_map.image}
</div>
{/section}
</div>


<div id="article-jadm-info">
<div id="article-jadm-info-top">
<a href={$node.url_alias|ezurl}>{$hotinfo.data_map.title.content|wash}</a>
</div>
<div id="article-jadm-price">
{attribute_view_gui attribute=$hotinfo.data_map.price}
</div>


<div id="article-jadm-info-center">
{section show=$hotinfo.data_map.intro.content.is_empty|not}
<div class="attribute-short">
{attribute_view_gui attribute=$hotinfo.data_map.intro}
</div>
{/section}
</div>


{section show=is_unset( $versionview_mode )}
<div id="article-jadm-info-bottom">

<form method="post" action={"content/action"|ezurl}>
<input type="submit" class="defaultbutton" name="ActionAddToBasket" value="{"Add to basket"|i18n("design/ezwebin")}" />
<input type="hidden" name="ContentNodeID" value="{$node.node_id}" />
<input type="hidden" name="ContentObjectID" value="{$node.object.id}" />
<input type="hidden" name="ViewMode" value="full" />
</form>

</div>
{/section}

</div>

</div>
{undef}

{undef}

and when i click on the button i get the error:

" Ce n'est pas un produit

L'objet demandé n'est pas un produit et ne peut donc pas être utilisé par le module de boutique.

"

pls help me and i have other topic about shop currency .

thanks evrery helping

Christophe Condomines

Monday 24 September 2007 1:00:17 am

In the <form> you are using $node when it seems that your product is set into $hotinfo variable. Just change $node by $hotinfo in the form part of your template and that should work.

Microblau SL
http://www.microblau.net

philumo luan

Monday 24 September 2007 1:52:50 am

thanks you

the problem is solved

by the way can you read the topic : currency and give me some ide.

thanks so much

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 21:12:26
Script start
Timing: Jan 18 2025 21:12:26
Module start 'layout'
Timing: Jan 18 2025 21:12:26
Module start 'content'
Timing: Jan 18 2025 21:12:27
Module end 'content'
Timing: Jan 18 2025 21:12:27
Script end

Main resources:

Total runtime0.7081 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 587.8047152.6094
Module start 'layout' 0.00530.0026 740.414139.4141
Module start 'content' 0.00790.6987 779.8281542.8203
Module end 'content' 0.70660.0015 1,322.648412.1875
Script end 0.7081  1,334.8359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4895160.0002
Check MTime0.00140.1970160.0001
Mysql Total
Database connection0.00140.193310.0014
Mysqli_queries0.649691.7423570.0114
Looping result0.00050.0702550.0000
Template Total0.676895.620.3384
Template load0.00220.310820.0011
Template processing0.674695.269020.3373
Template load and register function0.00020.025610.0002
states
state_id_array0.00090.126810.0009
state_identifier_array0.00080.110320.0004
Override
Cache load0.00190.2749710.0000
Sytem overhead
Fetch class attribute can translate value0.00070.096820.0003
Fetch class attribute name0.00130.187840.0003
XML
Image XML parsing0.00060.082320.0003
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00080.1083160.0000
String conversion0.00000.000940.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs