Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Store logo


mortal

Recommended Posts

Hi all. im trying to make the storelogo selection from admin more friendly, as it is from the contribution you can only write the filename in a textfield, and i would like to make it browsable/uploadable

 

as it is now in the code below i have only made it possible to choose the files located in a specific folder via dropdown.

 

could someone please help ?

 

 

 

 

function tep_cfg_pull_down_installed_logos($logo_name) {

if ($root=@opendir(DIR_FS_DOCUMENT_ROOT.'images/logos')){

while ($file=readdir($root)){

if($file=="." || $file==".." || is_dir($dir."/".$file)) continue;

$files[]= array('id' => $file,

'text' => $file);

}

}

return tep_draw_pull_down_menu('configuration_value', $files, $logo_name);

// return tep_draw_file_field('configuration_value', $files, $logo_name);

}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...