Jump to content

billingcycle as radiobutton?


Anders

Recommended Posts

hello,

thx steven for your time :)

yes is the shopping cart billingcycle i want to make radio buttons for in the SIX theme. i am not a coder just copy and paste any instructions for idiots?

i cant find configureproduct.tpl in six theme?

Warm regards B

Edited by andersbirkenstam
Link to comment
Share on other sites

hi guys,

successfully change the code to radio buttons :) i used this code from modern cart them 

 {if $pricing.monthly}
        <tr>
            <td class="radiofield">
                <input type="radio" name="billingcycle" id="cycle1" value="monthly"{if $billingcycle eq "monthly"} checked{/if} onclick="{if $configurableoptions}updateConfigurableOptions({$i}, this.value){else}recalctotals(){/if}" />
            </td>
            <td class="fieldarea">
                <label for="cycle1" class="radio-inline">{$pricing.monthly}</label>
            </td>
        </tr>
    {/if}
    {if $pricing.quarterly}
        <tr>
            <td class="radiofield">
                <input type="radio" name="billingcycle" id="cycle2" value="quarterly"{if $billingcycle eq "quarterly"} checked{/if} onclick="{if $configurableoptions}updateConfigurableOptions({$i}, this.value){else}recalctotals(){/if}" />
            </td>
            <td class="fieldarea">
                <label for="cycle2" class="radio-inline">{$pricing.quarterly}</label>
            </td>
        </tr>
    {/if}
    {if $pricing.semiannually}
        <tr>
            <td class="radiofield">
                <input type="radio" name="billingcycle" id="cycle3" value="semiannually"{if $billingcycle eq "semiannually"} checked{/if} onclick="{if $configurableoptions}updateConfigurableOptions({$i}, this.value){else}recalctotals(){/if}" />
            </td>
            <td class="fieldarea">
                <label for="cycle3" class="radio-inline">{$pricing.semiannually}</label>
            </td>
        </tr>
    {/if}
    {if $pricing.annually}
        <tr>
            <td class="radiofield">
                <input type="radio" name="billingcycle" id="cycle4" value="annually"{if $billingcycle eq "annually"} checked{/if} onclick="{if $configurableoptions}updateConfigurableOptions({$i}, this.value){else}recalctotals(){/if}" />
            </td>
            <td class="fieldarea">
                <label for="cycle4" class="radio-inline">{$pricing.annually}</label>
            </td>
        </tr>
    {/if}
    {if $pricing.biennially}
        <tr>
            <td class="radiofield">
                <input type="radio" name="billingcycle" id="cycle5" value="biennially"{if $billingcycle eq "biennially"} checked{/if} onclick="{if $configurableoptions}updateConfigurableOptions({$i}, this.value){else}recalctotals(){/if}" />
            </td>
            <td class="fieldarea">
                <label for="cycle5" class="radio-inline">{$pricing.biennially}</label>
            </td>
        </tr>
    {/if}
    {if $pricing.triennially}
        <tr>
            <td class="radiofield">
                <input type="radio" name="billingcycle" id="cycle6" value="triennially"{if $billingcycle eq "triennially"} checked{/if} onclick="{if $configurableoptions}updateConfigurableOptions({$i}, this.value){else}recalctotals(){/if}" />
            </td>
            <td class="fieldarea">
                <label for="cycle6" class="radio-inline">{$pricing.triennially}</label>
            </td>
        </tr>
    {/if}

 

and just replaced it with the code in standard_cart, please see attached image but the price dont change when clicking a radio button? the price though change when i continue to  next page.

does any one have any idea how to make the price change when clicking on radio button?

warm regards Birken

 

 

2019-03-13_10-56-21.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated