Jump to content

henkedo

Members
  • Posts

    13
  • Joined

  • Last visited

Profile Information

  • Location
    france
  • Activity
    Freelancer

henkedo's Achievements

Newbie

Newbie (1/14)

7

Reputation

1

Community Answers

  1. Thanks for reply. However it's not a server issue as directly accessed file info.php <?php phpinfo(); ?> works fine ...
  2. Installed latest version on OVH server Perso account. PHP version 5.6 Backoffice works fine but Front office isn't working: Http Error 500. Please help.
  3. Hello. I have done as you suggested but still no subcategory products in parent category page.. PS1.6 default theme.. lease help. thanks
  4. Hi Caprice. You've got a hyphen in the url http://www.caprice-shop.ro/certificat-cadou but your php page is called certificatcadou.php url rewriting won't find your page.. good lucko .henkedo
  5. I needed this to make a totally different layout than the default for 1 single CMS category Index page... This way i can have a unique template file (HTML) and for ex. JS slideshow etc. + also usefull if you want to do some custom PHP logic and DB querys ..
  6. Yes.In Admin just go top configuration of Module 'blocktopmenu' and add the page manually.
  7. Writing the above post gave me some ideas.... problem solved! Turns out the default OVH index.html file was the culprit, in fact this file was served instead of index.php as the rewrite rules directs to http://domain.com and not explicitly http://domain.com/index.php So my bad , kinda... thx .henkedo
  8. Hi all. I have a problem on production server, hosted by OVH. Apache, PHP v5.3.16 , PS v 1.5.2 Default theme. When I have Friendly URLs turned OFF the blockcart module Ajax add to cart works fine, with the image moving to to Cart graphic etc... Friendly URls turned ON : CLick add to cart button on Product page. A modal pops up: Impossible to add the product to the cart. textStatus: 'parsererror' errorThrown: 'SyntaxError: JSON.parse: unexpected character' responseText:[ **** SOME HTML **** ] From FireBug Console: POST http://id-pharm.com/ controller=cart&add=1&ajax=true&qty=1&id_product=1&token=a92eb22d2ccd6bc84754017a7bd83b84&ipa=14 So this tells me that the Homepage gets served and not the blockcart-json, of course this is'nt JSON but HTML so the parsing fails. Conclusion : url_rewrite issue!! I have tried rebuildinig the .htaccess but no change, interestingly all pages work as expected when browsing site, so friendly urls seem to work fine except for when I have exact copy of the site on my local server and everything works as expected.
  9. Answer for PS version 1.5.2 in this thread: http://www.prestashop.com/forums/topic/194774-how-can-i-add-a-new-custom-page/
  10. Hello. I'm on Prestashop version: 1.5.2.0 Here's how to make a custom page. Mines called `testpage`, folow these steps: 1. override/classes/controller/FrontController.php - added template variable to see which controller is used. <?php class FrontController extends FrontControllerCore { public function init() { parent::init(); $this->context->smarty->assign(currentController', get_class($this)); } } 2. testpage.php <?php require(dirname(__FILE__).'/config/config.inc.php'); Tools::displayFileAsDeprecated(); Tools::redirect('index.php?controller=testpage'.($_REQUEST ? '&'.http_build_query($_REQUEST, '', '&') : ''), __PS_BASE_URI__, null, 'HTTP/1.1 301 Moved Permanently'); 3. testpage.tpl {include file="$tpl_dir./breadcrumb.tpl"} {include file="$tpl_dir./errors.tpl"} <h1>Testpage</h1> controller: {$currentController} <!-- Should be : TestpageController --> 4. controllers/front/TestpageController.php - NEW FILE! <?php class TestpageControllerCore extends FrontController { public $php_self = 'testpage'; public function initContent() { parent::initContent(); $this->setTemplate(_PS_THEME_DIR_.'testpage.tpl'); } } 5. Only if you use Friendly URLs : In PS admin > Prefrences > SEO & URLs Add new > Page = testpage , Title = Testpage , Friendly URL = testpage Thats it! Hope it helps someone.
×
×
  • Create New...