Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
On the demo there is a option to select product on the left. I don't seem to have this option. Have I missed something or is it not available yet.
Comment | File | Size | Author |
---|---|---|---|
#8 | 42945-2272011112708pm.png | 106.41 KB | Ciprian Oancia |
#3 | posview.jpg | 54.37 KB | slip |
#3 | posfield.jpg | 111.94 KB | slip |
#3 | block_view.jpg | 25.33 KB | slip |
Comments
Comment #1
slip CreditAttribution: slip commentedThat's definitely a feature we want. What's on the demo site is just something I threw together.
The demo site is using a view and rewriting the output of the sku field to add a div with a special class attribute. The I coded some Javascript to pull the text of the sku field, throw it into uberpos's input box and then submit it.
I haven't quite figured out how I want this feature to work when it's added to the module. It gets a bit more complicated when a store has more than a few products.
Comment #2
iceclimb CreditAttribution: iceclimb commentedJust a thought slip... configuring a block that lists the products in the store allows you to put in one or two products at a time, then it would just be a matter of making the name link to the uberpos.... I'm trying that now, although my java script is rusty.
Comment #3
slip CreditAttribution: slip commentedJust committed the code sponsored by plug, thanks Marcus! Here's the commit: http://drupal.org/cvs?commit=318032
It's set up on the demo site. I've attached screen shots of the view configuration, the field configuration and the rendered block.
You can output CCK fields, ubercart skus and anything else views will give you as a token. In the view I first get the image and SKU, mark them to not be displayed and then use their tokens as output in the uberpos field.
For commands you can use [model] and other tokens as well as enter other commands and do pretty much anything. For example, if you have donuts and you want a button to sell a dozen you could do 12*[model] in the input field.
Also, you can use exposed filters as shown in the screen shot. The demo uses the taxonomy filter, but you can also use a search filter etc.
Check it out everybody and let me know what you all think.
Comment #5
xl_cheese CreditAttribution: xl_cheese commentedCan this be made to be compatible with products that have attributes in addition to those that don't?
Products without attributes use the [model] for POS input.
If a product has attributes it needs to use [model_1] for POS input.
Thanks.
Comment #6
slip CreditAttribution: slip commentedI'm not sure how this would work if you have multiple attributes? I think it would be up to ubercart to expose that information to views in a way that makes sense. It's currently not a views field, correct? I'm tempted to just give up on attributes, lol.
Comment #7
xl_cheese CreditAttribution: xl_cheese commentedI think we just want to expose the attribute drop down boxes on the view block.
Comment #8
Ciprian Oancia CreditAttribution: Ciprian Oancia commentedHi everyone
I have a problem with field not being displayed in views, any idea why ?
Im using D7
Comment #10
mcsleazy CreditAttribution: mcsleazy commentedWould it be possible to get a screen shot of the settings used for "Taxonomy: Term exposed" ? If I activate this, it displays nothing, so I think I'm using the wrong settings..... Thanks.
Comment #11
mcsleazy CreditAttribution: mcsleazy commentedI think I have it - the issue seems to be that there are two "Taxonomy - Term" to pick from in the filters, and the one we want is "The taxonomy term ID".
A further question would be - is it possible to have this block work without the apply button? ie. Can the block update without the need for an additional keypress?
Imagine this is being used by someone who is putting through hundreds of items a day. The 'apply' button is doubling the amount of keypresses required....
Comment #12
mubiesam CreditAttribution: mubiesam commentedThere are thousands of commits under this link, can not find it...
http://drupal.org/cvs?commit=318032
Can you give me a hint where can I get it easier...
Thanks,
Sam