Plugin Directory

Changeset 1865016


Ignore:
Timestamp:
04/26/2018 07:33:29 PM (8 years ago)
Author:
mnording10
Message:

Version update 1.4.0
GA Support on add to cart

Location:
grouped-variations-table/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • grouped-variations-table/trunk/grouped-variations-table-settings.php

    r1858033 r1865016  
    7171                    </td>
    7272                </tr>
    73                 <tr>
    74                     <th scope="row"><label for="groupedvartable_option_buttonsenabled">Link Style</label></th>
    75                     <td>
    76                         <select id="groupedvartable_option_buttonsenabled" name="groupedvartable_option_buttonsenabled">
    77                             <option <?php if(get_option('groupedvartable_option_buttonsenabled') == "link"){ echo "selected";}?> value="link"><?php _e("Link","grouped-variations-table")?></option>
    78                             <option <?php if(get_option('groupedvartable_option_buttonsenabled') == "button"){ echo "selected";}?> value="button"><?php _e("Button","grouped-variations-table")?></option>
    79                         </select>
    80                     </td>
    81                 </tr>
     73
    8274            </table>
    8375            <?php  submit_button(); ?>
  • grouped-variations-table/trunk/grouped-variations-table.php

    r1858033 r1865016  
    44Plugin URI:   https://developer.wordpress.org/plugins/the-basics/
    55Description:  Allowing you to group variations in sleak tables on the product page
    6 Version:      1.3.0
     6Version:      1.4.0
    77Author:       mnording
    88Author URI:   https://mnording.com/
     
    146146    function CreateOutput($tablearray,$buttons = false)
    147147    {
     148
    148149
    149150        global $product;
     
    181182                echo "</td>";
    182183                echo "<td>";
    183                 echo "<a ";
    184                 if($buttons) {echo "class='button' "; }
     184                echo "<a class='single_add_to_cart_button button alt' ";
    185185                echo "href='?add-to-cart=".$product->get_id()."&variation_id=".$data["data"]["variation_id"]."&".http_build_query($data["data"]["attributes"])."'>".__("Add to cart","grouped-variations-table")."</a>";
     186
    186187                echo "</td>";
    187188                echo "</tr>";
     
    194195
    195196        }
     197        do_action( 'woocommerce_after_add_to_cart_button' );
    196198        echo "</div>";
    197199    }
  • grouped-variations-table/trunk/readme.txt

    r1858033 r1865016  
    77Stable tag: trunk
    88License: MIT
    9 Version: 1.2.0
     9Version: 1.4.0
    1010License URI: https://opensource.org/licenses/MIT
    1111
     
    2222
    2323== Changelog ==
     241.4.0 - removing link style switcher and supporting Google Analytics for Woocommerce Integration
    24251.3.0 - Adding link style switcher
    25261.2.0 - Changing text domain to support language packs
Note: See TracChangeset for help on using the changeset viewer.