In Progress

Prestashop template modification "More Info" Tab

Hi

We import a supplier csv which has the description field as follow:

<div id=HTML_SPEC class=ITSs>

<div class=ITSg>Group Feature Title 1</div>

<div class=ITSr0>

<div class=ITSn>Feature 1</div>

<div class=ITSv>Value 1</div>

</div>

<div class=ITSr1>

<div class=ITSn>Feature 2</div>

<div class=ITSv>Value 2</div>

</div>

<div class=ITSr0>

<div class=ITSn>Feature 3</div>

<div class=ITSv>Value 3</div>

</div>

<div class=ITSg>Group Feature Title 2</div>

<div class=ITSr0>

<div class=ITSn>Feature 1</div>

<div class=ITSv>Value 1</div>

</div>

<div class=ITSr1>

<div class=ITSn>Feature 2</div>

<div class=ITSv>Value 2</div>

</div>

<div class=ITSg>Group Feature Title 3</div>

<div class=ITSr0>

<div class=ITSn>Feature 1</div>

<div class=ITSv>Value 1</div>

</div>

<div class=ITSr1>

<div class=ITSn>Feature 2</div>

<div class=ITSv>Value 2</div>

</div>

</div>

and we wish to have it displayed as a table in the "more info" Tab (Prestashop 1.6):

<table class="ITSs" border="0" width="100%" cellspacing="1">

<tr class="ITSg">

<td colspan="2">Group Feature Title 1</td>

</tr>

<tr class="ITSr0" bgcolor="#f4f4f4">

<td class="ITSn" width="35%" >Feature 1</td>

<td class="ITSv">Value 1</td>

</tr>

<tr class="ITSr1">

<td class="ITSn" width="35%">Feature 2</td>

<td class="ITSv">Value 2</td>

</tr>

<tr class="ITSr0" bgcolor="#f4f4f4">

<td class="ITSn" width="35%" >Feature 3</td>

<td class="ITSv">Value 3</td>

</tr>

<tr class="ITSg">

<td colspan="2">Group Feature Title 2</td>

</tr>

<tr class="ITSr0" bgcolor="#f4f4f4">

<td class="ITSn" width="35%" >Feature 1</td>

<td class="ITSv">Value 1</td>

</tr>

<tr class="ITSr1">

<td class="ITSn" width="35%">Feature 2</td>

<td class="ITSv">Value 2</td>

</tr>

<tr class="ITSg">

<td colspan="2">Group Feature Title 3</td>

</tr>

<tr class="ITSr0" bgcolor="#f4f4f4">

<td class="ITSn" width="35%" >Feature 1</td>

<td class="ITSv">Value 1</td>

</tr>

<tr class="ITSr1">

<td class="ITSn" width="35%">Feature 2</td>

<td class="ITSv">Value 2</td>

</tr>

</table>

And if Value = "Yes, Oui, Ja" replace with image /images/[url removed, login to view]

And if Value = "No, Non, Nein" replace with image /images/[url removed, login to view]

Coding is simple, something like (we are not familiar with Prestashop):

