Posts

shopping cart - Magento howto fetch / change / overwrite the totals.phtml calculation? -

i had added product calculated 2 attributes , uses own calculated price. problem had rewrite grandtotal , subtotal calculation... example overwritting stuff. i hope here @stackoverflow magento guru had solved problem :-) i had changed /app/design/frontend/default/gutlauf/template/checkout/cart/item/ default.phtml layout of cart items done. but have problem /app/design/frontend/default/gutlauf/template/checkout/cart/ totals.phtml <table id="shopping-cart-totals-table"> <col /> <col width="1" /> <tfoot> <?php echo $this->rendertotals('footer'); ?> </tfoot> <tbody> <?php echo $this->rendertotals(); ?> </tbody> </table> how can own calculation ? figured out blocks tax/checkout_grandtotal tax/checkout_subtotal tax/checkout_tax for example /app/design/frontend/default/gutlauf/template/tax/checkout/grandtotal.phtml <?php echo $this-...

tfs2010 - Build details in custom section of TFS 2010 Build Summary page -

can me in putting build information in custom section of build summary page. for suppose, calculation on test results, based on need show output in custom section of build summary. please help. you can creating vs addin: tfs2010 – customizing build details view – summary view

php - how to catch the general node/add form? -

i have custom module , want catch node/add , inside form hook_nodeapi() doesn't show up. i need this, restrict access general node creation overview form. setting rights no solution me, because users need right "create content" take @ hook_form_alter . should able you're looking for.

mysql - How to choose multiple table structure for fastest query response -

i have database in listing events geography (currently around 100000 events in database). @ moment it's in nicely normalised schema: event in table tevent has foreign key fkvenue points @ venue in table tvenue has foreign key fkcity , , on tregion , tcountry . the query find countries events therefore complex, no less 3 inner joins: select r.fkcountry,count(distinct e.id) tevent e inner join tvenue v on e.fkvenue=v.id inner join tcity cy on v.fkcity=cy.id inner join tregion r on cy.fkregion=r.id group r.fkcountry order count(distinct e.id) desc i'm trying find ways of speeding things up, , thought might helpful map events directly country. i've created map table teventcountry , following simpler resulting syntax: select ec.fkcountry,count(distinct e.id) tevent e inner join teventcountry ec on ec.fkevent=e.id group ec.fkcountry order count(distinct e.id) desc to surprise, had exact opposite effect: new query took 5 times long older, more complex query. c...

javascript - Problem getting distanceFrom in Google Map api -

i try distance between 2 points using google maps api, function load_points(){ var geocoder = new gclientgeocoder(); var firstzip, secondzip; geocoder.getlatlng(document.getelementbyid("firstzip").value, function(point) { if (!point) { alert("this point not geocoded"); } else { firstzip = point; var marker = new gmarker(point); map.addoverlay(marker); } }); geocoder.getlatlng(document.getelementbyid("secondzip").value, function(point) { if (!point) { alert("this point not geocoded"); } else { secondzip = point; var marker = new gmarker(point); map.addoverlay(marker); } }); alert(new glatlng(firstzip).distancefrom(new glatlng(secondzip))); } the problem when try seems first executed alert , after g...

java - How to add a view to a specifc point on mapView -

an when ontouch event occurs on mapview, want layout have specified drawn above user has touched the below have started, not know how place popup view on x , y values retrieved event. guys have ideas? @override public boolean ontouchevent(motionevent ev, mapview mapview) { int x = (int)ev.getx(); int y = (int)ev.gety(); viewgroup parent=(viewgroup)map.getparent(); view popup=getlayoutinflater().inflate(r.id.popup, parent, false); ((viewgroup)map.getparent()).addview(popup); you can set mapview.layoutparams() values of x , y , call mapview's addview layoutparams. mapview.layoutparams params = new mapview.layoutparams(width, height, x, y, alignment); mapview.addview(popup, params);

javascript - Multiply numbers with more than 4 decimal points -

possible duplicate: round number in javascript n decimal places this may easy guys, my question is: how can control decimal places in floating point value. ex.: result returning 0.365999999999999; need show 4 decimal numbers. check demo: demo (i accept others ways calculate that) thanks! you can use .tofixed var number = 0.365999999999999; var rounded = number.tofixed(4); // 0.3660