Any changes to hook_menu requires cache clear.<div><br></div><div>Additionally, if you are calling uc_cart_block directly, this function requires arguments to return the markup for the specific block delta, i.e. $op = 'view' $delta = 0. Please see uc_cart.module -- you may simply want to create your own callback and repurpose some of the code if you are implementing this via AHAH.<br>
<br><br><div class="gmail_quote">On Sun, Jan 30, 2011 at 1:06 PM, Ken Rickard <span dir="ltr"><<a href="mailto:agentrickard@gmail.com">agentrickard@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#FFFFFF"><div>Did you clear the menu cache? <br><br><div><br></div></div><div><div></div><div class="h5"><div><br>On Jan 30, 2011, at 2:56 PM, John Mitchell <<a href="mailto:mitchelljj98@gmail.com" target="_blank">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/" target="_blank"></a><a href="https://mydomain/" target="_blank">https://mydomain/</a><b>cart/refreshcart</b><div style="display:inline">
</div>"<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" target="_blank"></a><a href="https://mydomain/admin/store/settings/cart" target="_blank">https://mydomain/admin/store/settings/cart</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></div></div></div></blockquote></div><br></div>