Sunday, August 22, 2010

Prestashop Tips - Invoice PDF bug

There is bug at invoice PDF / delivery slip if change price display from Tax included to Tax excluded.

The following problem occurs if you set Tax Excluded

Shipping Fee alwasy displayed as 0 in invice PDF


If you want to fix the problem, you must change back use Tax Included display.

Added on Oct 02,2010
I have found a way to fix the problem. Please see my another post here:

http://alvinjiang.blogspot.com/2010/10/prestashop-tips-pdf-invoice-with.html

Prestashop Tips -- Price tax included/excluded

At Prestashop, you set set price displayed as tax included ot tax excluded.
Th setting is customer group based.

Steps:
1. Login to back office
2. Go Customer tab
3. Select Groups
4. Find the customer group in the group list ad click "edit" link.
5. Select "Tax Included" or Tax Exclued

Sunday, July 11, 2010

How do I show .htaccess / .htpasswd files in Core FTP

The .htaccess file and .htpasswd files are present on Lynux/UNIX webservers, and server a variety of purposes, the most common of which is for MOD_Rewrite for SEO friendly URLs.

However, most FTP programs do not show these files by default, making it difficult to amend them!

If you use the Core FTP, the following instructions will show you how to change the Core FTP settings to display .htaccess files in your server directory listing.

1. Establish a connection to the relevant server.
2. Right-click anywhere in the remote server window
3. Select Directory Commands -> List Mode and then put the tick next to ‘Advanced’.
4. Refresh the directory, and if present, your .htaccess file will now be displayed

Monday, June 21, 2010

How to Enable Concurrent Sessions for Windows 7

By Default, Windows 7 only allow one user to login as a time. It is not allowed two users to login concurrently. By there is a way to enable multiple users concutrrently access locally or remotely.

See here for detals:

http://www.blogsdna.com/2336/enable-multiple-user-accessconcurrent-user-sessions-for-remote-desktop-on-windows-7.htm

Tuesday, June 15, 2010

Silverlight 4 & RIA -- MEF and decrypting LoaderExceptions

Have you ever received the following exception while using MEF?

"Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information."

This is usually happend when required assemblies are not "copied to local" folder so that they are not included in Client.XAP file of silverlight.

There are two issues with Visual Studio that make this happen.
1. If a assembly is used and referenced in projects other than the Silverlight project, for example, used in common/data assembly, than the referenced assembly will not be copied to silverlight bin file.

2. If you changed folder structure of your solution, for example you create sub folder for client and client, put each projects under those folders. In most cases, the reference will be refered to its own bin folder.

Silverlight 4 & RIA - MetadataException: Unable to load the specified metadata resource

If subject error occured, you may check following thins:

•Have you changed the MetadataArtifactProcessing property of the model to Copy to Output Directory?

•Have you changed connection string? The connection string could be wrong.

•You might be using a post-compile task to embed the EDMX in the assembly, which is no longer working for some reason.

In my case, there was an error in the connection string

.... metadata=res://*/ProjectName.csdl|res://*/ProjectName.ssdl|res .....

Tuesday, May 25, 2010

PrestaShop Tips - set display_errors to on for trouble shooting

I experienced an issue when I switched my hosting server. I took me a lot of time to find out the cause and fixed the problem. Here I put this tips as memo, hope it will help myself to remember and also share the tips with any one experience the same problem.

The symtom my issue is:
When login to back office at PrestaShop and tried to config my moules at modules tab, but the page is empty, no modules is displayed. No error is displayed.

I checked everything as instructed in the PrestaShop Wiki, such as folder permission, modules class files and so on, but I was still not luck.

Finally, I found there is configuration item "display_errors" in config file.
By default it is set as 'off' as indicated below.

@ini_set('display_errors', 'off');

I changed this config item value from 'off' to 'on' than re-run my page, the following error was displayed.


Fatal error: Class 'ModuleGraphEngine' not found in /hsphere/local/home/c270727/carnvee.com/classes/Module.php(323) : eval()'d code on line 13

Then I checked file ModuleGraphEngine.php under classes folder and found the file size was zero (0). I am pretty sure at this momemnt that the cause of problem is the stupid file transfering issue.