• Resolved stevygee1987

    (@stevygee1987)


    I can’t add classes to cart items in the Cart Table widget, nor can other plugins.

    I believe I’ve found the error in shopengine/widgets/cart-table/screens/cart.php , line 40. The class attribute is being closed before the woocommerce_cart_item_class filter is echo’d, resulting in invalid markup. Please fix ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Ahmed Amir Hossain

    (@ahmedamir)

    Hi stevygee1987,

    Thank you for contacting us and bringing this issue to our attention! We’re happy to assist you in resolving it. To better understand the problem and provide an accurate solution, could you please share the steps to reproduce the error? A video demonstration would be greatly appreciated, as it will help us replicate the issue on our end and pinpoint the cause.

    We look forward to your response!

    Regards,
    Amir

    Plugin Support Reedwanul Haque

    (@reedwanul)

    Dear @stevygee1987 .

    I hope this message finds you well. Since we haven’t received any response from you, we assume that the issue has been resolved. Therefore, I’m marking this thread as resolved.

    If you need any further assistance on this matter, feel free to create a new thread. We will be happy to assist you.

    Best Regards,
    Reju

    Thread Starter stevygee1987

    (@stevygee1987)

    Hi @reedwanul @ahmedamir

    no I was not able to resolve this, since it’s an error in your code. Please forward this fix to one of your developers, it’s just a typo that causes this problem: https://www.diffchecker.com/YwJRLwAP/

    Thanks!

    Thread Starter stevygee1987

    (@stevygee1987)

    This is how I’m using the standard WooCommerce filter to add my class to cart line items:

    function example_add_item_class( $classes ) {
    $classes .= ' my-class';
    return $classes;
    }
    add_filter( 'woocommerce_cart_item_class', 'example_add_item_class' );

    The expected result:

    <div class="shopengine-table__body-item cart_item my-class">

    Instead it results in the following (invalid) markup:

    <div class="shopengine-table__body-item" cart_item my-class">

    Plugin Support Ahmed Amir Hossain

    (@ahmedamir)

    Hi stevygee1987,

    I hope this message finds you well. Thank you for bringing this error to our attention; we truly appreciate the solution you’ve provided. It has been forwarded to the development team for review. Once again, thank you! Please don’t hesitate to contact us if you have any further questions or concerns.

    Regards,
    amir

    Plugin Support Ahmed Amir Hossain

    (@ahmedamir)

    Hi?stevygee1987,

    Hope you are doing fine. We will include this solution on the next update of the plugin. Thank you once again. Please feel free to reach out if you have any questions or concerns.

    Regards,
    Amir

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.