Plugin Directory

Changeset 2834226


Ignore:
Timestamp:
12/15/2022 07:54:56 AM (3 years ago)
Author:
wecode123
Message:

minor bug fixes

Location:
wcf-replace-remove-cart-button-for-woocommerce
Files:
2 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • wcf-replace-remove-cart-button-for-woocommerce/tags/1.1/wcf_replace_remove_cart_button.php

    r2830927 r2834226  
    5858                global $product;
    5959               
    60                 // $product_title = $product->get_name();
     60                $product_title = $product->get_name();
    6161               
     62                $id = $product->get_id();
     63                echo'<button type="submit" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#myModal_'.$id.'" id="enqsbtn_'.$id.'">' .$button_text. '</button>';
    6264       
    6365            ?>
    6466           
    65             <button type="submit" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#myModal"><?php echo esc_html($button_text); ?></button>
     67           
    6668           
    6769            <?php
  • wcf-replace-remove-cart-button-for-woocommerce/trunk/wcf_replace_remove_cart_button.php

    r2830927 r2834226  
    5858                global $product;
    5959               
    60                 // $product_title = $product->get_name();
     60                $product_title = $product->get_name();
    6161               
     62                $id = $product->get_id();
     63                echo'<button type="submit" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#myModal_'.$id.'" id="enqsbtn_'.$id.'">' .$button_text. '</button>';
    6264       
    6365            ?>
    6466           
    65             <button type="submit" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#myModal"><?php echo esc_html($button_text); ?></button>
     67           
    6668           
    6769            <?php
Note: See TracChangeset for help on using the changeset viewer.