Forums / General / ezpublish shop module

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

eZ debug

Timing: Jan 31 2025 10:10:10
Script start
Timing: Jan 31 2025 10:10:10
Module start 'content'
Timing: Jan 31 2025 10:10:10
Module end 'content'
Timing: Jan 31 2025 10:10:10
Script end

Main resources:

Total runtime0.1624 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 587.8203180.8516
Module start 'content' 0.00740.0080 768.671997.8047
Module end 'content' 0.01540.1469 866.4766529.2344
Script end 0.1623  1,395.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00352.1508200.0002
Check MTime0.00140.8880200.0001
Mysql Total
Database connection0.00070.416910.0007
Mysqli_queries0.114470.43421410.0008
Looping result0.00110.69491390.0000
Template Total0.146590.310.1465
Template load0.00080.499510.0008
Template processing0.145789.748610.1457
Override
Cache load0.00060.338710.0006
Sytem overhead
Fetch class attribute can translate value0.00080.476810.0008
XML
Image XML parsing0.00030.182810.0003
General
dbfile0.00835.0941200.0004
String conversion0.00000.005330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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