Faux Order (an IP gated Test Order module) isn't quite plug and play for some ReadyThemes. (In this case 'Luxe', but pretty sure the other ReadyThemes that use Auto Card Detection would use the same or similar code changes. To get Faux Order working on these sites, just:
On the OSEL page, in the Details template, swap out this code:
With this code:
Then, on the OPAY Screen, in the Details template, change:
to
On the OSEL page, in the Details template, swap out this code:
Code:
<mvt:foreach array="paymentmethods" iterator="method"> <mvt:if expr="miva_array_elements(g.unique_payment_modules) EQ 1"> <mvt:if expr="pos1 EQ 1"> <input type="hidden" name="PaymentMethod" value="&mvte:method:module;:&mvte:method:code;" /> </mvt:if> <mvt:else> <mvt:if expr="(l.settings:method:module EQ 'check') OR (l.settings:method:module EQ 'cod') OR (l.settings:method:module EQ 'customercredit')"> <label class="input--medium shipping-selection-form__label shipping-selection-form__payment-method" data-hook="shipping-selection-form__payment-method"> <input type="radio" name="PaymentMethod" value="&mvte:method:module;:&mvte:method:code;"> &mvt:method:name; </label> <mvt:elseif expr="l.settings:method:module NE 'check' AND l.settings:method:module NE 'cod' AND l.settings:method:module NE 'customercredit' AND NOT('pal' CIN l.settings:method:code)"> <label class="input--medium shipping-selection-form__label shipping-selection-form__payment-method" data-hook="shipping-selection-form__payment-method"> <input type="radio" name="PaymentMethod" value="&mvte:method:module;:&mvte:method:code;"> Credit Card </label> <mvt:foreachstop /> </mvt:if> </mvt:if> </mvt:foreach>
With this code:
Code:
<mvt:foreach array="paymentmethods" iterator="method"> <mvt:if expr="miva_array_elements(g.unique_payment_modules) EQ 1"> <mvt:if expr="pos1 EQ 1"> <input type="hidden" name="PaymentMethod" value="&mvte:method:module;:&mvte:method:code;" /> </mvt:if> <mvt:else> <mvt:if expr="(l.settings:method:module EQ 'pm_fauxorder') OR (l.settings:method:module EQ 'check') OR (l.settings:method:module EQ 'cod') OR (l.settings:method:module EQ 'customercredit')"> <label class="input--medium shipping-selection-form__label shipping-selection-form__payment-method" data-hook="shipping-selection-form__payment-method"> <input type="radio" name="PaymentMethod" value="&mvte:method:module;:&mvte:method:code;"> &mvt:method:name; </label> <mvt:elseif expr="l.settings:method:module NE 'pm_fauxorder' AND l.settings:method:module NE 'check' AND l.settings:method:module NE 'cod' AND l.settings:method:module NE 'customercredit' AND NOT('pal' CIN l.settings:method:code)"> <label class="input--medium shipping-selection-form__label shipping-selection-form__payment-method" data-hook="shipping-selection-form__payment-method"> <input type="radio" name="PaymentMethod" value="&mvte:method:module;:&mvte:method:code;"> Credit Card </label> <mvt:foreachstop /> </mvt:if> </mvt:if> </mvt:foreach>
Code:
<mvt:elseif expr="'brain' CIN g.PaymentMethod"> <input class="button button--large cta-secondary--invert font--bold font--uppercase" type="submit" value="Complete Order"> <mvt:else>
Code:
<mvt:elseif expr="'brain' CIN g.PaymentMethod OR 'fauxorder' CIN g.PaymentMethod"> <input class="button button--large cta-secondary--invert font--bold font--uppercase" type="submit" value="Complete Order"> <mvt:else>