Jump to content

steviger

Members
  • Posts

    120
  • Joined

  • Last visited

steviger's Achievements

Newbie

Newbie (1/14)

5

Reputation

1

Community Answers

  1. Thanks man, works like a charm! For those who want the same thing, here's what I did: In the folder override I made a folder called blocktopmenu. Inside that folder I put a blocktopmenu.php with this code: <?php class BlocktopmenuOverride extends Blocktopmenu { public function __construct() { parent::__construct(); if($this->id && !$this->isRegisteredInHook('displayTopColumn')) $this->registerHook('displayTopColumn'); } public function install($delete_params = true) { $this->registerHook('displayTopColumn'); return parent::install(); } public function hookDisplayTopColumn($params) { return $this->hookDisplayTop($params); } } Next I transplanted the module to displayTopColumn section. Go to modules > positions tab in the back office. On the top right window part you can see anchor icon with "transplant a module" text. Click on it and you will see form where you have to: from first dropdown named "Module" select: Top horizontal menu from second dropdown named "Hook into" select "displayTopColumn (Top column blocks)" Finally, don't forget to change the order in the displayTopcolumn section in order to display the menu under or above the slideshow. You can find it here: modules > positions tab in the back office>bottom of the page.
  2. Hi, Thanks for your reply. I read your article and I think I do understand the override principle but since I'm not really (or rather really not..) a coder, could you help me with an example for my situation? It will be much appreciated!
  3. Hi guys, I would like to move the horizontal top menu just below the slider like the design in the attached image. Apparently it can't be transplanted to the hook displayTopColumn. I found this post but there's no reaction (yet).The Vekia solution is for transplanting the module to displayHeader section. Anyone? Thanks in advance! Cheers, Steven
  4. Hi, I would like Prestashop to calculate the shipping price depending on items quantity in cart. In both the cart on the frontpage as in the cart in the checkout. For example: 1 item: the full amount 2 items: 10 % discount 3 items: 20% discount etc. etc. Is this possible and if so, how can I achieve this? Thanks in advance! Steven
  5. Just moved to a newer server and indeed, problem solved. It must be a CSS thing but I can't get the module to be displayed on the right side, next to My Account block. Here's my code in your module: <section class="footer-block col-xs-12 col-sm-2" id="block_various_links_footer"> <div> <h4>F.A.Q.</h4> <ul> <li><a href="#">Shipping</a></li> <li><a href="#">Repair Service</a></li> <li><a href="#">Paying Methods</a></li> <li><a href="#">Terms & Conditions</a></li> <li><a href="#">Product care & composition</a></li> </ul> </div> </section> Cheers, Steven
  6. Hi Milos, I'm using PS 1.6.0.8 Default bootstrap theme. Just downloaded your excellent module, thanks. I have two questions however: 1) When adding code and hit save settings, the code changes with loads of quotes: <div class="\"\\"block_various_links\\"\"" id="\"\\"block_various_links_footer\\"\""> <p class="\"\\"title_block\\"\"">Information</p> <ul> <li><a href="\"\\"#;\\"\"">Shipping</a></li> <li>Repair Service</li> <li>Paying Methods</li> <li>Terms & Conditions</li> <li>Product care & composition</li> </ul> </div> I disabled the Use HTMLPurifier Library option. 2) I would like the module to be displayed on the right side, next to My Account block (see attachment). But I can't seem to find out how. Could it have to do with the issue stated in my first question? Thanks in advance! Cheers, Steven
  7. Hi Guys, Thanks for the reply. Disable only on product-list.tpl and product.tpl will be just fine. So I guess I have to put the var $this->context->customer->isLogged() somewhere (in which file?) and modify the 2 tpl files (exactly how ?) right? Your help is much appreciated! Cheers I found this solution: http://catalogo-onlinersi.net/en/add-ons-prestashop-modules/328-hide-price-and-add-to-cart.html Works fine for me:)
  8. Hi, I would like to hide the "add to cart button" for non logged in visitors. So that they're not able to purchase any products. However they must be able to see the price. I found this in the forum but that's not for version 1.6: http://www.prestashop.com/forums/topic/85872-solved-hide-add-to-cart-button-until-logged-in/ Any ideas on how to solve this in V 1.6? Cheers, Steven
  9. Hi Marty, Thanks for your reply. I know that the editor doesn't take JS. However, I thought the script is in the header.tpl and in the editor just the <div> tags.. Cheers, steven
  10. Hi, I've put the header code between the literal tags. And this code in my frontpage editor: <div class="fb-activity" data-site="http://www.domainname.com" data-width="200" data-height="241" data-header="true" data-border-color="#ffffff" data-recommendations="true"></div> The thing is that, when I paste the code in the source of the editor and after updating I look in the source again, the code is gone. Any ideas on how to solve this? Cheers, Steven
  11. Yes I did (forgot to mention that, sorry...). With both pieces of code.
  12. Hi, I would like to add a Facebook Activity feed box to the content of my homepage text. What I did is stuff as suggested in this post I added the code: <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> to my header.tpl, right above the <div id="page"> tag. Next added the code: <div id="facebook"><div class="fb-activity" data-site="http://www.domain.com" data-app-id="0000000" data-width="200" data-height="241" data-header="true" data-border-color="#ffffff" data-recommendations="true"></div></div> to the HTML source in the homepage text editor. When I look in the generated source I see the FB SDK code allright but where the box should appear, I only see <div id="facebook"></div> Help is much appreciated. Cheers, Steven
  13. Ah ok. I'm affraid I can't help you with this...
×
×
  • Create New...