How to filter {ITEM_TITLE} and {ITEM_DESCRIPTION} osclass keywords before using them in emails? -
how filter {item_title} , {item_description} osclass keywords before using them in emails?
i want apply function on item_title , item_description before using them in emails.
ex. title: sell bmw_ x5__
to become sell bmw x5
without changing database values
i have function removeunderline(argument) works, need know call or use it.
(osclass forums blocked new users, that's why ask here)
/oc-includes/osclass/emails.php
put removeunderline() @ {item_title} , {item_description} values.
example:
$words = array(); $words[] = array( '{item_description_all_languages}', '{item_description}', '{item_country}', '{item_price}', '{item_region}', '{item_city}', '{item_id}', '{user_name}', '{user_email}', '{item_title}', '{item_url}', '{item_link}', '{validation_link}', '{validation_url}', '{edit_link}', '{edit_url}', '{delete_link}', '{delete_url}' ); $words[] = array( $all, removeunderline($item['s_description']), // here $item['s_country'], osc_format_price($item['i_price']), $item['s_region'], $item['s_city'], $item['pk_i_id'], $item['s_contact_name'], $item['s_contact_email'], removeunderline($item['s_title']), // here $item_url, $item_link, '<a href="' . $validation_url . '" >' . $validation_url . '</a>', $validation_url, '<a href="' . $edit_url . '">' . $edit_url . '</a>', $edit_url, '<a href="' . $delete_url . '">' . $delete_url . '</a>', $delete_url );
do same {item_title} in file (10 replacements).
do same {item_description} in file (3 replacements).
Comments
Post a Comment