Is there a simple way to force the Product Detail Page creation in Core Commerce?

Permalink
Does anyone know of a simple way to prevent a user from skipping the Product Detail Page creation in Core Commerce when adding a new product?

TracieKarbo
 
enlil replied on at Permalink Reply
enlil
first you need to make a copy of /packages/core_commerce/tools/create_page.php and move the copy to /tools via ftp. Next open the file in /tools. find:

<div class="dialog-buttons">
            <a onclick="$('#<?= $args['target_id'] ?>').val('');$.fn.dialog.closeTop();" class="btn"><span><?=t('Skip Page Creation')?></span></a>
        </div>


you have two options..

remove:
<a onclick="$('#<?= $args['target_id'] ?>').val('');$.fn.dialog.closeTop();" class="btn"><span><?=t('Skip Page Creation')?></span></a>


or just remove "skip page creation" leaving the two quotation marks intact, in case you want to come back later and easily re-enable the link!!