Site corrupted and pages don't display.

Automatic multi currency display on entire catalog.

Run your catalog in a main currency (or a main and alternate) with the customer having the option to turn on an additional currency throughout the Catalog, Cart and Checkout.
Post Reply
norman
Site Admin
Posts: 1252
Joined: Sat Feb 07, 2004 9:55 pm

Site corrupted and pages don't display.

Post by norman »

Changes at the European Central Bank mean that NorPrice code was poisoning the page and preventing SellerDeck's PHP from running.
This is drastic as SD's PHP is needed to make BlockIf's work amongst many other things.

Fix is (in SellerDeck) go to Design / Library / Layouts / NorPrice / NorPrice Support.
Change the first line from e.g.

Code: Select all

<!-- START NorPrice Support V507 ECB -->
So that the number is 508

Still in NorPrice Support, locate and delete the block of code:

Code: Select all

<!-- Write local JavaScript file (when making store front page) so we always know ECB rate list -->
<actinic:block if="%3cactinic%3avariable%20name%3d%22IsFrontPage%22%20%2f%3e" >
	<actinic:block php="true">
		// V5 - SimpleXML
		// this file returns a JavaScript array and objects containing currency ISO codes, exchange rates and long names
		include_once('norpricenames.php');			// PHP array of ISOnames and their long names
		include_once('norpricegetecbrates.php');	// get ECB rates
		$fw = fopen('norpriceuploadrates.js', 'w');
		fwrite($fw, $jscode);
		fclose($fw);	
	</actinic:block>
</actinic:block>
OK Out.

Then unzip the attached file into your Site folder.
norpricegetecbratesV507A.zip
(806 Bytes) Downloaded 984 times
Finally, close and restart SellerDeck and do a site Update.
Norman
Post Reply