Merge branch 'ticket1309' into 'develop'
inject pictogrammes into produits page See merge request service-web-lab/regalette!12
This commit is contained in:
commit
d0745c8116
2 changed files with 3 additions and 2 deletions
|
|
@ -273,7 +273,8 @@ $(document).ready(function() {
|
|||
$('.p-advices-' + taxId).html(itemProd['advices']);
|
||||
$('.p-ing-' + taxId).html(itemProd['ing']);
|
||||
$('.img-prod-' + taxId).attr('src', itemProd['image']);
|
||||
$('.picto-prod-' + taxId).each(function(index) {
|
||||
$('.picto-prod-' + taxId).each(function (index) {
|
||||
$(this).attr('src', '');
|
||||
$(this).attr('src', itemProd['pictos'][index]);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ foreach ($terms as $key => $myTerm) {
|
|||
$tabProduct['advices'] = get_field('prod-advices', $myPost->ID);
|
||||
$tabProduct['ing'] = get_field('prod-ing', $myPost->ID);
|
||||
$tabProduct['order'] = $tabGammes[$key]['order'] . get_field('prod-order', $myPost->ID);
|
||||
$prodAdvices = get_field('pictogrammes');
|
||||
$prodAdvices = get_field('pictogrammes', $myPost->ID);
|
||||
$tabProduct['pictos'] = [];
|
||||
if (!empty($prodAdvices)) {
|
||||
foreach ($prodAdvices as $picto) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue