Skip to content

Passing values to blade using redirect() and back() functions

I have successfully pass values from form to controller. Calculation is is working well, since its dump all the values using dd($fee); dd($vat); dd($Transaction_vat);. But now, when I try to pass the values to blade using return redirect()->back()->with(‘fee’, $fee ,’vat’, $vat ,…

PHP display name of login user

I am trying to display the name of a user when they are logged in. My code uses $_SESSIONS to store the name, but since there no input in my login in page, the name doesn’t get assign and it ends up being just hello, instead of something like hello, John Smith. I’ve tried using sql to select the n…

How to add payment fee to cart in Prestashop?

I want to add payment fee to cart with a product created for payment fees. But when i add to cart the product for fee then i use $cart->getOrderTotal(), it doesn’t show the real price with fee. It shows the order total as product price without fee. I use SpecificPrice class for this action. And i thi…

How to set subfolder in nginx

Im trying to set index.php file in my html folder as localhost:5555 and my second index.php file in html/highlighter folder as localhost:5555/highlighter with first everything okay, but with second …