Viewing 6 replies - 1 through 6 (of 6 total)
  • Yes, I would second this request.

    The pricing table is great…to work well, but I would like to have an option for single sale as well…

    Thank you for your time!

    Yes i great if Time Duration options can be blank

    Maybe its easier if you add additional option instead of having it blank, e.g. one time fee

    Thread Starter Mr Tibbs

    (@mtibesar)

    Little bump here please. We can’t use your plugin unless the Time duration options are expanded.

    Thank you very much!

    Yea, same here. I like the look of the plugin but it makes me look stupid that I charge for photography or web design by the month. I need a way to delete that or blank option.
    Joshua Self Photography Pricing Page
    Thanks!

    If you’re comfortable editing the plugin it’s pretty easy, just have to change in a few files. Note though that if you update the plugin all of this will go away.
    In my case I want nothing at all, just the price. Here’s what I did:

    In the file pricingtable.php look for:

    <span>/<?php if($row->time_duration=='2'){echo week;}
                                else if($row->time_duration=='3'){ echo yr;}
                                else { echo "mo";}?></span></span></li>

    and replace with this:

    <span><?php if($row->time_duration=='2'){echo "/week";}
                                else if($row->time_duration=='3'){ echo "/yr";}
                                else if($row->time_duration=='4'){ ;}
    
                                else { echo "/mo";}?></span></span></li>

    Then find this:

    <span>/<?php if($row->time_duration=='2'){echo week;}
                                else if($row->time_duration=='3'){ echo yr;}
                                else { echo "mo";}?></span></span></li>

    and change to this:

    <span><?php if($row->time_duration=='2'){echo "/week";}
                                else if($row->time_duration=='4'){ ;}
    
                                else if($row->time_duration=='3'){ echo "/yr";}
                                else { echo "/mo";}?></span></span></li>

    OK that’s it for that file.
    Then go into the inc folder (all other files will be in there as well)
    and open view_pricing_detail.php

    Find this:
    <td class="easy_pricing_list_title"><?php if($row->time_duration=="1"){ echo "Per Month";} else if($row->time_duration=="2"){ echo "Per Week";} else {echo "Per Year";}?></td>

    Change to this:

    <td class="easy_pricing_list_title"><?php if($row->time_duration=="1"){ echo "Per Month";} else if($row->time_duration=="2"){ echo "Per Week";} else if($row->time_duration=="3"){ echo "Per Year";}
    
                else {echo "One Time Fee";}?></td>

    In the file manage_pricing.php
    Find this:

    <tr><th><label>Time Duration</label></th><td>
                     <select name="time_duration">
                     <option value="1">Per Month</option>
                     <option value="2">Per Week</option>
                     <option value="3">Per Year</option>

    change to this:

    <tr><th><label>Time Duration</label></th><td>
                     <select name="time_duration">
                     <option value="1">Per Month</option>
                     <option value="2">Per Week</option>
                     <option value="3">Per Year</option>
                     <option value="4">One-Time Fee</option>

    In the file easy_pricing_edit.php
    Find this:

    <?php if(esc_attr($time_duration)=="1"){
    					echo '<option value="1">Per Month</option>';
    					echo '<option value="2">Per Week</option>';
    					echo '<option value="3">Per Year</option>';
    				 }
    				else if(esc_attr($time_duration)=="2"){
    					echo '<option value="2">Per Week</option>';
    					echo '<option value="3">Per Year</option>';
    					echo '<option value="1">Per Month</option>';
    
    				}
    				else if(esc_attr($time_duration)=="3"){
    					echo '<option value="3">Per Year</option>';
    					echo '<option value="2">Per Week</option>';
    					echo '<option value="1">Per Month</option>';
    				}
    				 ?>

    add replace with this:

    <?php if(esc_attr($time_duration)=="1"){
    					echo '<option value="1">Per Month</option>';
    					echo '<option value="2">Per Week</option>';
    					echo '<option value="3">Per Year</option>';
    					echo '<option value="4">One Time Fee</option>';
    
    				 }
    				else if(esc_attr($time_duration)=="2"){
    					echo '<option value="2">Per Week</option>';
    					echo '<option value="3">Per Year</option>';
    					echo '<option value="1">Per Month</option>';
    					echo '<option value="4">One Time Fee</option>';
    
    				}
    				else if(esc_attr($time_duration)=="3"){
    					echo '<option value="3">Per Year</option>';
    					echo '<option value="4">One Time Fee</option>';
    					echo '<option value="2">Per Week</option>';
    					echo '<option value="1">Per Month</option>';
    				}
    				else if(esc_attr($time_duration)=="4"){
    					echo '<option value="4">One Time Fee</option>';
    					echo '<option value="2">Per Week</option>';
    					echo '<option value="1">Per Month</option>';
    					echo '<option value="3">Per Year</option>';
    
    				}
    
    				 ?>

    It’s a lot but totally doable. Good luck!

    *note you may have to also adjust the css to get the circles to look better, at least in my case I needed to.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Time Duration options’ is closed to new replies.