<?php function datasheet2table($datasheet) { $datasheet = trim($datasheet); $datasheet = str_replace("<div id=HTML_SPEC class=ITSs>","",$datasheet); $lines = explode("</div>",$datasheet); $spec = array(); $g = ""; // group $n = ""; // name $v = ""; // value foreach($lines as $k => $line) { $line = trim($line); $parts = explode(">",$line); $cdata = array_pop($parts); if (strpos($line,"ITSg")) { $g = $cdata; } if (strpos($line,"ITSn")) { $n = $cdata; } if (strpos($line,"ITSv")) { $v = $cdata; } if ($n && $v) { $spec[$g][$n] = $v; $n = ""; $v = ""; } } $html = ""; $html .= "<table class='ITSs' border='0' width='100%' cellspacing='1'>"; foreach($spec as $group => $features) { $html .= "<tr class='ITSg'><td colspan='2'>".$group."</td></tr>"; foreach($features as $name => $value) { $html .= "<tr class='ITSr'>"; $html .= "<td class='ITSn' width='35%'>".$name."</td>"; $html .= "<td class='ITSv'>"; switch($value) { case "Yes": $html .= "<img alt='Yes' src='/images/[url removed, login to view]' />"; break; case "No": $html .= "<img alt='No' src='/images/[url removed, login to view]' />"; break; default: $html .= $value; break; } $html .= "</td>"; $html .= "</tr>"; } } $html .= "</table>"; return $html; }

Best Regards

Skills: HTML, PSD to HTML, Website Design

See more: website template convert html, prestashop template psd php, convert website template png html, convert blogger template website template, prestashop best template modification, convert current working css website template joomla, convert website template oscommerce, convert photoshop website template dreamweaver, convert website template blogger, modification template prestashop, convert normal website template oscommerce, website baker convert design template, convert psd website template css, psd template convert website, joomla convert existing website template, graphic template creator php, salary modification template, importar txt tab php mysql, monster template form php, wordpress modification template, download template project php, template system php, flash contact form template help php, website template convert joomla templates, simple template sistem php

About the Employer:
( 1 review ) Saint Mande, France

Project ID: #14632782

Awarded to:

sahildeveloper01

I have been in the field of most creative ideas ( WEB ) for more than 10 years. Having a vast experience to design and developer web based applications using the latest and trending technologies. Relevant Skills and More

€23 EUR in 1 day
(12 Reviews)
3.8

17 freelancers are bidding on average €30 for this job

dbuglab

Hello Prospect ! I am Results Oriented Professional Web developer having Extensive Experience in PRESTASHOP. I can offer you 7+ years of experience in developing Websites using PRESTASHOP, excellent project-manag More

€66 EUR in 1 day
(76 Reviews)
6.9
€30 EUR in 1 day
(87 Reviews)
6.5
finbuks

Hello sir/mam, Thanks for the opportunity. I have gone through the details of your project and I find it well within our capabilities. Please spare a moment to discuss this project. Relevant Skills and Experience ht More

€30 EUR in 1 day
(26 Reviews)
5.9
imagicaworld

Hello Relevant Skills and Experience please have a look at our portfolio link:- [url removed, login to view] Proposed Milestones €50 EUR - d

€50 EUR in 1 day
(19 Reviews)
5.1
marlinbyte

We have gone through your project requirement and we can do your project very efficiently, effectively and with 100% accuracy. we are available to start this work right now if get awarded. Relevant Skills and Experien More

€25 EUR in 1 day
(14 Reviews)
4.1
rajchadokar123

I am extremely proficient in PHP/MySQL and Wordpress ,along with extensive experience with the latest standards Bootstrap / HTML5. I am able to build website. Relevant Skills and Experience HTML, PSD to HTML, Website More

€23 EUR in 1 day
(2 Reviews)
3.5
Cloudwapp

Hello Relevant Skills and Experience please have a look at our portfolio link:- [url removed, login to view] Proposed Milestones €23 EUR - D

€23 EUR in 1 day
(2 Reviews)
2.9
€23 EUR in 1 day
(4 Reviews)
2.3
€22 EUR in 1 day
(4 Reviews)
2.5
jayesh793

Thank you for considering my bid! I read through the job details extremely carefully and I am absolutely sure that I can do the project very well. Relevant Skills and Experience We have worked on similar projects to w More

€24 EUR in 1 day
(3 Reviews)
2.2
chiragim

Dear hiring manager, Hope you are doing well!! I have gone through the project description. As per the given brief you are looking for a Web expert cum Designer to build a site Responsive site. I am a professional W More

€25 EUR in 1 day
(2 Reviews)
1.6
€50 EUR in 10 days
(4 Reviews)
1.8
Bijimol

We are adhered to strict timelines and schedules . We believe in quality, as we understand the needs of our customer and respects their time and money. Relevant Skills and Experience I am expertise in designing the More

€19 EUR in 5 days
(1 Review)
0.5
gauraviits

Hello client, I read out all your requirements and I can provide it in given time and in less budget. I am a PHP developer, I got a huge experiences in PSD to HTML Relevant Skills and Experience [url removed, login to view] More

€23 EUR in 1 day
(1 Review)
0.0
€23 EUR in 1 day
(2 Reviews)
0.0
€23 EUR in 2 days
(0 Reviews)
0.0