Jump to content

Matti

Members
  • Posts

    18
  • Joined

  • Last visited

Everything posted by Matti

  1. Prestashop cron tasks manager module seems to be buggy. I use the original crontab module by Samdha. http://www.prestatoolbox.com/free-modules/115-crontab.html
  2. Prestashop cron tasks manager module seems to be buggy. I use the original crontab module by Samdha. http://www.prestatoolbox.com/free-modules/115-crontab.html
  3. it can be fixed by editing /modules/prettyurls/override/classes/Link.php: On line 40, change from: $url = 'http://'.$shop->domain.$shop->getBaseURI().$this->getLangLink($id_lang, null, $id_shop); to: $url = $this->getBaseLink($id_shop).$this->getLangLink($id_lang, null, $id_shop); On line 257, change from: $url = 'http://'.$shop->domain.$shop->getBaseURI().$this->getLangLink($id_lang, null, $id_shop); to: $url = $this->getBaseLink($id_shop).$this->getLangLink($id_lang, null, $id_shop); On line 306, change from: $url = 'http://'.$shop->domain.$shop->getBaseURI().$this->getLangLink($id_lang, null, $id_shop); to: $url = $this->getBaseLink($id_shop).$this->getLangLink($id_lang, null, $id_shop); Then reinstall the module and clear the cache on performance page in BO.
  4. Just bought 1.0 version on prestashop addons. However, when installed on prestashop 1.6.0.9 it forces categry links to non ssl (http) mode and therefore cannot support https website. Was this issue addressed in 1.2?
  5. there is a minor bug in modrefchange.php. "else" is missing in line 852. This doesn't allow to handle strftime time variables in orderid settings.
  6. No, not thanks anyway. Change this one (lines 65-83): <div class="button-command"> {if (count($invoices_collection))} <a class="button" href="{$link->getAdminLink('AdminPdf')|escape:'htmlall':'UTF-8'}&submitAction=generateInvoicePDF&id_order={$order->id}" target="_blank"> <img src="../img/admin/charged_ok.gif" alt="{l s='View invoice'}" /> {l s='View invoice'} </a> {else} <img src="../img/admin/charged_ko.gif" alt="{l s='No invoice'}" /> {l s='No invoice'} {/if} | {if (($currentState && $currentState->delivery) || $order->delivery_number)} <a class="button" href="{$link->getAdminLink('AdminPdf')|escape:'htmlall':'UTF-8'}&submitAction=generateDeliverySlipPDF&id_order={$order->id}" target="_blank"> <img src="../img/admin/delivery.gif" alt="{l s='View delivery slip'}" /> {l s='View delivery slip'} </a> {else} <img src="../img/admin/delivery_ko.gif" alt="{l s='No delivery slip'}" /> {l s='No delivery slip'} {/if} | <a class="button" href="javascript:window.print()"><img src="../img/admin/printer.gif" alt="{l s='Print order'}" title="{l s='Print order'}" /> {l s='Print order'}</a> </div> to: {if ((int)Context::getContext()->employee->id_profile) == 3} {else} <div class="button-command"> {if (count($invoices_collection))} <a class="button" href="{$link->getAdminLink('AdminPdf')|escape:'htmlall':'UTF-8'}&submitAction=generateInvoicePDF&id_order={$order->id}" target="_blank"> <img src="../img/admin/charged_ok.gif" alt="{l s='View invoice'}" /> {l s='View invoice'} </a> {else} <img src="../img/admin/charged_ko.gif" alt="{l s='No invoice'}" /> {l s='No invoice'} {/if} | {if (($currentState && $currentState->delivery) || $order->delivery_number)} <a class="button" href="{$link->getAdminLink('AdminPdf')|escape:'htmlall':'UTF-8'}&submitAction=generateDeliverySlipPDF&id_order={$order->id}" target="_blank"> <img src="../img/admin/delivery.gif" alt="{l s='View delivery slip'}" /> {l s='View delivery slip'} </a> {else} <img src="../img/admin/delivery_ko.gif" alt="{l s='No delivery slip'}" /> {l s='No delivery slip'} {/if} | <a class="button" href="javascript:window.print()"><img src="../img/admin/printer.gif" alt="{l s='Print order'}" title="{l s='Print order'}" /> {l s='Print order'}</a> </div> {/if}
  7. You can easily hide it for specific profile using the code. Like so: {if ((int)Context::getContext()->employee->id_profile) == 3} {else} WHATEVER YOU WANT TO HIDE FOR PROFILE 3 (just locate the code string) {/if} Give it ago, and let me know if it worked for you.
  8. Oh, by the way. Sometimes there may be some discrepancies between table and total, as total may take additional order at later date. It happens because total takes the date as inclusive and table doesn't. This also has to be fixed. See if there is order 50. And all is accurate if you take that into an account. Total product sales is calculated with discount and shipping deducted. It is on purpose, to allow you to see income on products only. It is different to Total Sales, which includes discounts and shipping. I should probably add Total Sales as well.
  9. I tested the 2.2 module on 1.4.. It is crearly not working on 1.5, as you shown. Try 2.1 module for 1.5 and see if it works. In the meantime I'll try to debug it.
  10. Your talking about 2.1 version. Calculations for total and for spreadsheet are separate. This version total calculations don't take discounts into an account, that is why it needs to be calculated separately and then deducted. If you use 2.2, Total calculations take discounts into account.
  11. So if youn set fixed shipping cost in BO, the module doesn't pick it up?
  12. By default, in phplist database, field foreignkey is added as NULL. Phpsync module doesn't like that. So go to phplist database, foreignkey field and check if there are any NULL entries. Change them to 0. You can also specify that foreignkey field is set to INT(10) type and default entry is 0 not NULL. All of this can be done with any database manager, like phpmyadmin. Step1. Login to phpmyadmin and go to phplist database Step2. Go to phplist_user_user table Step3. Go to foreignkey column and change any existing NULL to 0 Step4. Go to table structure settings Step5. Find foreignkey and select Change Step6. Change it to field type as shown Come to think of it, module can be edited to handle NULL appropriately. To avoid this hassle.
  13. Hey, statsprofitmargin-2.0 version deosn't support multi-currency or product attributes. Try this one: statsprofitmargin-2.2.zip NOTE: Module is located at BO-->STATS-->Profit Margins Prestashop 1.4+ module location Prestashop 1.5+ module location Changelog: * now supporting multi-currency and product attributes Known bugs: * Download CSV doesn't work statsprofitmargin-2.1.zip
  14. This is what worked for me. 1. Create a profile with desired permissions for Orders page. Lets say this profile ID is 3. 2. Create an employee belonging to this profile. 3. Edit this file /public_html/tds747/themes/default/template/controllers/orders/helpers/view/view.tpl by using this code {if ((int)Context::getContext()->employee->id_profile) == 3} {else} {/if} Lets say you don't want the employee to see the sectioned called Customer information in BO Orders page. In Line 165 change from {if $customer->id} <!-- Customer informations --> <br /> <fieldset> <legend><img src="../img/admin/tab-customers.gif" /> {l s='Customer information'}</legend> <span style="font-weight: bold; font-size: 14px;"><a href="?tab=AdminCustomers&id_customer={$customer->id}&viewcustomer&token={getAdminToken tab='AdminCustomers'}"> {$customer->firstname} {$customer->lastname}</a></span> ({l s='#'}{$customer->id})<br /> (<a href="mailto:{$customer->email}">{$customer->email}</a>)<br /><br /> {if ($customer->isGuest())} {l s='This order has been placed by a guest.'} {if (!Customer::customerExists($customer->email))} <form method="post" action="index.php?tab=AdminCustomers&id_customer={$customer->id}&token={getAdminToken tab='AdminCustomers'}"> <input type="hidden" name="id_lang" value="{$order->id_lang}" /> <p class="center"><input class="button" type="submit" name="submitGuestToCustomer" value="{l s='Transform guest into customer'}" /></p> {l s='This feature will generate a random password and send an e-mail to the customer'} </form> {else} <div><b style="color:red;">{l s='A registered customer account already exists with this e-mail address'}</b></div> {/if} {else} {l s='Account registered:'} <b>{dateFormat date=$customer->date_add full=true}</b><br /> {l s='Valid orders placed:'} <b>{$customerStats['nb_orders']}</b><br /> {l s='Total spent since registration:'} <b>{displayPrice price=Tools::ps_round(Tools::convertPrice($customerStats['total_orders'], $currency), 2) currency=$currency->id}</b><br /> </fieldset> {/if} {/if} to {if ((int)Context::getContext()->employee->id_profile) == 3} {else} {if $customer->id} <!-- Customer informations --> <br /> <fieldset> <legend><img src="../img/admin/tab-customers.gif" /> {l s='Customer information'}</legend> <span style="font-weight: bold; font-size: 14px;"><a href="?tab=AdminCustomers&id_customer={$customer->id}&viewcustomer&token={getAdminToken tab='AdminCustomers'}"> {$customer->firstname} {$customer->lastname}</a></span> ({l s='#'}{$customer->id})<br /> (<a href="mailto:{$customer->email}">{$customer->email}</a>)<br /><br /> {if ($customer->isGuest())} {l s='This order has been placed by a guest.'} {if (!Customer::customerExists($customer->email))} <form method="post" action="index.php?tab=AdminCustomers&id_customer={$customer->id}&token={getAdminToken tab='AdminCustomers'}"> <input type="hidden" name="id_lang" value="{$order->id_lang}" /> <p class="center"><input class="button" type="submit" name="submitGuestToCustomer" value="{l s='Transform guest into customer'}" /></p> {l s='This feature will generate a random password and send an e-mail to the customer'} </form> {else} <div><b style="color:red;">{l s='A registered customer account already exists with this e-mail address'}</b></div> {/if} {else} {l s='Account registered:'} <b>{dateFormat date=$customer->date_add full=true}</b><br /> {l s='Valid orders placed:'} <b>{$customerStats['nb_orders']}</b><br /> {l s='Total spent since registration:'} <b>{displayPrice price=Tools::ps_round(Tools::convertPrice($customerStats['total_orders'], $currency), 2) currency=$currency->id}</b><br /> </fieldset> {/if} {/if} {/if} Voila! Employees belonging to profile ID 3 do not see this section anymore.
  15. Here is the fix: 1. Replace entries NULL to integers (like 1 or 2) in foreignkey column in phplist database prefix_user_user 2. in file phplistsync.php line 213 change from self::_PHPLIST_DB_.self::_PHPLIST_PREFIX_.'user_user' to self::_PHPLIST_DB_.'.'.self::_PHPLIST_PREFIX_.'user_user' 3. in file phplistsync.php line 98 change from SELECT c.`id_customer`, c.`lastname`, c.`firstname`, c.`email`, c.`newsletter` FROM `'._DB_PREFIX_.'customer` c WHERE c.id_customer not in (SELECT p.foreignkey from '.self::_PHPLIST_DB_.'.'.self::_PHPLIST_PREFIX_.'user_user p)'); to SELECT c.`id_customer`, c.`lastname`, c.`firstname`, c.`email`, c.`newsletter` FROM `'._DB_PREFIX_.'customer` c WHERE c.id_customer not in (SELECT p.foreignkey from '.self::_PHPLIST_DB_.'.'.self::_PHPLIST_PREFIX_.'user_user p) AND c.email not in (SELECT p.email FROM '.self::_PHPLIST_DB_.'.'.self::_PHPLIST_PREFIX_.'user_user p)'); All done.
  16. BEWARE of this guy. Somehow this module managed to wipe out the entire database. Cotoko I figuratively punch you in the face right now.
  17. I believe you belive wrong. Your previous fix does not work on newer versions, however, the one I posetd does. Tried and true. Have you tried it?
  18. This module is for PS 1.4-1.5 versions only.
  19. Improved and updated Lehander's profit margin module to work with Prestashop 1.4-1.5: statsprofitmargin-2.0.zip NOTE: this version doesn't support multi-currency or product attributes. See my post below for newer version.
  20. make sure that reply_msg.html and reply_msg.txt do exist there or if permissions are ok to access it.
  21. The crude way of fixing relay issues is to edit ContactController.php. Find this string $contact->email, $contact->name, $from and replace it with: $contact->email, $contact->name, '[email protected]'
  22. The crude way of fixing relay issues is to edit ContactController.php. Find this string $contact->email, $contact->name, $from and replace it with: $contact->email, $contact->name, '[email protected]'
  23. yes, that reason was to avoid duplicates as they use random letter password generator for their new order reference. Most of the users just want the old 6 digit sequential order reference back.
  24. We do need 000 in front but not so many. Just like in previous versions 6 total digits would be enough. Say order number 16, Order reference 000016.
×
×
  • Create New...

Important Information

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