Solved

Prestashop Product detail view

Posted on 2013-02-03
4
1,113 Views
Last Modified: 2013-02-04
Hello,

I have this problem: when you look at this page:
http://ps.jbmd.com/product.php?id_product=6 - everything works ok: when you click on pictures -> they have exactly defined pop up window.

Then I modified the product.tpl and product.css files like see in link:
http://ps.jbmd.com/product.zip
-------------------------------------------------------------------------------
Briefly in tpl page originally:
<a id="color_{$id_attribute|intval}" class="color_pick" style="background: {$color.value};" onclick="updateColorSelect({$id_attribute|intval});$('#wrapResetImages').show('slow');" title="{$color.name}">{if file_exists($col_img_dir|cat:$id_attribute|cat:'.jpg')}
<img src="{$img_col_dir}{$id_attribute}.jpg" alt="{$color.name}" width="20" height="20" />{/if}</a>
-------------------------------------------------------------------------------
tpl page after this modification

<a id="color_{$id_attribute|intval}" class="color_pick" style="background: {$color.value};"   onclick="updateColorSelect({$id_attribute|intval});$('#wrapResetImages').show('slow');  " title="{$color.name}">{if file_exists($col_img_dir|cat:$id_attribute|cat:'.jpg')}  
<img src="{$img_col_dir}{$id_attribute}.jpg" alt="{$color.name}" width="65" height="65" /> <span><img id="obrazek" src="{$img_col_dir}{$id_attribute}.jpg" alt="vzor" ></span>  {/if}
</a>
-------------------------------------------------------------------------------

But in this page:
http://ps.jbmd.com/product.php?id_product=10 

I am not able to have the same popup as in previous product no. 6. Moreover, the product no.6 still preserve its nice original pop.

How should I improve it?
0
Comment
Question by:maver2
  • 2
  • 2
4 Comments
 
LVL 82

Expert Comment

by:leakim971
ID: 38849799
Like the attachment?
Clipboard02.jpg
0
 

Author Comment

by:maver2
ID: 38851215
Very much so! Would you explain more? I cannot get this result with any browser on my pc.
0
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 38851237
open product.js
line 126, replace :
if(typeof(firstTime) != 'undefined' && firstTime && ipa_default != selectedCombination['idCombination'])

Open in new window

by :
if(typeof(firstTime) != 'undefined' && firstTime && (typeof(ipa_default) == "undefined" || ipa_default != selectedCombination['idCombination']))

Open in new window

0
 

Author Closing Comment

by:maver2
ID: 38851344
Unbelievable!!!!!!! Thank you.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now