ash-f
Members-
Posts
27 -
Joined
-
Last visited
Profile Information
-
Activity
User/Merchant
ash-f's Achievements
-
Thank you! I wonder why the dev won't fix it. It's not the way it should be...
-
ash-f started following WidgetInterface' not found , Updating parent theme? , Problem prestashop Module - module undefined and 2 others
-
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.
-
Problem prestashop Module - module undefined
ash-f replied to romulossp's topic in Addons, modules and themes developers
Deleting cache files did not work, but this worked! -
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
-
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.
- 25 replies
-
- install
- free module
-
(and 1 more)
Tagged with:
-
I had to delete welcome module as well.
-
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
- 54 replies
-
- 1-click upgrade
- 1.7
-
(and 4 more)
Tagged with:
-
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.
-
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.
-
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))
-
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))
-
check line 96,115 and 279. possibly problem caused by only these lines.
-
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)
-
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.