Jump to content

marco989

Members
  • Posts

    22
  • Joined

  • Last visited

marco989's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi guys, Fabien, I have exactly the same problem as originally described Fatal error (OrderHistory -> id_order_state is empty) and here are the details PS 1.3.6 want to: duplicate the Cheque module and adapt it for other sorts of payments did: - copied all files from the original Cheque module into a new directory - renamed the corresponding files and inside the files replaced the variable "Cheque" to the "Newname" - uploaded the files into the corresponding map of the modules dir online - installed the module in back office - set the new currency and country restrictions ok to correspond to the new payment method - inserted a new Order state with a fresh id# (this ID was not visible into the database so I had to use the INSERT INTO `ps_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES command - new ID is visible in database now and looks like: PS_OS_NEWPAYMENTMETHOD 26 2013-12-12 15:43:25 2013-12-12 15:43:25 - during cart creation and checkout all works fine - when clicking on Confirm order (final step) the PS returns the message Fatal error (OrderHistory -> id_order_state is empty) and that's it! the product is taken out of the stock but the order is not process din the back office nor any confirmation mails are sent What do i do wrong???? after looking in cheque.php i see ... if ($state == _PS_OS_NEWPAYMENTMETHOD_ OR $state == _PS_OS_OUTOFSTOCK_) $smarty->assign(array( 'total_to_pay' => Tools::displayPrice($params['total_to_pay'], $params['currencyObj'], false, false), 'NEWPAYMENTMETHODName' => $this->NEWPAYMENTMETHODName, 'NEWPAYMENTMETHODAddress' => nl2br2($this->address), 'status' => 'ok', 'id_order' => $params['objOrder']->id )); else $smarty->assign('status', 'failed'); return $this->display(__FILE__, 'payment_return.tpl'); } .... Would changing anything in Orderhistory.php help? In this file I see loads of id_order_state statements PS: will not update to any new PS version 1.3.6 works just fine for my needs, so tips on "dude, upgrade your PS" will be disregarded.
  2. Hi man, can you be a bit more specific please. I have the same issue. I need to associate a status with a new payment method. Where exactly did you type in the 1? Tell us the file name and the line # or simply copy paste the whole script so we all can see where you added that 1... Thanks, much appreciated!!
  3. seems that {if ($cookie->id_currency!=7)} works... Comments welcome.
  4. Hi guys, anyone help please.... I need to create a {if} function to hide specific payment modules when the client chooses a specific currency. I use PS 1.3.6 (will not upgrade, works beautifully). The thing goes like this: if the client clicks on Currency X (currency id 7), I have to hide all payment modules except one. Enabling/disabling the currency association with a specific module in the back office does not do the trick, meaning that all active modules are shown even if they are not associated with that particular currency id 7. As such, a work around would be to individually hide any other payment module when that currency is selected and to show them if other currency than id 7 is used. I tried this - just to test it, with the paypal module, in paypal.tpl: {if $id_currency != 7} .....show the paypal module.... {else} ... show a text ... {/if} Unfortunately the module is still shown. Any suggestions appreciated!
  5. Hi, does anyone know how to display the full date and time in the stats live page / visitors online? ps 1.3.6 currently the module has the following script in the table that shows the visitor: <td style="width: 100px;">'.substr($visitor['date_add'], 11).'</td> and the function is: private function getVisitorsOnline() { return Db::getInstance()->ExecuteS(' SELECT c.id_guest, c.ip_address, c.date_add, c.http_referer, pt.name as page FROM `'._DB_PREFIX_.'connections` c LEFT JOIN `'._DB_PREFIX_.'connections_page` cp ON c.id_connections = cp.id_connections LEFT JOIN `'._DB_PREFIX_.'page` p ON p.id_page = cp.id_page LEFT JOIN `'._DB_PREFIX_.'page_type` pt ON p.id_page_type = pt.id_page_type INNER JOIN `'._DB_PREFIX_.'guest` g ON c.id_guest = g.id_guest WHERE (g.id_customer IS NULL OR g.id_customer = 0) AND cp.`time_end` IS NULL AND TIME_TO_SEC(TIMEDIFF(NOW(), cp.`time_start`)) < 800000 GROUP BY c.id_connections ORDER BY c.date_add DESC'); } How can i make the table display the long date & time in the table cell <td style="width: 100px;">'.substr($visitor['date_add'], 11).'</td> Any help appreciated...
  6. Got it. Here is the solution in case anyone wants to add whatever message on the customer's account page, addresses page or whatever page, by performing a conditional check according to the group to which the customer belongs (verified on PS 1.3.6) Add on the my-account.tpl or whichever tpl you want, where you want the message to appear, the following code: <div> {if ($logged)} { $customer = new Customer($cookie->id_customer); if (!$customer->isMemberOfGroup(3));} <p class="warning"> Show message 1 </p> {else} <p> Show message 2 </p> {/if} </div> The above checks the condition id_group id_customer and isMemberofGroup and displays the corresponding warning or message. Tags: if condition $id_group $id_customer ismemeberofgroup Partial credits go to rocky for his post; http://www.prestashop.com/forums/index.php?/topic/39431-php-help-needed-hide-everythingshop-until-a-user-logs-in/page__view__findpost__p__283507
  7. Got it. Here is the solution in case anyone wants to add whatever message on the customer's account page, addresses page or whatever page, by performing a conditional check according to the group to which the customer belongs (verified on PS 1.3.6) Add on the my-account.tpl or whichever tpl you want, where you want the message to appear, the following code: <div> {if ($logged)} { $customer = new Customer($cookie->id_customer); if (!$customer->isMemberOfGroup(3));} <p class="warning"> Show message 1 </p> {else} <p> Show message 2 </p> {/if} </div> The above checks the condition id_group id_customer and isMemberofGroup and displays the corresponding warning or message. Tags: if condition $id_group $id_customer ismemeberofgroup Partial credits go to rocky for his post; http://www.prestashop.com/forums/index.php?/topic/39431-php-help-needed-hide-everythingshop-until-a-user-logs-in/page__view__findpost__p__283507
  8. The message must be displayed on when the customer is logged, on their page with the cart overview, account info and addresses. However, as i said in the previous post, that specific formula disables the body of the page, so if active, you get to see the header/top of the page only.
  9. HI rocky does your solution work for PS 1.3.6 as well? I use PS 1.3.6 and i would like to display a specific text message when a customer from the Group X (not conditioned by his/her name of his/her customer id) is logged in. I tried the following combinations: {if $logged} {if isset($id_group) and $id_group==3} <p class="warning"> Show this message 1 </p> {else} <p class="warning"> Show message 2 </p> {/if} {/if} This option does not work ok and it displays the text in the {else} condition only. I tried as well {if $logged} {if (self::$cookie->id_customer)} {$customer = new Customer(intval($this->id_customer)); $customer->getGroups()} {if ($customer_group==3)} <p class="warning"> Show message 1 </p> {else} <p> Show message 2 </p> {/if} {/if} {/if} This code disables the body of the page completely. Any tips on how to code it correctly? Again, this is about showing a specific text message to a customer, depending on the group he's in (as set in the back office), independent of the name of the customer or the customer id. version PS 1.3.6
  10. Hi franckm1000 excuse my for not speaking French. Do let me know if you understand my post, though. Does your above solution work on PS 1.3.6 as well? I use PS 1.3.6 and i would like to display a specific text message when a customer from the Group X (not conditioned by his/her name of his/her customer id) is logged in. I tried the following combinations: {if $logged} {if isset($id_group) and $id_group==3} <p class="warning"> Show this message 1 </p> {else} <p class="warning"> Show message 2 </p> {/if} {/if} This option does not work ok and it displays the text in the {else} condition only. I tried as well {if $logged} {if (self::$cookie->id_customer)} {$customer = new Customer(intval($this->id_customer)); $customer->getGroups()} {if ($customer_group==3)} <p class="warning"> Show message 1 </p> {else} <p> Show message 2 </p> {/if} {/if} {/if} This code disables the body of the page completely. Any tips on how to code it correctly? Again, this is about showing a specific text message to a customer, depending on the group he's in (as set in the back office), independent of the name of the customer or the customer id. version PS 1.3.6
  11. Hi guys, I use PS 1.3.6 and i would like to display a specific text message when a customer from the Group X (not conditioned by his/her name of his/her customer id) is logged in. I tried the following combinations: {if $logged} {if isset($id_group) and $id_group==3} <p class="warning"> Show this message 1 </p> {else} <p class="warning"> Show message 2 </p> {/if} {/if} This option does not work ok and it displays the text in the {else} condition only. I tried as well {if $logged} {if (self::$cookie->id_customer)} {$customer = new Customer(intval($this->id_customer)); $customer->getGroups()} {if ($customer_group==3)} <p class="warning"> Show message 1 </p> {else} <p> Show message 2 </p> {/if} {/if} {/if} This code disables the body of the page completely. Any tips on how to code it correctly? Again, this is about showing a specific text message to a customer, depending on the group he's in (as set in the back office), independent of the name of the customer or the customer id. version PS 1.3.6
  12. Be sure that if you select to encrypt the mails/password using the SSL option, you specify the correct ports (no SSL port 25, with SSL 465) (and check to see if your host allows SSL relay for SMTP)
  13. mail problem on module cheque. No confirmation mail is sent to the client when they choose pay by cheque. in back office preferences > email, use the SMTP mailing function instead of <Use PHP mail() function> This work-around works ok for PS 1.3.6. (possibly higher as well).
  14. Hi Guys, is this issue actually resolved because we have the same problem when clients buy in other currencies than the default one, which is euro. they pay the amount in euro but for some reason Moneybookers return to the shop the confirmation that the client paid too much or too little, depending on the rate of the currency. One example is: Product price 10 euro > client chooses dollars, pays 10 euro in 13 dollars, Moneybookers returns paid > shops says client paid too much 13 euro, when in fact client paid 13 dollars/ergo 10 euro. i think it a "miscommunication" between the currency symbols passed between moneybookers and prestashop. We have a "workaround" for this in the sense that we edited the error message displayed to the customer from "there was a problem with your payment" into "we processed your order and your payment is pending verification". Meanwhile we have to check manually the payment in Moneybookers and to change the status in the shop from "Payment error" to "Payment accepted". Until the issue is not fixed - and by the way, this issue is deeper than just changing or updating the moneybookers module - we are forced to delete all other currencies in the front end and operate in one currency. Has anyone from prestashop actually dealt with this issue? It's very annoying and unprofessional to bother the client with e-mails and apologies.
  15. true, same problem here, after reinstalling in a nea map, new database, it works. very weird, i do belive it's some ps issue. but ya... we all learn! so for all others with this contact form problem , jus reinstall in another map and use a new database.
×
×
  • Create New...

Important Information

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