Jump to content
  • 0

Dodanie zmiennej do szablonu maila


bruiser

Question

Zrobiłem liczbę porządkową w koszyku 1.2.3. itd dodając {assign var='lp' value=$lp+1} w {foreach $products as $product} (shopping-cart.tpl) Wywołanie {$lp} w shopping-cart-product-line.tpl

Z pdf jest podobnie.

Chciałbym zrobić też to samo w szablonie maila. Gdzie i jak dodać aby w szablonie wywołać numerowanie

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

w starej preście lista produktów w szablonach to efekt generowania kodu w pliku php, to tam trzeba dodać tę iterację

w nowej to kwestia pliku order_conf_product_list.php lub .txt

wartość iteracji możesz dodać z foreach bez kombinowania z assign

do pętli dodajesz parametr name (np name=foo) następnie korzystasz ze zmiennej {$smarty.foreach.foo.iteration}

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...