Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
integration:modx:hmac_price_validation [2017/07/07 15:44] adamintegration:modx:hmac_price_validation [2017/07/13 02:21] (current) – [Code] adam
Line 1: Line 1:
 ---- dataentry integration ---- ---- dataentry integration ----
-type          : integration     # do not change this line +type                           : integration # do not change this line 
-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   :     # Last FoxyCart version that supports this (leave empty if unknown) +supports-foxycart-version-to   :  # Last FoxyCart version that supports this (leave empty if unknown) 
-systems       : MODx Revolution, MODx Revo, MODx Evolution                # the system(s) that the integration is for, separated with commas if more than one +systems                        : MODx Revolution, MODx Evolution # the system(s) that the integration is for, separated with commas if more than one 
-name          : HMAC Price Validation                # the name of the integration +name                           : HMAC Price Validation # the name of the integration 
-description   : A plugin to automatically verify all links and forms output using MODX.                 +description                    : A plugin to automatically verify all links and forms output using MODX Revo and Evo #  
-tags          : hmac                # tags, separated by commas. don't include the "system" here. +tags                           : hmac # tags, separated by commas. don't include the "system" here. 
-date_dt       : 2011-06-28                # the date in YYYY-MM-DD format +date_dt                        : 2011-06-28 # the date in YYYY-MM-DD format 
-version                       # if you have a version for your code, enter it here +version                         # if you have a version for your code, enter it here 
-developer_url :                 # if you'd like a link back to your site, stick it here+developer_url                   # if you'd like a link back to your site, stick it here
 ---- ----
 +
  
 <WRAP important round> <WRAP important round>
Line 27: Line 28:
 This plugin is easy to install, and should "just work", so it is recommended for all MODX Revo installs. This plugin is easy to install, and should "just work", so it is recommended for all MODX Revo installs.
  
 +Thanks to [[https://forum.foxycart.com/discussion/comment/54748/#Comment_54748|pixelchutes on our forums]] for this solution.
 ===== Installation ===== ===== Installation =====
   - Create a directory in your ''assets/plugins'' directory called ''foxycart_validation'' (creating the ''plugins/'' folder if it doesn't already exist).   - Create a directory in your ''assets/plugins'' directory called ''foxycart_validation'' (creating the ''plugins/'' folder if it doesn't already exist).
Line 50: Line 52:
  
 ===== Code ===== ===== Code =====
-<code php>+<code php><?php
 /** /**
  * FoxyCart Validation Plugin for MODx 2.x (Revolution)  * FoxyCart Validation Plugin for MODx 2.x (Revolution)
Line 58: Line 60:
 switch ($e->name) { switch ($e->name) {
   case 'OnWebPagePrerender':   case 'OnWebPagePrerender':
-    include 'code/foxycart.cart_validation.php';+    include $modx->config["base_path"].'assets/plugins/foxycart_validation/foxycart.cart_validation.php';
     $modx->resource->_output = FoxyCart_Helper::fc_hash_html($modx->resource->_output);     $modx->resource->_output = FoxyCart_Helper::fc_hash_html($modx->resource->_output);
   break;   break;

Site Tools