Solved

Prestashop Product detail view

Posted on 2013-02-03
4
1,116 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
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 …

770 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