Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2014
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. product.tpl
  2.  
  3. {if !empty($product->ean13)}<p>{l s='EAN:'} {$product->ean13}</p>{/if}
  4.  
  5. {addJsDef productEan13=$product->ean13|escape:'html':'UTF-8'}
  6.  
  7. product.js
  8.  
  9. function addCombination(idCombination, arrayOfIdAttributes, quantity, price, ecotax, id_image, reference, unit_price, minimal_quantity, available_date, combination_specific_price, ean13)
  10.  
  11. combination['ean13'] = ean13;
  12.  
  13. if (selectedCombination['ean13'] || productEan13)
  14.     {
  15.         if (selectedCombination['ean13'])
  16.             $('#product_ean13 span').text(selectedCombination['ean13']);
  17.         else if (productEan13)
  18.             $('#product_ean13 span').text(productEan13);
  19.             $('#product_ean13:hidden').show('slow');
  20.     }
  21.     else
  22.         $('#product_ean13:visible').hide('slow');
  23.  
  24. combinationsJS[k]['ean13'] = combinations[i]['ean13'];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement