Solved

Prestashop Product detail view

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
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.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

760 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

19 Experts available now in Live!

Get 1:1 Help Now