How can I get the longtitle to display on the cartTplRow?
I tried this, which puts it into the form, but it does not show up in the basket row.
<input type="hidden" name="shk-name" value="[*longtitle*]" />
I used PHx to do some formatting, but when the quantity is updated it shows the raw code.
[+phx:input=`[+id+]`:docfield=`longtitle`+]
DropboxUploader -- Upload files to a Dropbox account.
DIG -- Dynamic Image Generator
gus -- Google URL Shortener
makeQR -- Uses google chart api to make QR codes.
MODxTweeter -- Update your twitter status on publish.
It looks like the function getContentData grabs the pagetitle.
Line 235 - class.shopkeeper.php
$res1 = $modx->db->select("id,pagetitle",$modx->getFullTableName('site_content'),"id IN ($idsStr)");
I guess I could modify it to use longtitle, but I would not want to have to make that change for each update.
DropboxUploader -- Upload files to a Dropbox account.
DIG -- Dynamic Image Generator
gus -- Google URL Shortener
makeQR -- Uses google chart api to make QR codes.
MODxTweeter -- Update your twitter status on publish.
I tried to create a template variable [*displayName*] with a default value.
@EVAL
global $modx;
$longtitle = $modx->documentObject['longtitle'];
$pagetitle = $modx->documentObject['pagetitle'];
return $longtitle . " - " . $pagetitle;
but shopkeeper renders the code and does not evaluate the code. Why bother passing an item name if it isn’t used? Has anyone been able to get a nice formatted cart?
DropboxUploader -- Upload files to a Dropbox account.
DIG -- Dynamic Image Generator
gus -- Google URL Shortener
makeQR -- Uses google chart api to make QR codes.
MODxTweeter -- Update your twitter status on publish.