It would be a great tool. I looked for this but...

Loggedd in as user/1. Installed, enabled (of course the defauld Flag module too as weel as Product etc.) but this flag can't be seen!

It's not listed on Flags page (admin/build/flags), can't be seen at nodes. So I cant find, set and use it?!

Any idea, what the problem could be or what I do wrong?

CommentFileSizeAuthor
#3 flag_admin_page_queries.jpg243.51 KBthamas

Comments

joachim’s picture

The flag is defined in hook_flag_default_flags, which flag module should pick up.
Try clearing your cache.

joachim’s picture

Status: Active » Postponed (maintainer needs more info)

Hmm, doesn't look like there's a cache for flags.

Can you check that uc_notforsale_flag_default_flags() gets called on the flags admin page?

thamas’s picture

Status: Postponed (maintainer needs more info) » Active
StatusFileSize
new243.51 KB

I'm not sure i did it right (I am not a coder), but I enabled Devel and set it to list all query. I didn't see uc_notforsale_flag_default_flags() in the list. See the attached image.

If I was wrong, please tell me, how to look for it!

joachim’s picture

Status: Active » Postponed (maintainer needs more info)

I've just installed on a fresh system and it all works perfectly for me.

This is actually about function calls not queries.
Now you have devel installed, open up the uc_notforsale.module file and add this dsm() statement to uc_notforsale_flag_default_flags like this:

function uc_notforsale_flag_default_flags() {
  dsm('uc_notforsale_flag_default_flags is being called!'); // add this line

This will produce a message when you are at admin/build/flags.

If not... something is very wrong with your site!

thamas’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

I added the statement, but there were no message. Anyway it is a test site to learn uc. So I added the module to an other uc site, and there it works well.

Thanks for your effort!

(By the way I have a future request: #652062: Remove quantity field too)