View Full Version : Embedded EE Commerce Not Working? (FIXED IN 2.02)
segal3
4th of October 2006 (Wed), 19:19
When I enable commerce for a set of photos, the 'Order Print' default graphic doesn't show up on the photo page...what code is needed to drop it in?
Pekka
4th of October 2006 (Wed), 19:34
It is variable $forsale_html which you should print in photo page layout template where you want the button to appear. It is not there now, I admit EE commerce has not been my main interest lately (it will be later).
The ordering image or text is in global translations:
$translated["click_here"]["image"] = "IMAGE PATH HERE"; // click here
$translated["click_here"]["text"] = "click here and choose ordering method";
If you want just text use only
$translated["click_here"] = "click here and choose ordering method";
segal3
4th of October 2006 (Wed), 19:40
Thanks for the variable, but it doesn't seem to pass the information correctly, see: http://www.carbonos.com/gallery/photo.php?photo=893 for example (styling is messed up right now, but resultant order link doesn't work right). I haven't changed anything in order.php.
segal3
4th of October 2006 (Wed), 20:39
No ideas?
Pekka
4th of October 2006 (Wed), 20:55
It's 3:53 am here so ideas are sparse :)
I'll look into it tomorrow, I have next four days dedicated just for solving all these problems.
segal3
6th of October 2006 (Fri), 00:10
Just as a thought...could it have anything to do w/ user permissions? I know in EE1.5RC4 that there was initially an issue with trying to order prints from passworded (non-public) galleries...
segal3
6th of October 2006 (Fri), 00:22
order.php is missing at least one (or multiple)
?>
at the end...
segal3
6th of October 2006 (Fri), 01:24
order.php
The error could be around here (lines 407-447):
ob_start();
$s = $s_include_header;
if ($s != "") {
print $s;
}
else {
$hpath = "./languages/" . $ee_lang . "/header.php";
if (file_exists($hpath)) {
@include($hpath);
}
else {
$hpath = "./header.php";
@include($hpath);
}
}
$header_html = ob_get_contents();
ob_end_clean();
ob_start();
$s = $s_include_footer;
if ($s != "") {
print $s;
}
else {
$hpath = "./languages/" . $ee_lang . "/footer.php";
if (file_exists($hpath)) {
@include($hpath);
}
else {
$hpath = "./footer.php";
@include($hpath);
}
}
$footer_html = ob_get_contents();
ob_end_clean();
It's not dropping in the <head></head> and <body></body> tags correctly on the specific order type page, only the <span> stuff directly related to the order type (from (for example) mail.php).
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.