mage

Custom icon for ClickOnce application in 'Add or Remove Programs'

…衆ロ難τιáo~ 提交于 2020-01-09 03:41:06
问题 A ClickOnce application created using Mage is not showing the icon that was specified in for the Mage command-line parameter in control panel Add or Remove Programs . I read some blogs, like: Application icon is not displayed in Add/Remove Programs dialog Missing Icon in Add/Remove Programs for ClickOnce Application How can I achieve this without editing registry keys? Is it possible? 回答1: There's no way to do this without editing the registry, but you can do it programmatically. You have to

XBAP Clear cache from application

邮差的信 提交于 2019-12-25 05:04:53
问题 Is there a way to clear the cache from Xbap application instead of running mage or rundll32 from command prompt?? 回答1: As far as I know the only available tool is 'mage -cc'. http://www.vistax64.com/avalon/11917-xbap-applciation-issues.html 回答2: Programmaticaly you can use this: new System.Deployment.Application.DeploymentServiceCom().CleanOnlineAppCache(); original Don't forget about your app rights. 来源: https://stackoverflow.com/questions/11774838/xbap-clear-cache-from-application

Checking for Magento login on external page

限于喜欢 提交于 2019-12-24 10:47:21
问题 I'm hitting a wall here while trying to access items from Magento on an external page (same server, same domain, etc, etc). I want to see if the user is logged into Magento before showing them certain parts on the site. Keep in mind that this code exists outside of Magento. Mage::app("default"); Mage::getSingleton("core/session", array("name" => "frontend")); if (empty($session)) { $session = Mage::getSingleton("customer/session"); } if($session->isLoggedIn()) echo "hi"; $cart = Mage::helper(

how to add state wise tax charge without adding customer and product class

醉酒当歌 提交于 2019-12-24 03:50:27
问题 my question is bit technical. i want to ask if i belong to state named NJ, and i want apply tax rule only on this state, means if user selects NJ on checkout as its billing state it should charge him 7% extra in checkout. i have made the tax rule as well but unable to implement on front end. i want this without influence of product and customer class. if i am wrong please give me proper direction with step by step guide. i am using magento 1.8.0. please help........................ what sort

Use mage.exe to create a ClickOnce deployment manifest for *.deploy files

落爺英雄遲暮 提交于 2019-12-24 00:52:22
问题 How does one use mage.exe to create a ClickOnce deployment manifest, when the application files have the *.deploy extension? Some give up and use MSBuild.exe and the GenerateDeploymentManifest task instead. What if you want to use mage.exe directly? 回答1: If you want to use mage.exe alone, what you need to know is that it cannot be done. At least not with mage.exe alone. Mage.exe does not have a way to build a deployment manifest (*.application file) to download *.deploy files. You must

Manual XBAP publishing

拟墨画扇 提交于 2019-12-23 00:29:07
问题 I found a method to manually publish a regular WPF Application, but i need the same instructions for a WPF Browser app instead. Here is the regular WPF App howto: http://msdn.microsoft.com/en-us/library/xc3tc5xx(VS.80).aspx . If anyone knows what changes I need to make to my mage commands to make it work for XBAP please let me know. Thanks. 回答1: I had to alter the name of the default "Application Files" folder for one of our customers who doesn't like spaces in file or folder names and this

Magento - Set product attribute to use default values

廉价感情. 提交于 2019-12-18 13:30:31
问题 This has been asked many times before but with no working answer. I have multiple stores and some attributes have been overridden. I want to change these attributes to 'use default value' with a script. Here is an image showing store views and 'use default value' checkboxes http://dl.dropbox.com/u/3209649/storeviews-and-defaultvalues.png (not allowed to post images yet) In app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php setData() is used with false for the second

Trying to install a Magento Module that seems to not be Compiler Compatible - Magento 1.7.0.2

▼魔方 西西 提交于 2019-12-11 11:04:43
问题 trying for some time how to install magento extension on magento 1.7.0.2 Cash On Delivery by mage specialist - http://www.magentocommerce.com/magento-connect/cash-on-delivery-6259.html tried three steps 1) disable cache and compliation , install the extension and reenable the cache and compilation 2) disable compliation and cache , install the extension and enable the compilation and cache getting errors : Fatal error: Class ‘MSP_CashOnDelivery_Helper_Data’ not found in /home/bwcom/public

Hide time in transaction mails with {{var order.getCreatedAtFormated(''short'')}}

北城余情 提交于 2019-12-11 07:45:22
问题 I have a little problem. I only want to display the date without time in my order mails. For that I have to use {{var order.getCreatedAtFormated(''short'')}} afaik. But it is still showing the time. Of course I searched the Magento source and I am wondering why it's not working. When I look into app/code/core/Mage/Sales/Model/Order.php I can find that: /** * Get formated order created date in store timezone * * @param string $format date format type (short|medium|long|full) * @return string *

Adding to Grid Selection for grid.php file

随声附和 提交于 2019-12-11 02:49:21
问题 I asked a similar question but I did not provide sufficient details and I got no answers so I will try again. The main task is to add fields to the CSV file that is exported under the magento admin sales->invoices. I found the main file to edit: app/code/core/Mage/Adminhtml/Block/Sales/Invoice/Grid.php This has the options to addColumn's like so: $this->addColumn('increment_id', array( 'header' => Mage::helper('sales')->__('Invoice #'), 'index' => 'increment_id', 'type' => 'text', )); Now