• Resolved fjura

    (@fjura)


    Hello,

    is it possible to add one space after the product title and before the number of products? When you use this plugin while having a product with max 1 amount, it adds the number 1 right after the product title, but without a space, please see screenshot:

    View post on imgur.com

    The name of the product is E-magazín BREZZA – Jeseň 2019 PDF

    thank you

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter fjura

    (@fjura)

    Hi Bhavik,

    Thanks for the info, I never tried it but if you would tell me what to udpdate where, I can try it, I have access to the source files ??

    thanks!

    Plugin Author bhavik.kiri

    (@bhavikkiri)

    Hi @fjura ,

    I apologize for the delay in the response.

    You need to change the file name “change-quantity-on-checkout-woocommerce.php” which is located under my plugin folder.

    In that file, you need to look for the below line of code.

    $return_value .= sprintf( '1 <input type="hidden" name="cart[%s][qty]" value="1" />', $cart_key );

    You need to give space before the “1”.

    $return_value .= sprintf( ' 1 <input type="hidden" name="cart[%s][qty]" value="1" />', $cart_key );

    Once changes are done you need to save the file changes.

    You can check the Guide for editing the plugin file here.

    Please let me know the result.

    Regards,
    Bhavik

    Thread Starter fjura

    (@fjura)

    Worked perfectly, thank you!

    Plugin Author bhavik.kiri

    (@bhavikkiri)

    Hi @fjura

    I’m glad to know that solution is working fine.

    If you like my plugin and support would consider to write a review for it?

    Thanks in advance.

    Regards,
    Bhavik

    Thread Starter fjura

    (@fjura)

    for sure, done!

    Thanks @bhavikkiri and @fjura !

    I needed this code too, but to delete the 1 altogether.

    Regards,
    Grant

    Plugin Author bhavik.kiri

    (@bhavikkiri)

    Hi @ragrant0

    I’m glad to know that the solution helped you out.

    Regards,
    Bhavik

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Space after the product title when max product amout is 1’ is closed to new replies.