Welcome to HelpThis area will help you to use the Price Options Script . Use the navigation links on the left of the screen for further information on that feature. New User? Start Here >>
Note: this help file is for Version 3.0 of the script If you are experiencing an error then please contact us using this page SetupIMPORTANT! Follow these steps when setting-up the script for the first time: There are at least three steps needed to add Price Options Script functionality to your web site. You will need all the pages of code sent to you via email or downloaded to make it work correctly. If you have deleted these pages then please contact us . The pos_example.htm page is a fully working example pages of the script. Look at the code to see how the script is set-up (open in e.g. Internet Explorer and go to 'View > Source').
The form is now ready to be edited to sell your products. Next: edit your form >> Drop Down Lists/ Select ListsThe code for a typical drop down list looks like <select name="productoption" onChange="CalcPrice(this.form)">
Here is an example of the most simple form of drop down list. <select name="productoption" onChange="CalcPrice(this.form)">
Here is an example of a more advanced drop down list with full options. <select name="productoption" onChange="CalcPrice(this.form)">
Text BoxesThe code for a typical textbox looks like
You can also use a textarea for multi-line text boxes. <textarea name="productOption"></textarea>
Note: for the option name to be shown beside the textbox you must ensure that in the mm_pos.js file the following code is set to true var ShowTextboxName = true; Check Boxes/Tick BoxesThe code for a typical check box looks like
Radio ButtonsThe code for a typical radio button looks like Option 1
Here's another example with three radio buttons <input name="productTest" type="radio" value="Test 1 :10.00" onClick="CalcPrice(this.form)" / > Option 1 <br />
Option 1 Submit/Reset ButtonsThe code for a typical submit button looks like
The code for a typical reset button looks like
Required FieldsFor some fields you will want the visitor to enter something. You simply list the exact name of the fields (case sensitive) separated by a comma in a hidden field called Required
Note: to change the alert message that shows if a visitor tries to add to cart and the required field value is missing you must ensure that in the mm_pos.js file the following code is set to the message you want. var RequiredMessage = "Please enter all required information"; Mal's Cart Form Elements - RequiredThere are several other elements in the script that are required to make it interact with Mal's Shopping Cart:
Mal's Cart Form Elements - All FieldsHere are all the Mals cart fields that can be used with the script. userid = Your User ID (REQUIRED WITH VALUE) Optional : CurrenciesTo show customers the price in another currency or currencies ensure that in the mm_pos.js file the following code is set: var TotalCurrencies = 2; Change 2 to the total number of currencies you wish to display e.g. $, €, £ etc. var CurrencyText = "Approx. "; This is the message that appears before the actual currency symbol and value e.g. Approx. $50.00 Currency Options/Arrays Currency[1][0] = "$"; Currency[2][0] = "€"; Each currency has two parts - the currency symbol and the currency conversion rate to the default currency. This is displayed using the options above Currency[x][0] = "Symbol";
Display Currencies on Form A form field called CurrencyMessage should be displayed on the form. The currency conversions etc. will be displayed here. <input type="text" name="CurrencyMessage" readonly="readonly" class="Transparent" / > No Currencies To not show currency information ensure var TotalCurrencies = 0, there are no Currency[x][y] values and the PriceMessage field does not exist or is hidden on your form. Delimiters/SeparatorsA delimiter is something that separates something, in this case each product option in the cart. In the mm_pos.js file the following code is set: var Delimiter = "{br}"; The Delimiter shows a {br} tag which Mals Cart identifies as a <br> or line break value. This can be changed to whatever you want (see below). StockCodeDelimiter is for multiple stock codes or scodes per product option. Can be used within the Order History System to work with your internal stock system Delimiter Examples
Javascript FileThe main script is located in a separate file called mm_pos.js. Usually this file is located in the same folder as the form(s) that uses it. Ensure the following code is located between the <head> </head> tags at the top of the page or alternatively just above the form code. <script src="mm_pos.js" type="text/javascript"> If the mm_pos.js file is in another folder e.g. a sub folder called 'scripts' then this code needs to be adjusted slightly <script src="scripts/mm_pos.js" type="text/javascript"> CSS Styles<style type="text/css"> Other CSS StylesYou can completely change the appearance of your forms by using CSS (Cascading Style Sheets). Here is a link to an example tutorial Technical Information
DebuggingThe easiest way to find out why the script isn't working for you is by using Firefox's Error Console. Download Firefox for free and then open the page up. Go to 'Tools > Error Console' and view the error and line number there to try and figure out what is wrong. Tips
|