How to prevent the shopping cart from appearing every time you add an item to the cart? - snipcart

Per the 3.x documentation, adding data-config-add-product-behavior="none" to the div#snipcart element is not working for me, the cart still appears every time I add an item to the cart.
At a lost for what to do, everything else is working fine for me...

Related

VSTS/TFS Extension - Reflect changes in Grid/Board without refreshing entire page

I've written an extension for VSTS/TFS which adds a context menu for creating child work items.
The creation of the work items works well, but the change is not reflected in the Grid/Board until I perform a Refresh of the entire page.
Is there a way to refresh just the affected work items (somewhat similar to the refresh performed by the '+' menu item)?
There isn't any way to achieve this. If you open two pages and click "+" button to add two different child workitems from the two pages in the same time, you will find that the affected work item is not real refreshed, it just show the new added one. And you cannot control the behavior on Grid/Board either since the VSTS extensions are hosted in iframe which is cross-origin.
As far as I know this is currently not possible.
I struggled with that question for quite some time before I gave up and just told my users to hit F5 after creating the new work items. The NavigationService is the best alternative i know of.
For your specific case, this doesn't help you. However, if anyone runs across this question looking for ways to refresh a work item, you can use the work item form service method "refresh":
https://www.visualstudio.com/en-us/docs/integrate/extensions/reference/client/api/tfs/workitemtracking/services/workitemformservice#refresh
This service is a means to interact with the currently active work item form. So, this refresh will work on a work item that the user has opened.

Apple Watch Complication extension

I'm creating a Complication for Apple Watch and I've came across a doubt.
For now, I've set an Array of 5 entries for the timeline, and everything is working correctly.
my question goes, what happens when the request returns nil, like after the 5 entries were displayed?
Does the Watch refreshes itself and executes all of the delegate methods again to populate the entries, or does it stops working because it hasn't more information to display since the 5 entries were displayed already?
If so, is there any way of adding another entry to the end of the array itself? When the first entry of the array has passed is there a way for me to append a new one to the end of it, so I'd get always 5 entries to display and the app wouldn't run out of information to display?
It could sound confusing, but I hope you'd get what I meant to say, hope my English is understandable.
Kind regards.

What are the missing features in adempiere web UI

I was working on the ADempiere Web UI. But found many features are not working in Web UI like value format . And found some forms are not working properly. Can you list out the mis links in WEBUI compare to the application?
The important things are
1.Reset user password does not submit changes
2.Cannot create a new Sales Order. If created, cannot be saved. DocType and Partner Locations Fields doesn't retrieve anything.
3.When creating a line item, if product is updated to choose one different from the originally chosen, the unit price and line amount are not updated unless the quantity is changed.
4.When trying to create a PO from a requisition, the process fails with an error without any further description of the problem
5.Some pull down selection such as for categories and codes doesn't work. They have zoom buttons but some have no window error. The common error is eve though it has a window when zoomed, it doesnt do anything to get the selected value back.
6.Cannot Open/Close Periods, Period Action doesnt have values.

Rails Drag And Drop For Create/Edit Associations

I have tried to search for an answer for this, but nothing seems to be exactly what I'm looking for.
I'm using Rails 4 and I have an Exercise model and a Routine model that have a has_many through relationship via Exercise_Routine. The users have associated with them a list of routines and a list of exercises. The goal is to let a user make up the associations of what exercises belong in routines by being able to drag them from their list of exercises to a list of exercises associated with the routine they're editing.
So it would involve two lists. One being the list of exercises a user has and the other being the list of exercises associated with the current routine. I want to make it so they can drag and drop from either list to edit this or even for the initial creation.
I can get the drag and drop between lists to work. What confuses me is how to do the updating of the database with the changes. Would rails realize that the user just removed one thing from the list and that it should delete that record? Would it try and recreate all the associations in the list every time resulting in an error?
I would also have this happen as part of the edit action inside the routine controller since that is where it logically would make sense to do it. Also would it be better to do an AJAX call that does the update each time they make a change or wait for all the changes and a submit button press to do the actual update?
I can see how I want this to work in my head, but the how is eluding me. Any help is appreciated.
Rails cannot do drag and drop by itself: you need to use some kind of Javascript library like jQuery.
There is a railscast on this topic: http://railscasts.com/episodes/147-sortable-lists-revised?view=comments

update multiple dropdown menus at the same time

I'm still very new to rails so forgive me if this question just doesn't make any sense. However, I have a requirement to update several dropdown boxes in a report (which has one dropdown per row) at the same time. So, instead of clicking each dropdown in each row and selecting the status, what the user would like to do is press a button (or some other action) that changes all rows to a particular status. This functionality would be similar to selecting several checkboxes next to unread emails in gmail and hitting the "mark as read" button.
Any and all help appreciated.
This should help get you started:
http://railscasts.com/episodes/165-edit-multiple
http://railscasts.com/episodes/52-update-through-checkboxes

Resources