Jump to content

test312

Members
  • Posts

    7
  • Joined

  • Last visited

Profile Information

  • Location
    Barcelona
  • First Name
    Ricard
  • Last Name
    Test

test312's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. My module controller was not working so during my tests i found out that all url starting with /module redirect to admin panel. In my local server, if i access for example `http://mywebsite.com/module/lorem/ipsum` and the module-controller combination doesn't exist, it returns a 404. But in production all urls starting like this: `https://mywebsite.com/module/*` return a redirect everytime, so i can not access `website.com/mymodule/mycontroller`. Its strange because we always use this server configuration for Prestashop. Any ideas how to debug this? Thanks.
  2. I developed a module for my customer which submits a simple form and sends an email to admin in order to request a budget estimation. This is the front where the form is, just a simple form on the cart actions and i print a link to my module controller where the mail is sent: cart-detailed-actions.tpl {if $requires_budget} <form action="{$link->getModuleLink('mymodule', 'mycontroller', [], true)|escape:'html'}" method="post"> {if ! $customer.is_logged} <div class="form-group"> <label for="budget-nom" style="width: 100%;text-align: left;">{l s='Name' d='Shop.Theme.Actions'}</label> <input id="budget-nom" type="text" name="name" class="form-control" required> </div> <div class="form-group"> <label for="budget-email" style="width: 100%;text-align: left;">{l s='Email' d='Shop.Theme.Actions'}</label> <input id="budget-email" type="email" name="email" class="form-control" required> </div> {/if} <div class="form-group"> <label for="budget-comments" style="width: 100%;text-align: left;">{l s='Comments' d='Shop.Theme.Actions'}</label> <textarea class="form-control" name="comments" id="budget-comments" minlength="10" required></textarea> </div> <button type="submit" name="request-budget-form" class="btn btn-primary"> {l s='Request quotation' d='Shop.Theme.Actions'} </button> </form> {else} <a href="{$urls.pages.order}" class="btn btn-primary">{l s='Proceed to checkout' d='Shop.Theme.Actions'}</a> {hook h='displayExpressCheckout'} {/if} My controller method in /modules/mymodule/controllers/front/mycontroller.php public function postProcess() { if (Tools::getIsset('request-budget-form')) { $this->requestBudget(); $this->success[] = 'Success message.'; $this->redirectWithNotifications('/'); } die('This gets executed in local server but not in production. Controller is never reached, instead it redirects the user to the Admin login page.'); Tools::redirect('/'); } PROBLEM: Its working perfectly in the local server. But in production, when submitting the form, it redirects the user to the admin login page, and if i'm logged in as admin, it brings me to the Admin dashboard. Also tried to do a get request to mywebsite.com/module/mymodule/mycontroller but also got redirected. In local i can access the controller. Any ideas of what's can be happening? Thanks! Edit 1: Also tried to disable the debug mode in local installation to replicate the production environment. But still working on local and not working on production server.
  3. Hey guys! Just created a custom tpl file called corp-home.tpl and made it the homepage. Then i went to the backoffice -> SEO + URL -> New Page and add this info: I think i have all setup correctly as i show in this screenshot: If i navigate to site.dev/home it shows me the correct page but url is printed like: site.dev/index.php?controller=corp-home Any ideas of what can be de issue here? Thanks a lot guys!
  4. Thanks for your replies guys! I managed to get it working
  5. Hey guys! I'm trying to set a CMS page as homepage in my Prestashop 1.6 but i can't find the way to achieve it. Things i've tried: This free module: https://mypresta.eu/modules/front-office-features/cms-on-homepage.html Replace the index.php with cms.php as i saw a post in internet. But none of them worked for me. Has someone achieved this? I believe lots of people have this problem but i can't find more information in the net. Thanks!!
  6. Wow just found a tab to duplicate the content. Sorry guys mark as closed.
  7. [sOLVED] Hey guys, I'm translating a prestashop site in two different languages. The problem is that only main language is updating page content, other language keeps content from the moment I installed it. If I configure a new different language now, it is going to get the latest content, but when I update the site, it is going to remain the same. I tried to delete smarty cache from preferences button and also manually from ftp. Some ideas of what could be the problem? Thank you!
×
×
  • Create New...