• Resolved giuseppe65

    (@anguria65)


    Hi,
    in the Additional Products template, the Add Product button is visible until the last product is entered.
    By deleting one or more product lines, the Add product button is not displayed.
    How can this be avoided?

    Thanks!

    • This topic was modified 2 years ago by giuseppe65.
    • This topic was modified 2 years ago by giuseppe65.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @anguria65

    Thank you very much for using our plugin. We have updated the form template. You can generate the form again from the template, or follow the steps below to fix your current form:

    1. Select the Add Product button, and replace the piece of code:

    jQuery(this).hide(); with HIDEFIELD(50); in its onclick event.

    2. Edit the onclick events in the “Delete Product” buttons as follows:

    SHOWFIELD(50);IGNOREFIELD(this.closest('.additional-product'));

    Best regards.

    Thread Starter giuseppe65

    (@anguria65)

    Hello @codepeople,
    I’m sorry, I missed the plugin update.
    I’m trying to learn the potential of the plugin which is really cool.
    Thank you

    Best regards.

    Plugin Author codepeople

    (@codepeople)

    Hello @anguria65

    Basically, the modifications in the template are the same as described in the previous entry. If you’ve created the form, you need only to modify the buttons on-click events.

    Best regards.

    Thread Starter giuseppe65

    (@anguria65)

    Hello @codepeople,
    I have edited as you indicated and it works perfectly.
    Thank you very much.

    Best regards.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Button Add Product on template Additional Products’ is closed to new replies.