?
Solved

Prestashop Product detail view

Posted on 2013-02-03
4
Medium Priority
?
1,135 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This article discusses how to implement server side field validation and display customized error messages to the client.
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

650 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