• Resolved visuaalee

    (@visuaalee)


    Hey, the plugin adds a gift to the shopping cart, but the column order is different from other products. Any way to change this?

    Products added manually:
    Name – price – quantity – subtotal – remove

    Free gift (on orders over 100€):
    Remove – thumbnail – name – price – quantity – subtotal


    Thanks!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ithemelandco

    (@ithemelandco)

    Hi
    sorry for delay

    you can change it in

    \plugins\ithemeland-free-gifts-for-woo\frontend\classes\front-order.php

    find method “display_gifts_added_in_cart”

    public function display_gifts_added_in_cart()

    echo
      '<tr class="woocommerce-cart-form__cart-item cart_item">
        <td class="product-remove">
          <a class="remove gift-close-link" href="' . esc_url($cart_page_id) . 'it_gift_remove=' .$index['id'] . '">×</a>
        </td>
        <td class="product-thumbnail">' . sprintf("%s", $img_html) . '
        </td>
        <td class="product-name" data-title="' . esc_attr($title_gift) . '"><a href="' .get_permalink($index['id_product']) . '">' . sprintf("%s", $title_gift) . '</a>
        </td>
        <td class="product-price" data-title="' . __("Price", 'ithemeland-free-gifts-for-woocommerce-lite') . '">' . $price . '
        </td>
        <td class="product-quantity" data-title="' . __("Quantity", 'ithemeland-free-gifts-for-woocommerce-lite') . '">' . sprintf("%s", $gift_count) . '
        </td>
        <td class="product-subtotal" data-title="' . __("Total", 'ithemeland-free-gifts-for-woocommerce-lite') . '">' . $price_total . '
         </td>
     </tr>';

    if you have any issue , let us know , you can click chat support in https://ithemelandco.com

    Best Regards

    Thread Starter visuaalee

    (@visuaalee)

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Free Gifts for WooCommerce and column order’ is closed to new replies.