Jump to content

ash-f

Members
  • Posts

    27
  • Joined

  • Last visited

Profile Information

  • Activity
    User/Merchant

ash-f's Achievements

  1. Thank you! I wonder why the dev won't fix it. It's not the way it should be...
  2. What's the best way to update a theme that has a child theme? In my understanding, updating a theme that's not included in Prestashop needs deleting & installing. But if I delete the theme, a critical error happens. I reported this, but the dev ignored it. horrible https://github.com/PrestaShop/PrestaShop/issues/37043 I overwrote the theme files but the theme(Hummingbird) still has the same version v0.1.5, not v0.2.0 I installed.
  3. For some reason, emails sent from Prestashop has a wrong url. It's the old domain of dev site. I can not find any old domain in the DB or the htaccess or the config file I'm aware of. Template variable is "mailThemesUrl." i.e. Wrong url on emails https://dev.***.com//mails/themes/modern/assets/baseline-location_on-24px.png The url should be like this. https://www.***.com/mails/themes/modern/assets/baseline-location_on-24px.png Strange thing is that when I preview emails in the backend, it has the correct domain. The old domain appears only on sent messages. Do you guys know how can I update it? Prestashop version: 8.1.2
  4. Check the db tables. I found that this is caused by missing index of the db tables. All modules added become id=0 due to this.
  5. I had to delete welcome module as well.
  6. Prestashop Checkout signup does not go through and I see this error in the browser console. /admin/index.php?controller=AdminAjaxPrestashopCheckout&token=a8c1e7655fcca00911bfd8b5cf2bb0c5 How do I fix it? Prestashop v1.6.1.18 PrestaShop Checkout v2.15.5
  7. Might be caused by missing records from ps_authorization_role. So just updating ps_access won't work like me. I replaced ps_authorization_role with the one from fresh install. Then execute the sql Amantha posted. create a backup of ps_authorization_role just in case. ps_authorization_role.zip
  8. change '&L_PAYMENTREQUEST_0_AMT'.$i.'='.urlencode((float)$product['price_wt']). to '&L_PAYMENTREQUEST_0_AMT'.$i.'='.urlencode(number_format((float)$product['price_wt'],2)). change '&PAYMENTREQUEST_0_ITEMAMT='.(float)$total; to '&PAYMENTREQUEST_0_ITEMAMT='.number_format((float)$total,2); change if ($this->paypal_usa->validateOrder((int)$this->context->cart->id, (int)$order_status, (float)$result['PAYMENTINFO_0_AMT'], $this->paypal_usa->displayName, $message, array(), null, false, $customer->secure_key)) to if ($this->paypal_usa->validateOrder((int)$this->context->cart->id, (int)$order_status, number_format((float)$result['PAYMENTINFO_0_AMT'],2), $this->paypal_usa->displayName, $message, array(), null, false, $customer->secure_key)) Sometimes line number does not match because of line-break format. So I recommend to use search & replace function of text editors.
  9. are you sure you are checking this file? /modules/paypalusa/controllers/front/expresscheckout.php I don't see any html code you mentioned in this file.
  10. modify those lines like below 96 '&L_PAYMENTREQUEST_0_AMT'.$i.'='.urlencode(number_format((float)$product['price_wt'],2)). 115 '&PAYMENTREQUEST_0_ITEMAMT='.number_format((float)$total,2); 279 if ($this->paypal_usa->validateOrder((int)$this->context->cart->id, (int)$order_status, number_format((float)$result['PAYMENTINFO_0_AMT'],2), $this->paypal_usa->displayName, $message, array(), null, false, $customer->secure_key))
  11. 96 '&L_PAYMENTREQUEST_0_AMT'.$i.'='.urlencode((float)$product['price_wt']). 115 '&PAYMENTREQUEST_0_ITEMAMT='.(float)$total; 279 if ($this->paypal_usa->validateOrder((int)$this->context->cart->id, (int)$order_status, (float)$result['PAYMENTINFO_0_AMT'], $this->paypal_usa->displayName, $message, array(), null, false, $customer->secure_key))
  12. check line 96,115 and 279. possibly problem caused by only these lines.
  13. I know how to fix Paypal Express but I didn't know somebody is still interested. modify this file /modules/paypalusa/controllers/front/expresscheckout.php wrap any variable that is cast as float with number_format() example change (float)$product['price_wt'] to number_format((float)$product['price_wt'],2)
  14. This is caused by none 2digit decimal amount. If Paypal Payment Standard, Edit /modules/paypalusa/views/templates/hook/standard.tpl change <input type="hidden" name="amount_{$smarty.foreach.paypal_usa_products.index+1|escape:'htmlall':'UTF-8'}" value="{$paypal_usa_total_shipping|floatval}" /> to <input type="hidden" name="amount_{$smarty.foreach.paypal_usa_products.index+1|escape:'htmlall':'UTF-8'}" value="{$paypal_usa_product.price|floatval|number_format:2}" /> Same goes to Express and Professional, I guess.
×
×
  • Create New...