Support » Plugin: WooCommerce » Cart template for mobile devices?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    While I’m not sure what changes in the code you made exactly, it’s important to note that the *same* WooCommerce template is used for *both* devices: Desktop and Mobile. The main difference, however, would be in the CSS for each of those. Have you checked that your field is set to being visible in the CSS (possibly using media queries) in your theme/child theme?

    Thread Starter Manjunathpmf

    (@manjunathpmf)

    I’m not sure what changes in the code you made exactly

    I have changed line 32 of https://github.com/woocommerce/woocommerce/blob/master/templates/cart/cart.php

    From

    <th class="product-quantity"><?php esc_html_e( 'Quantity', 'woocommerce' ); ?></th>

    to

    <th class="product-quantity"><?php esc_html_e( 'Quantity', 'woocommerce' ); ?><a class="question-mark" href="#elementor-popup"><b><i class="fa fa-question-circle" aria-hidden="true"></i></b></a></th>

    it’s important to note that the *same* WooCommerce template is used for *both* devices

    Yes, you are correct. But I think different parts of the code are applicable for Desktop and Mobile devices.

    For example,

    line 32 of https://github.com/woocommerce/woocommerce/blob/master/templates/cart/cart.php is for screen size > 768 px

    line 103 is for screen size < 768 px.

    I found what I needed.

    Thank you for the support.

    Plugin Support robertght

    (@robertghetau)

    Hey,

    Thanks for the update!

    Glad to hear you got it working the way you needed.

    Feel free to open a new request if you have further questions.

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