Reset Inventory - Product Import (Sad)

Hello,



Sometimes you make a small failure, sometimes a big one!



Imagine yourself, you can loose concentration at the end of day… (after a long sad day product management) :grin: :-) :? :neutral: :-(



In cs-cart press once the checkbox “Reset inventory” by a regular product-import and go to home!



You will never ever have a sale anymore! All pricings of the complete store are deleted!

You can scream “oh my God” but there is no mercy! No revert options!



How to pretend the “reset inventory” option, on the products to import, or for the whole store? Oh, you have forgot to read the small “?” icon… :grin:



CS-staff, please build a better prevent option for this situation.

This is only a feedback note, no critical or sarcasm!











Thank you!

reset-inventory.jpg

Similar dangerous action like delete a category with products. Sometimes backups are necessary when disaster happens.

[quote name='cscartrocks' timestamp='1397646524' post='181801']

Similar dangerous action like delete a category with products. Sometimes backups are necessary when disaster happens.

[/quote]



There is no cron- or auto backup function in CS-Cart or a roll-back, revert option.



We organizing this by server backups. But a mistake in the “delete category” or “reset product-inventory” cost hours to solve.

[quote name=‘dennis’ timestamp=‘1397644222’ post=‘181799’]

Hello,



Sometimes you make a small failure, sometimes a big one!



Imagine yourself, you can loose concentration at the end of day… (after a long sad day product management) :grin: :-) :? :neutral: :-(



In cs-cart press once the checkbox “Reset inventory” by a regular product-import and go to home!



You will never ever have a sale anymore! All pricings of the complete store are deleted!

You can scream “oh my God” but there is no mercy! No revert options!



How to pretend the “reset inventory” option, on the products to import, or for the whole store? Oh, you have forgot to read the small “?” icon… :grin:



CS-staff, please build a better prevent option for this situation.

This is only a feedback note, no critical or sarcasm!



Thank you!

[/quote]



Small trick. Open the “design/backend/templates/views/exim/import.tpl” file and replace this part of code:


<br />
{include file="buttons/button.tpl" but_text=__("import") but_name="dispatch[exim.import]" but_role="submit-link" but_target_form="`$p_id`_manage_layout_form" but_meta="cm-tab-tools"}<br />

```<br />
<br />
with this one:<br />
<br />
```php
<br />
{include file="buttons/button.tpl" but_text=__("import") but_name="dispatch[exim.import]" but_role="submit-link" but_target_form="`$p_id`_manage_layout_form" but_meta="cm-tab-tools cm-confirm"}<br />

```<br />
<br />
Clear the cache. Now you will see confirmation popup if you click on the "Import" button.<br />
<br />
Thanks.

[quote name='eComLabs' timestamp='1397649660' post='181803']

Small trick. Open the “design/backend/templates/views/exim/import.tpl” file and replace this part of code:



{include file="buttons/button.tpl" but_text=__("import") but_name="dispatch[exim.import]" but_role="submit-link" but_target_form="`$p_id`_manage_layout_form" but_meta="cm-tab-tools"}




with this one:



{include file="buttons/button.tpl" but_text=__("import") but_name="dispatch[exim.import]" but_role="submit-link" but_target_form="`$p_id`_manage_layout_form" but_meta="cm-tab-tools cm-confirm"}




Clear the cache. Now you will see confirmation popup if you click on the “Import” button.



Thanks.

[/quote]





Thanks for the addition! It will be great, CS-staff implement it too! Thanks again!