Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 8 matches
Smarty Forum Index
Author Message
  Topic: Sizing Method (Foreach loop)
kraigballa

Replies: 0
Views: 8084

PostForum: Help Wanted (commercial)   Posted: Fri Jun 11, 2010 4:36 am   Subject: Sizing Method (Foreach loop)
Alright I have a PHPMass shopping cart, and I am trying to add a sizing method for certain items that need different sizes like: large, small, medium, etc...As of right now I have it working for the m ...
  Topic: Question with foreach
kraigballa

Replies: 8
Views: 10697

PostForum: General   Posted: Fri Jun 11, 2010 2:10 am   Subject: Question with foreach
Alright I am not seeing $Products.sizing anywhere.

Also I tried to use what you put and both products are still getting the sizing methods for the last one to go through the loop.
  Topic: Question with foreach
kraigballa

Replies: 8
Views: 10697

PostForum: General   Posted: Thu Jun 10, 2010 10:47 pm   Subject: Question with foreach
I put two products with different sizing methods in the cart, and this is the output.

{$Product|@print_r}:
Array (
[productid] => 30
[categoryid] => 16
[productcod ...
  Topic: Question with foreach
kraigballa

Replies: 8
Views: 10697

PostForum: General   Posted: Thu Jun 10, 2010 9:56 pm   Subject: Question with foreach
This is the php page that assigns all of the variables:

$SizingMethods = $Sizing->getAllSizing();
$smarty->assign('SizingMethods',$SizingMethods);


$ProductInfo = $Produc ...
  Topic: Question with foreach
kraigballa

Replies: 8
Views: 10697

PostForum: General   Posted: Sun Jun 06, 2010 4:40 am   Subject: Question with foreach
when you assign the products to an array, assign a sizing array to each product. Then you can independently loop the correct sizes for each product within the product loop.

Isn't that what this is. ...
  Topic: Question with foreach
kraigballa

Replies: 8
Views: 10697

PostForum: General   Posted: Fri Jun 04, 2010 3:35 pm   Subject: Question with foreach
I have a products table that has a field called sizing. The sizing field contains an ID from another table called products_sizing. The main reason for the sizing field in the products table is to deci ...
  Topic: I use Smarty in all my projects and I speak it in events
kraigballa

Replies: 3
Views: 56551

PostForum: Testimonials   Posted: Fri Jun 04, 2010 3:35 pm   Subject: I use Smarty in all my projects and I speak it in events
I am a first time user of Smarty. I am liking it, but I am still trying to get it down.
  Topic: Path problems
kraigballa

Replies: 1
Views: 44267

PostForum: Installation and Setup   Posted: Fri Jun 04, 2010 3:32 pm   Subject: Path problems
for some reason in my version I have to give direct links when inside the store or else the link will not be recognized outside the domain of the Smarty template.
 
Page 1 of 1
All times are GMT
Jump to:  


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