Hi. Is there any extension or way to make the product/model code auto generate itself? A string of letters and numbers, preferably ascending in a logical order, that generates itself, would be so much easier than typing it yourself.
Thanks in advance.
Thanks in advance.
I'm looking for the same feature. I don't really care what the model code is so an auto-gen would be great! Will make adding multiple produts much faster.
easiest way to do it would be to use epoch time in seconds from January 1st 1970
That way it will always be unique and only 1 small file edit is required to accomplish it
edit: admin/view/template/catalog/product_form.tpl
find
change to
That way it will always be unique and only 1 small file edit is required to accomplish it
edit: admin/view/template/catalog/product_form.tpl
find
Code: Select all
<input type="text" name="model" value="<?php echo $model; ?>" />
Code: Select all
<input type="text" name="model" value="<?php echo ($model==''?time():$model); ?>" />
I went ahead and created a vQmod for uksitebuilder's idea:
http://www.opencart.com/index.php?route ... on_id=4505
Enjoy!
http://www.opencart.com/index.php?route ... on_id=4505
Enjoy!
@ UKSB,uksitebuilder wrote: findchange toCode: Select all
<input type="text" name="model" value="<?php echo $model; ?>" />
Code: Select all
<input type="text" name="model" value="<?php echo ($model==''?time():$model); ?>" />
Is there a way of having this line of code to UPDATE or REPLACE any existing number in the model field?
For example, if I have a product template set up & I copy that & then edit the copy, it will have the model number already in, but I would like to replace it using the line of code above if its possible?
cheers
Add To Cart Confirm Ajax Popup for OC 1.5.1.3 --> 1.5.5.1 - Add to Cart Confirmation Popup
Image Map Banner Module - Image Map Banner Module
----------------------------------------------------------------------
Womens Famous Name Fashion Clothing at bargain prices - Next2nowt.com
Who is online
Users browsing this forum: No registered users and 278 guests