Order form images

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14076
    Anonymous

      Hello.
      Is there a possibility to add a product thumbnail in order form? Maybe add something here:

      <li id="wppizza-cart-item-<?php echo $itemKey ?>"><?php
      /**added 2.10.2*/
      /**construct the markup display of this item**/
      $itemMarkup=array();
      $itemMarkup['quantity']		=''.$item['count'].'x ';
      $itemMarkup['name']			='<span class="wppizza-item-name">'.$item['name'].' </span>';
      $itemMarkup['size']			='<span class="wppizza-item-size">'.$item['size'].' </span>';
      $itemMarkup['price']		='<span class="wppizza-price-single">['.$item['price_formatted'].']</span> ';
      $itemMarkup['price_total']	='<span class="wppizza-price">'.$item['pricetotal_formatted'].'</span>';
      if(is_array($item['additionalinfo']) && count($item['additionalinfo'])>0){
      $itemMarkup['additionalinfo']='<div class="wppizza-item-additionalinfo">';
      foreach($item['additionalinfo'] as $additionalInfo){
      $itemMarkup['additionalinfo'].='<span>'.$additionalInfo.'</span>';
      }
      $itemMarkup['additionalinfo'].='</div>';
      }
      ?>
      <?php
      /**************************************************************************************************
      [added filter for customisation  v2.10.2]
      if you wish to customise the output, i would suggest you use the filter below in
      your functions.php instead of editing this file (or a copy thereof in your themes directory)
      /**************************************************************************************************/
      $itemMarkup = apply_filters('wppizza_filter_order_item_markup', $itemMarkup, $item, $itemKey, $options['order']);
      /**output markup**/
      echo''.implode("",$itemMarkup).'';
      ?>
      </li>
      #14077
      Olly
      Admin & Mod

        feel free to use the filter included there to do that if you want.
        after all, that’s the reason for filters are there and being included in various places.

        in any event – and for the moment or foreseeable future – I don’t think it will be included in the plugin as default or an option . sorry.
        (though never say never of course)

        #14100
        Anonymous

          Ok, thanks.

        Viewing 3 posts - 1 through 3 (of 3 total)
        • The topic ‘Order form images’ is closed to new replies.