Jump to content

babak1410

Members
  • Posts

    12
  • Joined

  • Last visited

Everything posted by babak1410

  1. hi. Can you explain more of? In one file, and where do you use it? REDIRECT and link, rather than what to do? Should they instead use vekia code? Thank you.
  2. hello again. i fined this solution that complatly work with PRESTASHOP 1.6.0.14: (References:http://www.sutanaryan.com/how-to-create-fixed-menu-when-scrolling-page-with-css-and-jquery/) 1)add this to .../themes/default-bootstrap/js/global.js : ///////////////////////////////////// jQuery("document").ready(function($){ var aaa = $('.sf-contener'); var bbb = $('.sf-contener').offset(); ddd=bbb.top; $(window).scroll(function () { if ($(this).scrollTop() > (ddd)) { aaa.addClass("f-nav"); } else { aaa.removeClass("f-nav"); } }); }); /////////////////////// 2)add this to .../themes/default-bootstrap/css/global.css : /************************************/ .f-nav { margin: 0 auto; padding-top: 0 !important; position: fixed; top: 0; width: 1170px; z-index: 9999; } /************************************/ i test it and work for me,I hope useful for you too.
  3. hello. I got the following code to fix the menu float. FOR PRESTASHOP 1.6.0.6. (References: http://codepen.io/senff/pen/ayGvD) just put them at the end of .../themes/default-bootstrap/js/global.js ///////////////////////////////////////////////////////////////////////////////////////////////////////////// // Create a clone of the menu, right next to original. $('.sf-contener').addClass('original').clone().insertAfter('.sf-contener').addClass('cloned').css('position','fixed').css('top','0').css('margin-top','0').css('z-index','500').removeClass('original').hide(); scrollIntervalID = setInterval(stickIt, 10); function stickIt() { var orgElementPos = $('.original').offset(); orgElementTop = orgElementPos.top; if ($(window).scrollTop() >= (orgElementTop)) { // scrolled past the original position; now only show the cloned, sticky element. // Cloned element should always have same left position and width as original element. orgElement = $('.original'); coordsOrgElement = orgElement.offset(); leftOrgElement = coordsOrgElement.left; widthOrgElement = orgElement.css('width'); $('.cloned').css('left',leftOrgElement+'px').css('top',0).css('width',widthOrgElement).show(); $('.original').css('visibility','hidden'); } else { // not scrolled past the menu; only show the original menu. $('.cloned').hide(); $('.original').css('visibility','visible'); } } //////////////////////////////////////// with this method, javascript automatically fixed the top menu, And does not require anything to be done. But I do not know why it will not work with version PERSTASHOP 1.6.0.14 and 1.6.0.13. Does anyone can give suggestions for the new version? (when use this code with 1.6.0.14 the firebug returns this error : TypeError: orgElementPos is undefined and when i delete ".top" from end of orgElementTop = orgElementPos.top(line 12 ) dont return any error but not working yet.) I hope you find it useful. Sorry for bad English - I am using Google Translator
  4. hi. i use your code and I had the same problem and I solved it. It is very easy just repet your query for ps_product in total: UPDATE `ps_product_shop` SET available_for_order =1 UPDATE `ps_product` SET available_for_order =1 Thanks from all,
  5. hi. My problem was solved. I tried the trohin solution and it was true .(You have to write all features this way (without quotes but within semicolons)) thanks very much. a : 12 : 1 , b : 58 : 2 , c : tttt : 3 , ..............
  6. hi Dh42. Thank you for your attention. atlasgeomatic.com and i renamed the index.html to 1index.html ( atlasgeomatic.com/1index.html) I am very thankful if you can help me.
  7. hi. I've created a page called index.html (as the landing page for my site) and put it into the root of my prestashop 1.6 site. and when I typed my website address, open index.html Within this file(index.html), there is a link to index.php(my shop). but when I click on this link, Re-opens the index.html(i want to open my prestashop). how can i solve this problem? In any case, thanks.
  8. hi. Could you solve your problem? I also have a problem like you.
×
×
  • Create New...

Important Information

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