Jump to content

brih

Members
  • Posts

    37
  • Joined

  • Last visited

Profile Information

  • Activity
    User/Merchant

brih's Achievements

Newbie

Newbie (1/14)

1

Reputation

1

Community Answers

  1. Hi all, I am trying to remove the links for category pages on the top menu bar. I have used this code to disable, and it works well for the class sf-with-ul. I am using below code. $(document).ready(function(){ $('.sf-with-ul').bind('click', false); }); However it seems that there is no Class on the mobile theme, which is why this command is ignored. So seems that there is a problem somewhere in the. What is setting the class for the mobile theme top menu (like the one called sf-with-ul) for the desktop. When I minimize the window and inspect, I get no name. It just says a 470x40, where the larger says a.sf-with-ul?! So I trust I need to go and find some missing code somewhere? But where? Hope someone can help. Br. Brian
  2. Jeg faldte tilfældigvis over en løsning som jeg prøvede - det virker https://github.com/PrestaShop/PrestaShop/commit/49977b74a2ecd6a73aed606329ddde3ddd3e78b4 I filen links.php links rettede jeg de to parametre fra false til null i linjerne 504 0g 508 og nu er mine sproglinks https - jeg havde eller ikke haft held til at finde en løsning indtil videre så alt ser fint ud nu Jeg håber det hjælper.
  3. Hej og tusind tak for din reaktion på dette - hermed koden nedenfor i file. Jeg går ud fra at det er i det som hedder $link der er http i stedet for https? Jeg håber at det er her jeg skal finde fejlen, da vores google listing mere eller mindre er fjernet efter https migrering, ikke engang vores index side kommer på ved søgning, og jeg tænker det er i blandingen af http og https der kan opstå forvirring, idet vi jo stadig har links tilbage til den "gamle" http side. Mvh. Brian {* * 2007-2013 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2013 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} <!-- Block languages module --> {if count($languages) > 1} <section id="languages_block_top" class="header-box header-button"> <div id="countries_2"> {* @todo fix display current languages, removing the first foreach loop *} {foreach from=$languages key=k item=language name="languages"} {if $language.iso_code == $lang_iso} <p class="selected_language icon_wrapp"> <span>{l s='Language' mod='blocklanguages'}</span> <strong>{$language.iso_code}</strong> <span>{$language.name}</span> <i class="arrow_header_top icon-chevron-sign-down"></i> </p> {/if} {/foreach} <ul id="first-languages" class="countries_ul list_header"> {foreach from=$languages key=k item=language name="languages"} <li {if $language.iso_code == $lang_iso}class="selected"{/if}> {if $language.iso_code != $lang_iso} {assign var=indice_lang value=$language.id_lang} {if isset($lang_rewrite_urls.$indice_lang)} <a href="{$lang_rewrite_urls.$indice_lang|escape:htmlall}" title="{$language.name}"> {else} <a href="{$link->getLanguageLink($language.id_lang)|escape:htmlall}" title="{$language.name}"> {/if} {/if} <img src="{$img_lang_dir}{$language.id_lang}.jpg" alt="{$language.iso_code}" width="26" height="16" /><span>{$language.name}</span> {if $language.iso_code != $lang_iso} </a> {/if} </li> {/foreach} </ul> </div> </section> <script type="text/javascript"> $(document).ready(function(){ $('#countries_2 .countries_ul li span, #countries_2 p > span').each(function() { var h = $(this).html(); var index = h.indexOf(' '); if(index == -1) { index = h.length; } $(this).html('<span class="firstWord">'+ h.substring(index, h.length) + '</span>' + h.substring(0, index)); }); }); </script> {/if} <!-- /Block languages module -->
  4. Hej alle, Fandt netop dette danske forum. Jeg kører en prestashop 1.5.6.2 version igennem nogle år nu, og er netop skiftet fra http til https. Jeg har forced ssl på all sider, serveren redurecter med 301 osv. men, jeg kan stadig se at jeg linker til nogle http sider gennem block language. Disse links er ikke http, hvilket muligvis giver nogle af de problemer som har oplever ved migreringen fra http til https. Er der nogen som ved hvor disse links til blocklanguage kan omkrives til https og hvordan? Håber på hjælp. På forhpnd tak. Mvh. Brian
  5. Did anyone ever find out what the problem is? As I have the same problem. Language links are linking to http site
  6. Just for anyone to have any use of this, I figured out what was wrong. It was a language/currency detection module that took the site back to http: I just disabled the module, so will need to live without
  7. Hi guys, I sincerely hope that you can point me in the right direction. I am running prestashop 1.5.6.2 and have recently changed to SSL. I have enabled force SSL on all pages in the back office, and it works well, all pages shows as hppts. I have enabled that www version is always to be used as well. However I have some issues with our google listings and placements, that I suspect may be from a confusing redirect. if I call the site example.com it has the following route: http://example.com https://example.com http://www.example.com https://www.example.com In this case it first forces https on the page then goes back to http and put the www on, and then back to https ?! I am sure that has to do with the url setting in prestashop. The domain i specified as www.example.com in the section shop url and it also shows that the final url will be http://www.example.com, not https and that I cannot change. Where do I have the possibility to skip the redirect back to http? Also if i call a specific address, e.g. https://www.example.com it takes me back to http://www.example.com and then to https://www.example.com again I am suspecting this is done in the htaccess file. It has the http_host, not sure if that should be different ? Hope you can help. Thans and best regards Brian
  8. Hi - thanks for all the good responses. That is perfect. i will rethink what to do, but in order to stop this, I have done the following: I edited the file contact controller.php in controllers/front/ In the beginning of the file: public function postProcess() { if (Tools::isSubmit('submitMessage')) { I replaced with: public function postProcess() { if (Tools::isSubmit('submitMessageblablablba')) { It means it will never send anything. That stopped the stream of spam coming in. I have edited the contact page just to include email contact, and no longer by form. Br. Brian
  9. Hi all, I have a serious problem currently. I am being bombarded by emails from my own contactform. I can see that this is not new, but I have tried everything. I have deleted the contactform in the contactform tpl in the theme, so no form or button anymore. It stills comes in. I trust it is in the contactcontroller somewhere. I have tried to put this below into the override: <?php class ContactController extends ContactControllerCore { public function postProcess() { if (Tools::isSubmit('submitMessage')) {die('Form disabled');} else parent::postProcess(); //return null; } } Doesnt seem to help. It seems that ContactControllerCore is not recognised. Can anyone please guide me in any direction. Can I just delete the contactcontroller. Seems there is nothing to be done about this ?? Thanks in advance.
  10. Hi all - I am not sure if you can help, however I am configuring a multishop and need to reprogramme the .htaccess. I have a shop on "somedomain.com" where languages are /da, /sv, /en - so somedomain.com/da for danish. I now created a multishop where I have somedomain.dk/da - and I want to redirect all traffic from customers coming from somedomain.com/da/whatever to somedomain.dk/da/whatever..... Usually that should be quite easy, but I guess something in the .htaccess file generated by prestashop is creating problems. I get too many redirects - and I have tried all kind of redirects ??! I am sure this should be very easy, but can anyone help me ?? So basically, if this is called: somedomain.com/da/whatever - I want to sent it to somedomain.dk/da/whatever I have placed the .htaccess content for reference below. Any ideas are more than welcome. Thanks Just for reference: # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # http://www.prestashop.com - http://www.prestashop.com/forums <IfModule mod_rewrite.c> <IfModule mod_env.c> SetEnv HTTP_MOD_REWRITE On </IfModule> RewriteEngine on RewriteCond %{HTTP_HOST} ^www.somedomain.com$ RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteCond %{HTTP_HOST} ^www.somedomain.com$ RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^www.somedomain.com$ RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L] RewriteCond %{HTTP_HOST} ^www.somedomain.com$ RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L] RewriteCond %{HTTP_HOST} ^www.somedomain.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L] RewriteCond %{HTTP_HOST} ^www.somedomain.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L] RewriteCond %{HTTP_HOST} ^www.somedomain.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L] RewriteCond %{HTTP_HOST} ^www.somedomain.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L] RewriteCond %{HTTP_HOST} ^www.somedomain.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L] RewriteCond %{HTTP_HOST} ^www.somedomain.com$ RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^www.somedomain.com$ RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # AlphaImageLoader for IE and fancybox RewriteCond %{HTTP_HOST} ^www.somedomain.com$ RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L] # Dispatcher RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteCond %{HTTP_HOST} ^www.somedomain.com$ RewriteRule ^.*$ - [NC,L] RewriteCond %{HTTP_HOST} ^www.somedomain.com$ RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] RewriteCond %{HTTP_HOST} ^www.somedomain.dk$ RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteCond %{HTTP_HOST} ^www.somedomain.dk$ RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^www.somedomain.dk$ RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L] RewriteCond %{HTTP_HOST} ^www.somedomain.dk$ RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L] RewriteCond %{HTTP_HOST} ^www.somedomain.dk$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L] RewriteCond %{HTTP_HOST} ^www.somedomain.dk$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L] RewriteCond %{HTTP_HOST} ^www.somedomain.dk$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L] RewriteCond %{HTTP_HOST} ^www.somedomain.dk$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L] RewriteCond %{HTTP_HOST} ^www.somedomain.dk$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L] RewriteCond %{HTTP_HOST} ^www.somedomain.dk$ RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^www.somedomain.dk$ RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # AlphaImageLoader for IE and fancybox RewriteCond %{HTTP_HOST} ^www.somedomain.dk$ RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L] # Dispatcher RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteCond %{HTTP_HOST} ^www.somedomain.dk$ RewriteRule ^.*$ - [NC,L] RewriteCond %{HTTP_HOST} ^www.somedomain.dk$ RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] RewriteCond %{HTTP_HOST} ^www.somedomain.se$ RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteCond %{HTTP_HOST} ^www.somedomain.se$ RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^www.somedomain.se$ RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L] RewriteCond %{HTTP_HOST} ^www.somedomain.se$ RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L] RewriteCond %{HTTP_HOST} ^www.somedomain.se$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L] RewriteCond %{HTTP_HOST} ^www.somedomain.se$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L] RewriteCond %{HTTP_HOST} ^www.somedomain.se$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L] RewriteCond %{HTTP_HOST} ^www.somedomain.se$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L] RewriteCond %{HTTP_HOST} ^www.somedomain.se$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L] RewriteCond %{HTTP_HOST} ^www.somedomain.se$ RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^www.somedomain.se$ RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # AlphaImageLoader for IE and fancybox RewriteCond %{HTTP_HOST} ^www.somedomain.se$ RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L] # Dispatcher RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteCond %{HTTP_HOST} ^www.somedomain.se$ RewriteRule ^.*$ - [NC,L] RewriteCond %{HTTP_HOST} ^www.somedomain.se$ RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] </IfModule> #If rewrite mod isn't enabled ErrorDocument 404 /index.php?controller=404 # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
  11. Hi Rocky, thanks for this. I will try to change this in near future and reactivate the certificate on the server to test again. I will repost back. Again thanks for your help, I sincerely appreciate this.
  12. Hi Rocky, Thanks for using your time on my problem. I did enable SSL, however the button enable on all pages doesnt exist in my version?! Enabling SSL should at least have been giving me the option on the account page /my-account - all the options here are also linking to http only. I guess you are right, the theme doesnt support. There has been quite a few problems with that anyway, so why not also this How do I double check that the theme would not support?? Should be something where with the href ?? I think it would require too much to nail this, compared to start all over I guess...I guess a lot need to be corrected.
  13. Hi all, I sincerely hope that someone can help on this matter. I have this shop installed for quite some time, and would like to change to https on the complete site. I purchased a certificate and had it installed on the server. In order to make a test, what we did was to enable SSL in prestashop. We have the SSL domain set to www.randomsite.com I changed nothing in the .htaccess file. I tried to call the address https://www.randomsite.com/en/ - and it responds and is showing okay. I notice that the SSL is broken and there is a warning. All links on the site, e.g. products are redirecting to the http version, not the https one, so this is why the ssl is broken. We have a slider minic, that one is linking correct to the product using https. So, my question is, 1. why are the product links redirecting to http://www...... and not https://www..... ??? I am sure it is basic for most, but I simply dont know where to start and end figuring out what is controlling that. I have also tried to log into the customer account, and recall this using https I reloaded the page https://www.randomsite.com/en/my-account Just to see if the links to order history would be calling https, but the do not redirect to https version. 2. What am I missing ?? I sincerely hope someone can help on this. Br. Brih
  14. Hi all, Hope someone knows the answer to this question: In prestashop you can deactivate a product, and when calling this directly it will be redirected to a page saying product not found, as well as it will not show up in product lists etc. I want the product to be visible even when deactivated when it is called directly, e.g. www.test.com/product/35-thisproduct.html But not showing up in a list in categories. I would imagine that the active field in the database controls this in the file product.tpl in the theme ?? Right or way off ?? There must be a condition if active=1 then show this or send to not found ?? Somewhere - does someone knows where that is ?? Hope to hear from you guys. Thanks in advance
  15. Okay, thanks for looking at this. I guess I will have to ask the template programmer on this one - once again, thanks
×
×
  • Create New...

Important Information

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