Solved

Prestashop Product detail view

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

687 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