Created
July 31, 2012 22:00
-
-
Save witrin/3221036 to your computer and use it in GitHub Desktop.
TypoGento - Onepage Checkout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Setup render routes for the Magento onepage checkout | |
*/ | |
config.tx_typogento { | |
routes { | |
# Render route for the Ajax action URLs | |
100 { | |
# See http://wiki.typo3.org/TSref/if | |
filter { | |
# Filters all Ajax actions | |
value = /checkout/onepage/saveMethod/,/checkout/onepage/progress/,/checkout/onepage/saveBilling/,/checkout/onepage/getAdditional/,/checkout/onepage/saveShipping/,/checkout/onepage/saveShippingMethod/,/checkout/onepage/savePayment/,/checkout/onepage/saveOrder/ | |
isInList.dataWrap = /{GP:route}/{GP:controller}/{GP:action}/ | |
} | |
# See http://wiki.typo3.org/TSref/typolink | |
target { | |
# Targets a prepared page with Ajax support (see https://gist.github.com/3220729) | |
parameter = {$plugin.tx_typogento.ajax.pid} | |
# Adds all query parameter | |
addQueryString = 1 | |
} | |
# Sets the route section | |
section = render | |
# Sets the priority higher as default | |
priority = 1 | |
} | |
# Render route for the success action URL | |
110 { | |
# See http://wiki.typo3.org/TSref/if | |
filter { | |
# Filters the success action | |
equals = /checkout/onepage/success/ | |
value.dataWrap = /{GP:route}/{GP:controller}/{GP:action}/ | |
} | |
# See http://wiki.typo3.org/TSref/typolink | |
target { | |
# Targets a prepared page with a TypoGento content plugin | |
parameter = {$plugin.tx_typogento.content.pid} | |
# Adds all query parameter | |
addQueryString = 1 | |
} | |
# Sets the route section | |
section = render | |
# Sets the priority higher as default | |
priority = 1 | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment