最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

plugins - Getting value from dymanic text variable into Contact Form 7

programmeradmin0浏览0评论

I have an inscription form and I'm using Contact Form 7, Conditional Fields plugin and Dynamic Text Extension. I want to show different prices according to the option selected and get the price for showing on the email confirmation (and save into database with Contact Form DB).

With the following code the price is displayed correctly on the web, but always appears with the same value in the confirmation email

Service type [select* serv_type "Regular" "Exceptional"]
[group g_regular clear_on_hide]
  Price [dynamictext amount readonly "65"]
  [dynamichidden price_value "65"]
[/group]
[group g_exceptional clear_on_hide]
  Price [dynamictext amount readonly "45"]
  [dynamichidden price_value "45"]
[/group]

The conditional code is

show [g_regular] if [serv_type] equals "Regular"
show [g_exceptional] if [serv_type] equals "Exceptional"

And the email template code is

Subject: Inscription registered ([serv_type])    
New [serv_type] inscription with [price_value]€ ([amount]).

The price and amount value is always 65 on the email confirmation and should be 45 if is selected Exceptional

发布评论

评论列表(0)

  1. 暂无评论