I have an item I wish to be accessible by a form and url, but I do not want it listed on my catalogue page. This item is for specific email leads only. Any of you smart people out there that may know of any tweaks or mods I can do to accomplish this for my site? Thanks!
Hello, Do you mean shopping cart catalog? You can include to this catalog only subset of your products from some product category. Use options 'Category' in shopping cart configuration: aMember CP -> Shopping Cart New categories you can add at aMember CP -> Products -> Manage Products -> Edit Categories Then you can use bulk action to assign desired products to category:
There is another approach but it require small code customization. You can add the following code in site.php http://www.amember.com/docs/Site.php_file PHP: Am_Di::getInstance()->productTable->customFields()->add(new Am_CustomFieldCheckbox('cart_exclude', 'Exclude from Shopping Cart'));Am_Di::getInstance()->hook->add('cartGetProductsQuery', function(Am_Event $e) { /* @var $q Am_Query */ $q = $e->getQuery(); $q->leftJoin('?_data', 'd', "d.`table` = 'product' AND d.`key` = 'cart_exclude' AND d.`id` = p.product_id"); $q->addWhere('d.`value` IS NULL OR d.`value`<>1');}); and then you will have new option in product settings - 'Exclude from Shopping Cart'
Just to add, we use the first version all the time - works really well... simply set the cart 'root' to be a specific category, and add any child categories you need under that so you've got your content organised as you want... then add a product and put it in a totally different category that is not listed under the shopping cart 'root'. I like the look of the site.php edit, too... I'll give that a try
@caesar I tried your customization code above. When I use lookup from main page to search for a user, I now get an error "Serialization of 'Closure' is not allowed" If I switch back to original site.php, the error goes away.
@crystalmedia it seems you have old version of aMember. Do you mind to upgrade to latest version (5.4.1)? It should fix this issue. Best Regards.
Hi Caeser, I'm also trying to do this but do not see the Shopping Cart tab listed on the aMember Control Panel. Where do we find it now? Thanks, D