Actinic Mini-Cart
*****************

The mini-cart has been tested on Actinic v7 and v8. 

*****************

1.	In your site directory, make backups of the Cart.pm, ActinicOrder.pm and actinicextras.js files.


2.	Open Cart.pm in a text editor such as Notepad, and move to the very end of the file where it reads '1;'.

	Directly ABOVE this line, paste the contents of the miniCart.txt file included with this download. Save and close the file.


3. 	Open ActinicOrder.pm in your text editor, and search for 'sub GenerateCartCookie'.

	A few lines down, you'll see the following line:

		my $nTotal = $Response[6];

	Replace it with the following:

		my $nTotal = $Response[6];
		my $vatStr ="tx=" . $Response[4] . "sh=" . $Response[3];

	Next, look for the following line:

		$sCookie =  "CART_TOTAL\t" . ACTINIC::EncodeText2($sTotal) . "\tCART_COUNT\t" . ACTINIC::EncodeText2($nCount) . "\n";

	Replace this line with the following:

		$sCookie =  "CART_TOTAL\t" . ACTINIC::EncodeText2($sTotal) . "\tCART_COUNT\t" . ACTINIC::EncodeText2($nCount) . "\t" . $vatStr . $pCartObject->miniCart() . "\n";

	Save and close the file.

4. 	Open actinicextras.js in your text editor. At the very end of the file, paste the contents of the
	getMiniCart.txt file included with this download. Save and close the file.


5.	You are now ready to display the mini-cart on your pages. Copy and paste the following into your template or layout, depending on your version of Actinic:

		<script type="text/javascript">document.write(getMiniCart());</script>

	If you are using version 7, paste the code directly into your primary templates (Act_Primary.html / Act_BrochurePrimary.html).

	If you are using version 8, you can simply paste the code directly into your overall layout. Alternatively, create a new Layout in the Design Library (based on Shopping Cart Summary In Box), and paste the code into this new Layout. You can now easily switch between Shopping Cart layouts in your overall design.

	Note that you can continue to use Actinic's standard cart display without having to revert to the original scripts.

6.	If you want to customise the look of the mini-cart, refer to the notes included inside the getMiniCart.txt file.