<html><body bgcolor="#FFFFFF"><div>Did you clear the menu cache? <br><br><div><br></div></div><div><br>On Jan 30, 2011, at 2:56 PM, John Mitchell <<a href="mailto:mitchelljj98@gmail.com">mitchelljj98@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>I added a hook_menu function (see below) to my product_type custom module but when I go to "<a href="https://mydomain/"><a href="https://mydomain/">https://mydomain/</a></a><b>cart/refreshcart</b><div style="visibility: hidden; display: inline;" id="avg_ls_inline_popup">
</div><style type="text/css">#avg_ls_inline_popup { position:absolute; z-index:9999; padding: 0px 0px; margin-left: 0px; margin-top: 0px; width: 240px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 13px;}</style>"<br>
it says "The requested page could not be found.". I have directly called other urls that were defined within the hook_menu function for the ubercart/uc_cart/uc_cart.module file and they came back fine like "<a href="https://mydomain/admin/store/settings/cart"><a href="https://mydomain/admin/store/settings/cart">https://mydomain/admin/store/settings/cart</a></a>". <br>
<br>Any idea why this would not work? <br><br>Thanks,<br><br>John<br><br>/**<br> * Implementation of hook_menu().<br> */<br><br>function product_type_menu() {<br> $items = array();<br><br> $items['<b><i>cart/refreshcart</i></b>'] = array(<br>
'title' => 'Refresh Shopping Cart',<br> 'description' => 'Refresh Shopping Cart',<br> 'page callback' => 'uc_cart_block',<br> 'access callback' => TRUE, <br>
'type' => MENU_CALLBACK,<br> 'file' => 'ubercart/uc_cart/uc_cart.module',<br> );<br><br> return $items;<br>}<br>
</div></blockquote></body></html>