PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, October 26, 2022

[FIXED] How to remove reference column (=1st column) from products table in order confirmation email in Prestashop 1.7.6.1

 October 26, 2022     prestashop-1.7     No comments   

Issue

Can anybody tell me how to remove the first column from {products} table in Prestashop order_conf email in PS 1.7.6.1?

Also, where to edit column width of {products} order detail table - when I change order_conf.html it has no effect. Table dimensions are given by inline styles:

<tr style="background-color:#EBECEE;">
        <td style="padding:0.6em 0.4em;width:15%;"></td>
        <td style="padding:0.6em 0.4em;width:30%;"></td>
        <td style="padding:0.6em 0.4em;width:20%;"></td>
        <td style="padding:0.6em 0.4em;width:15%;"></td>
        <td style="padding:0.6em 0.4em;width:20%;"></td>
</tr>

But I have no idea where these styles come from as it is not from classes/PaymentModule.php as most likely was in earlier versions as I've read.

Thank you


Solution

  • The list of products in the order confirmation mails comes from mails/{iso_code}/order_conf_product_list.tpl file
  • Width of the each column of the product list table is from the same file so if you change the width in the order_conf.html then it will not have any effect. If you want to change the width then change it from mails/{iso_code}/order_conf_product_list.tpl file and make sure you don't have override version of order_conf in your theme. Hope these answer will help you.


Answered By - Vipul Hadiya
Answer Checked By - Mary Flores (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing