BLaDe
OpenCart-TR
- Katılım
- 4 Şub 2010
- Mesajlar
- 459
- Tepkime puanı
- 0
- Puanları
- 0
- Yaş
- 37
- Konum
- izmir
- Web sitesi
- www.ondermedikal.com
ana sayfadaki ürünlerin yolunu admin panelinde göstermek;
admin/view/template/catalog/product_form.tpl
Kodunu bulunuz.
hemen altına;
Kodunu Bulunuz;
değiştirin;
kodunu bulunuz;
değiştiriniz;
kodunu bulunuz;
değiştiriniz;
Kategori ve üretici ürünlerin resimlerine de akşama belirteceğim.
admin/view/template/catalog/product_form.tpl
Kodunu bulunuz.
PHP:
special_row++;
}
//--></script>
<script type="text/javascript"><!--
hemen altına;
PHP:
$(document).ready(function() {
$('#image').keyup(function() {
$('#image_exists').html('');
$.ajax({
url: 'index.php?route=common/filemanager/exists&token=<?php echo $token; ?>',
type: 'POST',
data: 'source=' + encodeURIComponent($('#image').attr('value')),
dataType: 'json',
success: function(data) {
if (data.exists == "1") {
if ($('#image').attr('value')) {
$.ajax({
url: 'index.php?route=common/filemanager/image&token=<?php echo $token; ?>',
type: 'POST',
data: 'image=' + encodeURIComponent($('#image').attr('value')),
dataType: 'text',
success: function(data) {
$('#preview').replaceWith('<img src="' + data + '" alt="" id="preview" class="image" onclick="image_upload(\'image\', \'preview\');" />');
}
});
}
$('#image_exists').html('<span style="color: #A5BD71;">Found</span>');
} else {
$('#image_exists').html('<span style="color: #FF9999;">Not Found</span>');
}
}
});
});
});
Kodunu Bulunuz;
PHP:
<td><?php echo $entry_image; ?></td>
<td><input type="hidden" name="image" value="<?php echo $image; ?>" id="image" />
<img src="<?php echo $preview; ?>" alt="" id="preview" class="image" onclick="image_upload('image', 'preview');" /></td>
değiştirin;
PHP:
<td><?php echo $entry_image; ?></td>
<td><img src="<?php echo $preview; ?>" alt="" id="preview" class="image" onclick="image_upload('image', 'preview');" /><br />
<input size="60" type="text" name="image" value="<?php echo $image; ?>" id="image" /> <span id="image_exists"></span></td>
kodunu bulunuz;
PHP:
<tbody id="image-row<?php echo $image_row; ?>">
<tr>
<td class="left"><img src="<?php echo $product_image['preview']; ?>" alt="" id="preview<?php echo $image_row; ?>" class="image" onclick="image_upload('image<?php echo $image_row; ?>', 'preview<?php echo $image_row; ?>');" />
<input type="hidden" name="product_image[<?php echo $image_row; ?>]" value="<?php echo $product_image['image']; ?>" id="image<?php echo $image_row; ?>" /></td>
<td class="left"><a onclick="$('#image-row<?php echo $image_row; ?>').remove();" class="button"><span><?php echo $button_remove; ?></span></a></td>
değiştiriniz;
PHP:
<tbody id="image-row<?php echo $image_row; ?>">
<tr>
<td class="left"><img src="<?php echo $product_image['preview']; ?>" alt="" id="preview<?php echo $image_row; ?>" class="image" onclick="image_upload('image<?php echo $image_row; ?>', 'preview<?php echo $image_row; ?>');" /><br />
<input size="60" type="text" name="product_image[<?php echo $image_row; ?>]" value="<?php echo $product_image['image']; ?>" id="image<?php echo $image_row; ?>" /> <span id="image_exists<?php echo $image_row; ?>"></span></td>
<td class="left"><a onclick="$('#image-row<?php echo $image_row; ?>').remove();" class="button"><span><?php echo $button_remove; ?></span></a></td>
kodunu bulunuz;
PHP:
html = '<tbody id="image-row' + image_row + '">';
html += ' <tr>';
html += ' <td class="left"><input type="hidden" name="product_image[' + image_row + ']" value="" id="image' + image_row + '" /><img src="<?php echo $no_image; ?>" alt="" id="preview' + image_row + '" class="image" onclick="image_upload(\'image' + image_row + '\', \'preview' + image_row + '\');" /></td>';
html += ' <td class="left"><a onclick="$(\'#image-row' + image_row + '\').remove();" class="button"><span><?php echo $button_remove; ?></span></a></td>';
html += ' </tr>';
değiştiriniz;
PHP:
html = '<tbody id="image-row' + image_row + '">';
html += '<tr>';
html += '<td class="left"><img src="<?php echo $no_image; ?>" alt="" id="preview' + image_row + '" class="image" onclick="image_upload(\'image' + image_row + '\', \'preview' + image_row + '\');" /><br /><input size="60" type="text" name="product_image[' + image_row + ']" value="" id="image' + image_row + '" /> <span id="image_exists' + image_row + '"></span></td>';
html += '<td class="left"><a onclick="$(\'#image-row' + image_row + '\').remove();" class="button"><span><?php echo $button_remove; ?></span></a></td>';
html += '</tr>';
Kategori ve üretici ürünlerin resimlerine de akşama belirteceğim.