Jump to content

want to edit home page code


Recommended Posts

hi

 

please refer this 

 

http://doc.prestashop.com/display/PS15/Integrating+content+in+a+page+using+hooks

 

Hooks are a way to attach your code to some specific PrestaShop events.

Most of the time, they are used to insert content in a page. .....

 

where do you want to add code ? 

hi

 

actually i want to insert a code for fancybox in homepage...

 

thank you for your reply

Share this post


Link to post
Share on other sites

Hi prakashivan,

 

if it is just a link and some content use vekia's HTML box module

 


 

 

below code will show a fancybox link [though i have not tested that in vekia's HTML box module]

 

But  if added in themes>>yourTheme>>footer.tpl , will show the fancybox link [ i don't  recommend this, instead use a module to display anything]

 

 

-------------------

 

<a class="poplink" rel="cs2" href="ext/track_order.php">Track your order</a>

 

<script type="text/javascript">

$('a.poplink').each(function(){

     $(this).fancybox({

  'type'  :'iframe', 

           'width' : '60%', 

           'autoScale': true, 

           'transitionIn': 'elastic', 

           'transitionOut' : 'fade', 

           'autoDimensions':'true' 

});

      });

 

 

</script>

 

---------------------

Share this post


Link to post
Share on other sites

 

Hi prakashivan,
 
if it is just a link and some content use vekia's HTML box module
 
 
 
below code will show a fancybox link [though i have not tested that in vekia's HTML box module]
 
But  if added in themes>>yourTheme>>footer.tpl , will show the fancybox link [ i don't  recommend this, instead use a module to display anything]
 
 
-------------------
 
<a class="poplink" rel="cs2" href="ext/track_order.php">Track your order</a>
 
<script type="text/javascript">
$('a.poplink').each(function(){
     $(this).fancybox({
  'type'  :'iframe', 
           'width' : '60%', 
           'autoScale': true, 
           'transitionIn': 'elastic', 
           'transitionOut' : 'fade', 
           'autoDimensions':'true' 
});
      });
 
 
</script>
 
---------------------

 

i have already installed htmlbox module. let me try ur code and let u know. btw do u know any paid module for displaying fancybox?? thanks

Share this post


Link to post
Share on other sites

so, simply add script that rajlaskar mentioned in header section

then create link in displayNav with class="poplink", like i did here:

 

 

 

make sure that module (htmlbox) is added to dispalyNav hook under modules > positions (search for displayNav modules list)

Share this post


Link to post
Share on other sites

 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More