Jump to content

mohamedali

Members
  • Posts

    51
  • Joined

  • Last visited

Community Answers

  1. mohamedali's post in [Solved]TCPDF ERROR: [Image] Unable to get image: http://img/logo_invoice.jpg was marked as the answer   
    i changed the image path in pdf/header.tpl 
     
    {if $logo_path} <img src="{$logo_path}" style="width:{$width_logo}px; height:{$height_logo}px;" /> {/if}   to    {if $logo_path} <img src="www.prestacart/img/logo_invoice.jpg." /> {/if}  
    now it work fine....
  2. mohamedali's post in TypeError: pictureOffsetOriginal is null was marked as the answer   
    i am working in localhost so i unable to share link..
     
    however i solved the problem but i cant understand.
     
    the error code is.
     
    <td class="tdheight"> <div id="p_list_addto_cart">   {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity <= 1 && $product.customizable != 2 && !$PS_CATALOG_MODE}   {if ($product.allow_oosp OR $product.quantity > 0) && $product.customizable != 2}       <a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="/{$base_dir}cart.php?add&id;_product={$product.id_product|intval}&token;={$static_token}" >{l s='Add to cart'}</a>   {else}   <span class="exclusive">{l s='Add to cart'}</span>   {/if}   {/if}     <a  class="button" id="wishlist_button"   rel="ajax_id_product_{$product.id_product|intval}"  onclick="WishlistCart('wishlist_block_list', 'add', '{$product.id_product|intval}', '{$product.id_image|intval}', '', '1'); ">{l s='Wishlist' mod='blockwishlist'}</a> </div>   </td>   and the actual code is,   <td class="tdheight">     {if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.minimal_quantity <= 1 && $product.customizable != 2 && !$PS_CATALOG_MODE}   {if ($product.allow_oosp OR $product.quantity > 0) && $product.customizable != 2}       <a class="button ajax_add_to_cart_button exclusive" rel="ajax_id_product_{$product.id_product|intval}" href="/{$base_dir}cart.php?add&id;_product={$product.id_product|intval}&token;={$static_token}" >{l s='Add to cart'}</a>   {else}   <span class="exclusive">{l s='Add to cart'}</span>   {/if}   {/if}     <a  class="button" id="wishlist_button"   rel="ajax_id_product_{$product.id_product|intval}"  onclick="WishlistCart('wishlist_block_list', 'add', '{$product.id_product|intval}', '{$product.id_image|intval}', '', '1'); ">{l s='Wishlist' mod='blockwishlist'}</a>     </td>   i added a div element inside td. if i romove it works fine.      could you explain?
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More