2010-12-01 3 views
0

전자 메일 서식 파일을 작성 중입니다. 나는이 같은 URL을 구축하려는 :Magento : 변수를 사용하여 CMS 구문으로 저장소 URL 만들기

http://store.com/path/to/page?shipmentid=123 

이 코드는 올바른 URL 구축 :

{{store url='path/to/page' _query_shipmentid=123}} 

을하지만 123 부분은 동적이어야한다. 이 변수에서 추출해야합니다.

{{var shipment.id}} 

이 경우에도 가능합니까? 나는 이런 식으로 뭔가를 찾고 있어요 :

{{store url='path/to/page' _query_shipmentid=shipment.id}} 

답변

3

사용 $ 접두사는 젠토가 변수임을 알려. 이 코드는 작동해야합니다.

{{store url='path/to/page' _query_shipmentid=$shipment.getId()}} 
관련 문제