Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Search found 5 matches
Smarty Forum Index
Author Message
  Topic: [Solved] Display in same div products with same value
artik

Replies: 2
Views: 492

PostForum: General   Posted: Tue May 07, 2019 1:50 pm   Subject: [Solved] Display in same div products with same value
It works perfectly, I had to remove the unexpected "s" from your second line ($OIDs), and it does the job :

{foreach $orders as $n}
{$OID[{$n.order_id}] ...
  Topic: [Solved] Display in same div products with same value
artik

Replies: 2
Views: 492

PostForum: General   Posted: Mon May 06, 2019 8:30 pm   Subject: [Solved] Display in same div products with same value
I have a question regarding an array and how to display my infos.
I have 4 products, and 2 of them with the same "order_id".

My $orders:

Array (8)
0 => Array (11) ...
  Topic: [Solved] Getting sum of values in multi dimensional array
artik

Replies: 4
Views: 521

PostForum: General   Posted: Mon May 06, 2019 1:05 pm   Subject: [Solved] Getting sum of values in multi dimensional array
Works perfectly, thanks bsmither!
  Topic: [Solved] Getting sum of values in multi dimensional array
artik

Replies: 4
Views: 521

PostForum: General   Posted: Sun May 05, 2019 11:46 pm   Subject: [Solved] Getting sum of values in multi dimensional array
thank bsmither, I tried, and here is the error:

Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "file:/var/www/html/theme/header.tpl" on line 19 "{$cart_item_c ...
  Topic: [Solved] Getting sum of values in multi dimensional array
artik

Replies: 4
Views: 521

PostForum: General   Posted: Sun May 05, 2019 5:41 pm   Subject: [Solved] Getting sum of values in multi dimensional array
Hi, I'm quite stuck since this afternnon. I tried many ways to get a result (using {count} and many other things I saw on documenttaion and internet) but none of them worked. Here is my infos :

$se ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP