ok, i have an item and want add a custom listfield, after i added them i want to enter the list entrys.
Now the problem occur,: error message: field item_custom_field not found
after i fix it in the store.php (look in added code)
next error occur: field store_item not found
after i fix it in the store.php (look in added code)
everything worked fine...
My working fix:
function ManageSelectBox()
{
global $context, $txt, $mbname;
isAllowedTo('smfstore_manage');
$id = (int) $_REQUEST['id'];
$context['store_selectid'] = $id;
$context['page_title'] = $mbname . ' - ' . $txt['store_txt_maange_select_fields'];
$context['sub_template'] = 'manage_select';
// Get item id
$dbresult = db_query("
SELECT
title, ID_ITEM
FROM smf_store_item_custom_field
WHERE ID_FIELD = $id LIMIT 1", __FILE__, __LINE__);
$row = mysql_fetch_assoc($dbresult);
mysql_free_result($dbresult);
// Get Product Name
$dbresult = db_query("
SELECT
productname
FROM smf_store_item
WHERE ID_ITEM = " . $row['ID_ITEM'] . " LIMIT 1", __FILE__, __LINE__);
$productRow = mysql_fetch_assoc($dbresult);
mysql_free_result($dbresult);
But this should not a permanent solution, plese fix the {$db_prefix} in this area, so it contained the "smf_" prefix
I have no idea why to hell the string "smf_" are lost in this area... The "AddSelect()" function after the "ManageSelectBox()" function work with the {$db_prefix} without problems...
Please respond to my other errors i postet yesterday in classifieds system...
Darkshadow