Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product pictures in new style


Wotan

Recommended Posts

sorry, may english is not the best..

i have a problem to show the name of the upload pictures

$products_image = new upload('products_image');
$products_image->set_destination(DIR_FS_CATALOG_IMAGES);
if ($products_image->parse() && $products_image->save()) {
$products_image_name = $products_image->filename;} else {
$products_image_name = (isset($HTTP_POST_VARS['products_previous_image']) ? $HTTP_POST_VARS['products_previous_image'] : '');
}

$products_image_2 = new upload('products_image_2');
$products_image_2->set_destination(DIR_FS_CATALOG_IMAGES);
if ($products_image_2->parse() && $products_image_2->save()) {
$products_image_name_2 = $products_image_2->filename;
} else {
$products_image_name_2 = (isset($HTTP_POST_VARS['products_previous_image_2']) ? $HTTP_POST_VARS['products_previous_image_2'] : '');
}
$products_image_3 = new upload('products_image_3');
$products_image_3->set_destination(DIR_FS_CATALOG_IMAGES);
if ($products_image_3->parse() && $products_image_3->save()) {
$products_image_name_3 = $products_image_3->filename;
} else {
$products_image_name_3 = (isset($HTTP_POST_VARS['products_previous_image_3']) ? $HTTP_POST_VARS['products_previous_image_3'] : '');
}

 

the titel of the first pic is shown bute the next not why?

 

td class="main"><?php echo TEXT_PRODUCTS_IMAGE; ?></td>
<td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_file_field('products_image') . '<br>' . tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . $pInfo->products_image . tep_draw_hidden_field('products_previous_image', $pInfo->products_image); ?></td>
</tr>
<tr>
<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr>
<tr>
<td class="main"><?php echo TEXT_PRODUCTS_IMAGE; ?></td>
<td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_file_field('products_image_2') . '<br>' . tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . $pInfo->products_image_2 . tep_draw_hidden_field('products_previous_image_2', $pInfo->products_image_2); ?></td>
</tr>
<tr>
<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
</tr> 
<tr>
<td class="main"><?php echo TEXT_PRODUCTS_IMAGE; ?></td>
<td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_file_field('products_image_3') . '<br>' . tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . $pInfo->products_image_3 . tep_draw_hidden_field('products_previous_image_3', $pInfo->products_image_3); ?></td>
</tr>

here ist a picture what i mean -

namensanzeige.jpg

 

please have anyone idear?

 

cu

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.

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...