Post by comprido » Tue Oct 01, 2013 7:18 pm

Idea from: http://stackoverflow.com/questions/4061 ... -real-time

OPEN admin/view/catalog/product_form.tpl

About line 15 search for

Code: Select all

 <div id="language<?php echo $language['language_id']; ?>">
            <table class="form">
              <tr>
                <td><span class="required">*</span> <?php echo $entry_name; ?></td>
                <td><input type="text" name="product_description[<?php echo $language['language_id']; ?>][name]" size="100" value="<?php echo isset($product_description[$language['language_id']]) ? $product_description[$language['language_id']]['name'] : ''; ?>" />
                  <?php if (isset($error_name[$language['language_id']])) { ?>
                  <span class="error"><?php echo $error_name[$language['language_id']]; ?></span>
                  <?php } ?></td>
              </tr>
              <tr>
CHANGE TO:

Code: Select all

<script> 
		  var a = document.getElementById("titulo2");
		  var b = document.getElementById("titulo3");
		  var c = document.getElementById("titulo4");
		$("#titulo1").keyup(function() {
	    a.value = this.value;
	    b.value = this.value;
	    c.value = this.value;
		});      
		   </script>
          <div id="language<?php echo $language['language_id']; ?>">
            <table class="form">
              <tr>
                <td><span class="required">*</span> <?php echo $entry_name; ?></td>
                <td><input type="text" id="titulo<?php echo $language['language_id']; ?>" name="product_description[<?php echo $language['language_id']; ?>][name]" size="100" value="<?php echo isset($product_description[$language['language_id']]) ? $product_description[$language['language_id']]['name'] : ''; ?>" />
                  <?php if (isset($error_name[$language['language_id']])) { ?>
                  <span class="error"><?php echo $error_name[$language['language_id']]; ?></span>
                  <?php } ?></td>
              </tr>
              <tr>
So any text you type in the first language input field will be autocopied to second, third and fourth languages.

:)

Pedro Martin - websitesbuilder.com.au
Checkout my free extensions: https://www.opencart.com/index.php?rout ... r=comprido


User avatar
New member

Posts

Joined
Mon Sep 10, 2012 11:46 pm

Post by CZechBoY » Tue Oct 01, 2013 7:21 pm

I don'tthink it will work with only 1 language or with 5 languages.
Make thing that will work everywhere, on only on your shop if you want to public it.

Mass update product descriptions/Hromadná změna popisků zboží


User avatar
Active Member

Posts

Joined
Mon Mar 19, 2012 1:39 am
Location - Europe, Czech republic; Hradec Králové, Brno
Who is online

Users browsing this forum: No registered users and 46 guests