Managed to sort this with the below code. Thought I'd post the solution in case anyone needed to do the same.
{foreach from=$group.attributes key=id_attribute item=group_attribute}
<option value="{$id_attribute|intval}"{if (isset($smarty.get.$groupName) && $smarty.get.$groupName|intval == $id_attribute) || $group.default == $id_attribute} selected="selected"{/if} title="{$group_attribute|escape:'html':'UTF-8'}">{$group_attribute|escape:'html':'UTF-8'}
{foreach from=$combinations key=comb_key item=combination}
{if isset($combination.attributes[0]) AND $combination.attributes[0] == $id_attribute|intval}
- {$combination.reference}
{/if}
{/foreach}
</option>
{/foreach}
Thanks Nemo1, Was hoping there might be a relation between the combination and its attribute that I could access. Will keep trying and post back if I have any success.
Hi,
Relatively new to Prestashop and would be grateful for any help.
I'm wanting to include the Combinations Reference data(see below)in the option dropdown on my product page.
Hope that makes sense!
Thanks in advance.