EcomDev_UrlRewrite icon indicating copy to clipboard operation
EcomDev_UrlRewrite copied to clipboard

Skip disabled and not visible products

Open tmotyl opened this issue 12 years ago • 5 comments

Would be nice if indexer can skip products which are disabled or individually not visible (associated products of a configurable product).

tmotyl avatar Oct 24 '12 10:10 tmotyl

@IvanChepurnyi Are you planning on adding this functionality? Maybe have the option to completely disable the URL generation of products and only enable category rewrites.

paales avatar Jun 17 '13 13:06 paales

Hi @paales, I don't have any time to make this happen. Although there will be a very major refactor of the functionality with moving logic out of core_url_rewrite.

IvanChepurnyi avatar Jun 17 '13 13:06 IvanChepurnyi

Hmm, I see what you mean. For our current project we are going to disable the product url rewrites and maybe create a custom router in the future. Disabling only the product rewrites is relatively easy as far as I understand.

Disable the _generateProductRequestPathIndex method and the _importFromProductRequestPath method we're good to go. (Or am I missing something).

paales avatar Jun 17 '13 14:06 paales

Yes, both of those methods can be used.

IvanChepurnyi avatar Jun 20 '13 17:06 IvanChepurnyi

DnD Build up an Extension that can ignore disabled products and also can ignore the categorie path. So i saw u ( @IvanChepurnyi ) did not replace any model but i did not have time actually to merge these extensions

EDIT: oh i forgot the link http://www.dnd.fr/2012/09/magento-patch-how-to-optimize-re-index-processing-time-for-url-rewrite/

mklooss avatar Jul 04 '13 07:07 mklooss