Announcement

Collapse
No announcement yet.

Using Phosphor Media Faux Order with Some ReadyThemes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Using Phosphor Media Faux Order with Some ReadyThemes

    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:

    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>
    Then, on the OPAY Screen, in the Details template, change:

    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>
    to

    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>

    Last edited by Bruce - PhosphorMedia; 01-16-18, 04:46 PM.
    Bruce Golub
    Phosphor Media - "Your Success is our Business"

    Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
    phosphormedia.com
Working...
X