[ic] overwriting existing item
Mike Heins
interchange-users@icdevgroup.org
Sun Oct 27 15:09:00 2002
Quoting Chaim Klar (c_klar@c-cs.com):
> HI:
>
> In the IC admin area when I enter a new item with a sku # already
> existing in my catalog it overwrites the old one.
>
> Does anybody know of a quick fix that it should not overwrite the old
> item; instead it should notify the user about the key violation.
>
It is a useful suggestion.
If you are on 4.8 I don't have more than telling you to change the
"new item" link in icmenu to point to a page where you have roughly:
[set Check existing]
[if type=data term="products::sku::[cgi item_id]"]
[tmp message]That item ([cgi item_id]) exists![/tmp]
mv_nextpage=@@MV_PAGE@@
[/if]
[/set]
<form action="[area admin/item_edit]">
<input type=hidden name=mv_action value=back>
<input type=hidden name=mv_click value="Check existing">
New item SKU: <input type=text name=item_id value="">
</form>
See Tips and Tricks for customizing Admin UI.
In the 4.9 setup, I will be looking at doing a "wizard" to access
when creating a new item, and we will clean up the autonumber stuff.
It is on the list of things to do.
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.513.523.7621 <mike@perusion.com>
Experience is what allows you to recognize a mistake the second
time you make it. -- unknown