Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| integration:modx:hmac_price_validation [2017/04/26 07:02] – external edit 127.0.0.1 | integration:modx:hmac_price_validation [2017/07/13 02:21] (current) – [Code] adam | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ---- dataentry integration ---- | ---- dataentry integration ---- | ||
| - | type : integration | + | type |
| - | supports-foxycart-version-from : 0.7.0 # Minimum required FoxyCart version for this to work | + | supports-foxycart-version-from : 0.7.0 # Minimum required FoxyCart version for this to work |
| - | supports-foxycart-version-to | + | supports-foxycart-version-to |
| - | systems | + | systems |
| - | name : HMAC Price Validation | + | name |
| - | description | + | description |
| - | tags : hmac # tags, separated by commas. don't include the " | + | tags |
| - | date_dt | + | date_dt |
| - | version | + | version |
| - | developer_url : | + | developer_url |
| ---- | ---- | ||
| - | |||
| - | ====== Automatic HMAC Price Validation for MODX Evolution + FoxyCart ====== | ||
| <WRAP important round> | <WRAP important round> | ||
| Line 19: | Line 17: | ||
| The code on this page is submitted by members of the FoxyCart community, and may not verified by FoxyCart.com LLC in any way, shape, or form. Please double check the code before installing. If you need help with it please [[http:// | The code on this page is submitted by members of the FoxyCart community, and may not verified by FoxyCart.com LLC in any way, shape, or form. Please double check the code before installing. If you need help with it please [[http:// | ||
| </ | </ | ||
| + | |||
| + | Depending on which version of MODx you're working with - please review the different sections below, with approaches for MODx Revo and Evolution. | ||
| + | |||
| + | |||
| + | ====== Automatic HMAC Price Validation for MODX Revo + FoxyCart ====== | ||
| + | |||
| + | ===== Description ===== | ||
| + | Automatically validates all links and forms on pages generated by [[http:// | ||
| + | |||
| + | This plugin is easy to install, and should "just work", so it is recommended for all MODX Revo installs. | ||
| + | |||
| + | Thanks to [[https:// | ||
| + | ===== Installation ===== | ||
| + | - Create a directory in your '' | ||
| + | - Download the source '' | ||
| + | - Edit that file and enter the appropriate '' | ||
| + | - Within MODx, under " | ||
| + | - Paste in the code below into the " | ||
| + | - In the " | ||
| + | - Save the plugin. | ||
| + | - Go to your [[https:// | ||
| + | - Test. | ||
| + | - Test some more. | ||
| + | |||
| + | {{ : | ||
| + | |||
| + | After creating the plugin - any add to cart link or forms on your website should be automatically signed for you. | ||
| + | |||
| + | ===== Requirements ===== | ||
| + | * All add to carts need to have a '' | ||
| + | * Cannot use double-pipes in an input' | ||
| + | * Empty textareas are assumed to be " | ||
| + | |||
| + | |||
| + | ===== Code ===== | ||
| + | <code php><? | ||
| + | /** | ||
| + | * FoxyCart Validation Plugin for MODx 2.x (Revolution) | ||
| + | */ | ||
| + | |||
| + | $e = & | ||
| + | switch ($e-> | ||
| + | case ' | ||
| + | include $modx-> | ||
| + | $modx-> | ||
| + | break; | ||
| + | } | ||
| + | |||
| + | return; | ||
| + | </ | ||
| + | |||
| + | ====== Automatic HMAC Price Validation for MODX Evolution + FoxyCart ====== | ||
| ===== Description ===== | ===== Description ===== | ||
| Line 79: | Line 129: | ||
| ====== Manual HMAC Price Validation for MODX Evolution + FoxyCart ====== | ====== Manual HMAC Price Validation for MODX Evolution + FoxyCart ====== | ||
| - | |||
| - | <WRAP important round> | ||
| - | //**Please note:**// | ||
| - | The code on this page is submitted by members of the FoxyCart community, and may not verified by FoxyCart.com LLC in any way, shape, or form. Please double check the code before installing. If you need help with it please [[http:// | ||
| - | </ | ||
| ===== Description ===== | ===== Description ===== | ||