Jump to content

Bonjovi67

Members
  • Posts

    27
  • Joined

  • Last visited

Profile Information

  • Location
    Denmark
  • Activity
    User/Merchant

Recent Profile Visitors

386 profile views

Bonjovi67's Achievements

Newbie

Newbie (1/14)

  • Week One Done Rare
  • One Month Later Rare
  • One Year In Rare

Recent Badges

0

Reputation

  1. I found it in /themes/default-bootstrap/modules/productcomments/productcomments.tpl Changed <h2 class="page-subheading"> {l s='Write a review' mod='productcomments'} </h2> To <p class="page-subheading"> {l s='Write a review' mod='productcomments'} </p> And it seems to work
  2. Thank you for the reply. But where and in what file ?
  3. Hello, My SEO company has pointed out to me that our Prestashop 1.6.1.17 has H2 tags around the 'Write a review' on every product page. This should not be good for the SEO. The shop has the default bootstrap theme. Anyone who know how to remove the H2 tags from the 'Write a review' text on the product pages ? In the product pages html code it looks like this: <form id="id_new_comment_form" action="#"><h2 class="page-subheading"> Write a review</h2><div class="row"><div class="product clearfix col-xs-12 col-sm-6">
  4. Hello, I have some costumers (not all) that can not checkout out their ordrer and get a 500 error message to contact the site administrator at the checkout page. When i check the log file prestashop admin i see errors like this, but there is no error in the webserver log. Anyone that have any idea about what is wrong ? [500] error\n\n #psException{font-family: Verdana; font-size: 14px}\n #psException h2{color: #F20000}\n #psException p{padding-left: 20px}\n #psException ul li{margin-bottom: 10px}\n #psException a{font-size: 12px; color: #000000}\n #psException .psTrace, #psException .psArgs{display: none}\n #psException pre{border:1px solid #236B04; background-color:#EAFEE1; padding:5px; font-family:Courier;\n width: 99%; overflow-x: auto; margin-bottom: 30px;}\n #psException .psArgs pre{background-color: #F1FDFE;}\n #psException pre .selected{color: #F20000; font-weight: bold;}\n [PrestaShopException]Property Address->postcode is not validat line 909 in file classes/ObjectModel.php904. }\n905. \n906. $message = $this-&gt;validateField($field, $this-&gt;$field);\n907. if ($message !== true) {\n908. if ($die) {\n909. throw new PrestaShopException($message);\n910. }\n911. return $error_return ? $message : false;\n912. }\n913. }\n914. \nObjectModelCore->validateFields - [line 246 - classes/ObjectModel.php]241. * @return array All object fields\n242. * @throws PrestaShopException\n243. */\n244. public function getFields()\n245. {\n246. $this-&gt;validateFields();\n247. $fields = $this-&gt;formatFields(self::FORMAT_COMMON);\n248. \n249. // For retro compatibility\n250. if (Shop::isTableAssociated($this-&gt;def[\'table\'])) {\n251. $fields = array_merge($fields, $this-&gt;getFieldsShop());\nObjectModelCore->getFields - [line 652 - classes/ObjectModel.php]647. \n648. if (Shop::checkIdShopDefault($this-&gt;def[\'table\']) &amp;&amp; !$this-&gt;id_shop_default) {\n649. $this-&gt;id_shop_default = (in_array(Configuration::get(\'PS_SHOP_DEFAULT\'), $id_shop_list) == true) ? Configuration::get(\'PS_SHOP_DEFAULT\') : min($id_shop_list);\n650. }\n651. // Database update\n652. if (!$result = Db::getInstance()-&gt;update($this-&gt;def[\'table\'], $this-&gt;getFields(), \'`\'.pSQL($this-&gt;def[\'primary\']).\'` = \'.(int)$this-&gt;id, 0, $null_values)) {\n653. return false;\n654. }\n655. \n656. // Database insertion for multishop fields related to the object\n657. if (Shop::isTableAssociated($this-&gt;def[\'table\'])) {\nObjectModelCore->update - [line 195 - classes/Address.php] - [1 Arguments]190. \n191. if (Validate::isUnsignedId($this-&gt;id_customer)) {\n192. Customer::resetAddressCache($this-&gt;id_customer, $this-&gt;id);\n193. }\n194. \n195. return parent::update($null_values);\n196. }\n197. \n198. /**\n199. * @see ObjectModel::delete()\n200. */\nArgument [0]\n\nAddressCore->update - [line 4656 - modules/onepagecheckoutps/onepagecheckoutps.php]4651. $this-&gt;context-&gt;cart-&gt;id_address_delivery = $id_address_delivery;\n4652. \n4653. if ($this-&gt;config_vars[\'OPC_USE_SAME_NAME_CONTACT_DA\']) {\n4654. $address_delivery-&gt;firstname = $customer-&gt;firstname;\n4655. $address_delivery-&gt;lastname = $customer-&gt;lastname;\n4656. $address_delivery-&gt;update();\n4657. }\n4658. \n4659. if (!$this-&gt;context-&gt;cart-&gt;update()) {\n4660. $this-&gt;errors[] = $this-&gt;l(\'An error occurred while updating your cart.\');\n4661. }\nOnePageCheckoutPS->loadAddress - [line 720 - override/controllers/front/OrderOpcController.php]715. } elseif (method_exists($this-&gt;onepagecheckoutps, $action)) {\n716. switch ($data_type) {\n717. case \'html\':\n718. die($this-&gt;onepagecheckoutps-&gt;$action());\n719. case \'json\':\n720. $response = $this-&gt;onepagecheckoutps-&gt;jsonEncode($this-&gt;onepagecheckoutps-&gt;$action());\n721. die($response);\n722. default:\n723. die(\'Invalid data type.\');\n724. }\n725. } else {\nOrderOpcController->postProcess - [line 178 - classes/controller/Controller.php]173. if (!$this-&gt;content_only &amp;&amp; ($this-&gt;display_header || (isset($this-&gt;className) &amp;&amp; $this-&gt;className))) {\n174. $this-&gt;setMedia();\n175. }\n176. \n177. // postProcess handles ajaxProcess\n178. $this-&gt;postProcess();\n179. \n180. if (!empty($this-&gt;redirect_after)) {\n181. $this-&gt;redirect();\n182. }\n183. \nControllerCore->run - [line 335 - override/classes/Dispatcher.php]330. try\n331. {\n332. $controller = Controller::getController($controller_class);\n333. if (isset($params_hook_action_dispatcher))\n334. Hook::exec(\'actionDispatcher\', $params_hook_action_dispatcher);\n335. $controller-&gt;run();\n336. if ($this-&gt;_isPageCacheActive())\n337. {\n338. PageCache::displayStats(false, $pre_display_html);\n339. }\n340. }\nDispatcher->dispatch_16 - [line 107 - override/classes/Dispatcher.php]102. * date: 2017-06-01 00:44:10\n103. * version: 4.02\n104. */\n105. public function dispatch() {\n106. if (Tools::version_compare(_PS_VERSION_,\'1.6\',\'&gt;=\')) {\n107. $this-&gt;dispatch_16();\n108. } else {\n109. $this-&gt;dispatch_15();\n110. }\n111. }\n112. /*\nDispatcher->dispatch - [line 28 - index.php]23. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)\n24. * International Registered Trademark &amp; Property of PrestaShop SA\n25. */\n26. \n27. require(dirname(__FILE__).\'/config/config.inc.php\');\n28. Dispatcher::getInstance()-&gt;dispatch();\n\n\n{\"url_call\":\"https://e-tech.dk/quick-order?rand=1515498148131\",\"is_ajax\":1,\"action\":\"loadAddress\",\"delivery_id\":0,\"invoice_id\":0,\"dataType\":\"json\",\"async\":true,\"token\":\"ee00c2e36a18457ba96d95d8e21f6835\",\"navigator\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063\"}\n----------------------------------------------------------------\n\n
  5. Hi Anyone knows how to make the email to the shop as BCC ? (SOLVED) I changed it to: if($template == 'shipped') {$to_list->addBcc('[email protected]', 'admin');} And it seems to work
  6. I got it to work now. The changes above should be at line 536 not 1511
  7. Hi again mdekker I tried the your solution above, but it only works for the in_transit.html mail. I need to put the costumers email adress in the shipped.html mail(the email that is send to the costumer, when you change the order status to 'shipped'). The variables for the order status mails must in another file ?, but i dont know what file to look in. Anyone please ? i am really stuck with this problem and cannot use my trustpilot
  8. Thank you very much for the answer. But is this not for 'in_transit' mail ? I cant find elements for the the 'shipped' mail there ?
  9. I need to put the costumers email adress in the mail /themes/default-bootstrap/mails/da/shipped.html But i get same problem as above because the costumers email adress is not defined in the corresponding php file that pulls the data for the shipped mail. Same as before i just dont know what php file pulls the data for the shipped mail
  10. Yes, i think you are right there. But, thank you very much for your help. It got what i needed nevermind the override. Just a small side question if i may,, I also need to pull the costumer email data in the same way for the 'shipped mail', do you know in what file i can find the array for that ? Sorry i am new to prestashop, so it would be a great help, last thing i need to solve for now
  11. I just put your line 124 in the original mail alerts file and now it is working fine, so i can live with that. So it must be some error with the override.
  12. Maybee Would it be easier to put the call for the birthday data in the original mail alerts file ? I can always redo it after a new prestashop version.
  13. If i delete the new mail alerts override file, i can recieve the order_conf mails again
  14. I just tried to delete it. Did not help, i still dont receive the order confirmation mail. I am using Prestashop 1.6.1.4 with danish language pack as default and one page checkout module from prestashop modules.
  15. But now i dont recieve a copy of the order_conf mail for the mail alerts module
×
×
  • Create New...