Nice this works like a cham. great
@Post 1:The items in your first post are returning nothing because Ditto can’t (yet) see the nested placeholders. Assuming you are using Ditto 2, append &hiddenFields=`Member_price,price` to the call and continue using [+phx:mo=`Member`:then=`[+Member_price+]`:else=`[+price+]`+] in the template.
in a 3th tv that is then called instead of the phx
@Post 2: Where did you put that @EVAL line?
@Post 3: If you would like to learn, take a look at the example extender. Its fully commented and includes all of the features possible in an extender.
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: Compilation failed: nothing to repeat at offset 13
Error type/ Nr.: Warning - 2
File: /home/httpd/vhosts/1-vision.nl/subdomains/min/httpdocs/assets/snippets/ditto/classes/template.class.inc.php
Line: 87
Line 87 source: preg_match_all('~\[\+([^\+\]]*+)\+\]~' , $tpl, $matches);
tar: This does not look like a tar archive tar: Skipping to next header tar: Error exit delayed from previous errors
! C:\Documents and Settings\Dimmy\Local Settings\Temp\ditto_rev_1432.tar.gz: The archive is corrupt ! C:\Documents and Settings\Dimmy\Local Settings\Temp\ditto_rev_1432.tar.gz: Unexpected end of archive
<table width="100%">
<tr>
<td class="kolom1" valign="top" align="left">
<form method="post">
<input type="hidden" name="token" value="[*timestamp*]" />
<input type="hidden" name="itemid" value="[+id+]" />
<input type="hidden" name="name" value="[+title+]" />
<input type="hidden" name="price" value="[+phx:mo=`MiNkapper`:then=`[+MiNkapper_prijs+]`:else=`[+Particulier_prijs+]`+]" />
<input type="hidden" name="points" value="[+tvshopShippingPoints+]" />
<span id="numberofitems" style="color: #000">Aantal: </span>
<input type="text" id="hoeveelheid[+id+]" name="quantity" value="1" />
<input type="button" id="plusone" value="+" onmousedown="plus_one_edit('hoeveelheid[+id+]');" />
<input type="button" id="minusone" value="-" onmousedown="minus_one_edit('hoeveelheid[+id+]');" /><br />
<input type="submit" name="add" value="Toevoegen" />
</form>
</td>
<td class="kolom2" valign="top" align="left"><div id="thumbscontainer">
<a href="[~[+id+]~]">[[MaxiGallery? &galleryOuterTpl=`MG_outertpl` &dipslay=`embedded` &embedtype=`none` &gal_query_ids=`[+id+]` &limit=`1` ]]</a></div></td>
<td class="kolom3" valign="top" align="left"><span class="producttitel"><a href="[~[+id+]~]">[+longtitle+]</a></span><br/><span class="tussenruimte"><br/></span><span class="productinfo"><a href="[~[+id+]~]">[+productinfo+]</a></span>
<td valign="top"><span class="productprijs"><a href="[~[+id+]~]">€ [+phx:mo=`MiNkapper`:then=`[+MiNkapper_prijs+]`:else=`[+Particulier_prijs+]`+] </a></span></td>
</td>
</tr>
</table>
<br />