Okay
  Public Ticket #2611719
Cost Calculator
Closed

Comments

  • Melvin started the conversation

    Hi,

    I'm using the cost calculator in combination with contact form 7. I need to extract the total value.

    I know [hidden bt-cc-data] . But is there also a code for just the total value?

  •  1,701
    Support Agent replied

    Hi,

    The best option is to do all as instructed in the documentation related to CF7 integration and comment out the following line (should be around line 730) in cc.main.js:

    quote += encodeURI( '<tr background="">\r\n<td style="padding:.5em;">' + label + '</td>\r\n<td style="text-align:right;padding:.5em;">' + item_val + '</td>\r\n</tr>' ) + "\r\n";
    

    you need to change it to:

    // quote += encodeURI( '<tr background="">\r\n<td style="padding:.5em;">' + label + '</td>\r\n<td style="text-align:right;padding:.5em;">' + item_val + '</td>\r\n</tr>' ) + "\r\n";
    

    Let us know if that helped.

    Regards, BoldThemes team

    If you like our products please consider leaving us a rating. A huge thank you from BoldThemes in advance!

  • Melvin replied

    Unfortunately, no. But it might be that i'm not complete with my information. Im trying the following:

    My clients can choose a range off classes, depending on choices the resulting amount can vary. This will be their monthly payment.

    When the clients press next, i load a Contact Form with Mollie integration. For the payment amount, i need to automatically get the result from the cost calculator. (I want to use a shortcode to fill in a default value for the payment amount).

    I added two screens to show the process.


    Hope this is enough clarity :)

    Attached files:  Schermafbeelding 2020-11-26 om 16.20.56.png
      Schermafbeelding 2020-11-26 om 16.20.35.png

  •  1,701
    Support Agent replied

    Hi Melvin,

    Thank you for additional clarification. Please note that our plugin can be integrated only with PayPal and in that case you cannot use Contact form. In order to set PayPal, edit Cost calculator and fill in fields under the tab PayPal. 

    In order to use some other payment method plugin's code must be modified but that falls outside of scope of Envato's item support policy - https://themeforest.net/page/item_support_policy

    Thanks for understanding.

    Regards, BoldThemes team

    If you like our products please consider leaving us a rating. A huge thank you from BoldThemes in advance!