cmsimple-xh / xhshop

A simple shop for CMSimple_XH
GNU General Public License v3.0
4 stars 3 forks source link

Don't let select an article which is not available #238

Open manu37 opened 1 year ago

manu37 commented 1 year ago

Articles which are set to unavailable don't show up in the overview but are still callable by Product ID (e.g. out of Google Search Results) and thus can be ordered, Bug.

manu37 commented 1 year ago

FrontEndController.php line 681: if (!$product or !$product->isAvailable()) {

manu37 commented 1 year ago

To answer with 404 might be better. Otherwise the orphaned product ids stay indexed forever.