mirac
OpenCart-TR
- Katılım
- 7 Şub 2010
- Mesajlar
- 1,383
- Tepkime puanı
- 0
- Puanları
- 36
- Yaş
- 44
- Konum
- Beykoz____
- Web sitesi
- www.notebook-cantasi.com
catalog/view/theme/Kullandığın tema/template/product/product.tpl Aç..
Bul..
	
	
	
		
Değiştir..
	
	
	
		
catalog/view/theme/Kullandığın tema/template/module/cart.tpl Aç..
Bul..
	
	
	
		
Üstüne ekle..
	
	
	
		
catalog/language/turkish/module/cart.php Aç..
Ekle..
	
	
	
		
1.4.8 ve üzeri için
catalog/view/theme/Kullandığın tema/template/product/product.tpl Aç..
Bul..
	
	
	
		
Değiştir..
	
	
	
		
catalog/view/javascript/jquery/ajax_add.js Aç..
Bul..
	
	
	
		
Üstüne ekle..
	
	
	
		
	
	
	
		
		
		
			
		
		
	
	
		 
	
			
			Bul..
		Kod:
	
	<input type="text" name="quantity" size="3" value="1" />Değiştir..
		Kod:
	
	<select name="quantity">
                      <?php for ($i=1; $i<=20; $i++) { ?>
                      <option value="<?php echo $i; ?>"><?php echo $i; ?></option>
                      <?php } ?>
                    </select>catalog/view/theme/Kullandığın tema/template/module/cart.tpl Aç..
Bul..
		Kod:
	
	$('#add_to_cart').click(function () {Üstüne ekle..
		Kod:
	
	    //Q: Add Please Select... and force choice before add to cart
       defaultMsg = "<?php echo $this->language->get('text_please_select');?>";
       warningMsg = "<?php echo $this->language->get('text_select_warning');?>";
       $('#product select').each (function(i, select) {
          $(select).prepend('<option value="0">'+defaultMsg+'</option>');
          $(select).val(0);
       });
       $('#add_to_cart').click(function (event) {
          $('#product select :selected').each (function(i, select) {
             if ($(select).text() == defaultMsg) {
                alert(warningMsg);
                event.stopImmediatePropagation();
                return false;
             }
          });
       });
       //Q: EOFcatalog/language/turkish/module/cart.php Aç..
Ekle..
		Kod:
	
	$_['text_please_select']    = 'Adet Seçiniz..';
$_['text_select_warning']   = 'Lütfen Sipariş Adetini Seçiniz';1.4.8 ve üzeri için
catalog/view/theme/Kullandığın tema/template/product/product.tpl Aç..
Bul..
		Kod:
	
	<input type="text" name="quantity" size="3" value="<?php echo $minimum; ?>" />Değiştir..
		Kod:
	
	<select name="quantity" value="<?php echo $minimum; ?>" >
                      <?php for ($i=1; $i<=20; $i++) { ?>
                      <option value="<?php echo $i; ?>"><?php echo $i; ?></option>
                      <?php } ?>
                    </select>catalog/view/javascript/jquery/ajax_add.js Aç..
Bul..
		Kod:
	
	$('#add_to_cart').click(function () {Üstüne ekle..
		Kod:
	
	 //Q: Add Please Select... and force choice before add to cart
			defaultMsg = "<?php echo $this->language->get('text_please_select');?>";
			warningMsg = "<?php echo $this->language->get('text_select_warning');?>";
			$('#product select').each (function(i, select) {
				$(select).prepend('<option value="<?php echo $minimum; ?>">'+defaultMsg+'</option>');
				$(select).val(<?php echo $minimum; ?>);
				});
			$('#add_to_cart').click(function (event) {
				$('#product select :selected').each (function(i, select) {
				if ($(select).text() == defaultMsg) {
					alert(warningMsg);
					event.stopImmediatePropagation();
					return false;
					}
				});
			});
//Q: EOF 
	 
				 
 
		 
 
		 
 
		