Jump to content

Quantity combination layout


Recommended Posts

I need to edit my radio buttons to show the related price.

Here's my situationpost-602420-0-89761600-1378395360_thumb.jpg

 

 

This is the array I want to iterate in

$combinations	Smarty_Variable Object (3)
->value = Array (3)
  47 => Array (13)
    attributes_values => Array (1)
      4 => "1"
    attributes => Array (1)
      0 => 21
    price => 0
    specific_price => Array (0)
    ecotax => 0
    weight => 0
    quantity => 20
    reference => ""
    unit_impact => "0.00"
    minimal_quantity => "1"
    available_date => ""
    id_image => 15
    list => "'21'"
  48 => Array (13)
    attributes_values => Array (1)
      4 => "3"
    attributes => Array (1)
      0 => 22
    price => 16.528926
    specific_price => Array (0)
    ecotax => 0
    weight => 0
    quantity => 20
    reference => ""
    unit_impact => "120.00"
    minimal_quantity => "1"
    available_date => ""
    id_image => 15
    list => "'22'"
  49 => Array (13)
    attributes_values => Array (1)
      4 => "6"
    attributes => Array (1)
      0 => 23
    price => 28.92562
    specific_price => Array (0)
    ecotax => 0
    weight => 0
    quantity => 20
    reference => ""
    unit_impact => "0.00"
    minimal_quantity => "1"
    available_date => ""
    id_image => 15
    list => "'23'"
->nocache = false
->scope = "Smarty root"

The value I'm looking to use is unit_impact => "120.00"

 

How can I get the corresponding price using smarty ?

 

 

Thanks

Edited by bene82 (see edit history)
Link to comment
Share on other sites

  • 1 year later...

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...