S
S
smrnvlr2018-12-29 16:14:40
1C-Bitrix
smrnvlr, 2018-12-29 16:14:40

Where do extra quotes come from in #PODUCT_URL# in Bitrix?

The problem is this: #PRODUCT_URL# is passed in the mail template when ordering in 1 click, everything comes to the mail, but an extra quote (") is added to the URL at the end,
that is, the url looks like this:

https://site.ru/catalog/product.html "

The mail template itself looks like this:
A new order was received from the site #SITE# in 1 click.
Item: #PRODUCT#
Name: #NAME#
Phone: #PHONE#
Link: #PRODUCT_URL#
Comment: #COMMENT#

Tell me, what could be the problem, where does this quote come from?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Gritsuk, 2018-12-29
@winer

Somehow I see this is not a standard mail event, but something self-written. Most likely the quote is where the event is generated. Look for the place where CEvent::Send is called ( or Bitrix\Main\Mail\Event::send ).

M
Marat Garifullin, 2018-12-29
@magarif

Send template code

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question