Search found 12 matches

Page 1 of 1

Search found 12 matches

Re: [SOLVED] OC 3.0.3.8 to 3.0.4.0 PHP 8.2

Previous code is twig 1 loader format and newer code is basically twig 2 /3 loader. secondly filesystem is used in case template engine fails to find file system assists.

Jump to post
  • Mon Sep 23, 2024 8:57 pm
  • Replies 9
  • Views 2804
Re: Error after attempted upgrade to 3.0.3.7

Hey, you need to move the vendor folder from system/storage/vendor to ../../storage/vendor

Jump to post
  • Tue Feb 20, 2024 4:14 pm
  • Replies 11
  • Views 2822
Re: Notice: Error: E-Mail to required! SOLVED

Make sure that before $mail->send() it is set as HTML or text.
Text

Code: Select all

$mail->setText($this->load->view('mail/sample_template', $data));
OR Html

Code: Select all

$mail->setHtml($this->load->view('mail/sample_template', $data));

Jump to post
  • Mon Sep 18, 2023 7:45 pm
  • Replies 56
  • Views 38503
Re: Error: E-Mail Message required!

Make sure that before $mail->send() it is set as HTML or text.
Text
$mail->setText($this->load->view('mail/sample_template', $data));
OR Html
$mail->setHtml($this->load->view('mail/sample_template', $data));

Jump to post
  • Mon Sep 18, 2023 7:43 pm
  • Replies 68
  • Views 45890
Re: fclose() expects parameter 1 to be resource, bool given in system/library/log.php

Well the quick fix is to downgrade PHP version to 7.2, or debug by changing file permissions

chmod 777 system/storage/logs/error.log
chmod 777 system/storage/logs/ocmod.log
chmod 777 system/storage/logs/openbay.log

Jump to post
  • Tue Jun 22, 2021 1:58 pm
  • Replies 7
  • Views 22115
Re: Checking if customer is logged in before checkout?

In the same way with OC 3.x you can check if customer is logged in

Code: Select all

$this->customer->isLogged()

Jump to post
  • Tue Jun 22, 2021 1:50 pm
  • Replies 7
  • Views 4168
Re: How to get the cart total in checkout/cart.tpl ?

You just need minor tweaking and so on .. Whoever may find this page, the above advice is completely wrong! Whenever you have to define or set variables, do it inside the controller, assign a variable and use that later in the view! That's simply what and why it is called MVC > Model View Controlle...

Jump to post
  • Sun May 23, 2021 11:05 pm
  • Replies 12
  • Views 23357
Re: How to get the cart total in checkout/cart.tpl ?

You just need minor tweaking Use cart total function: $order_total = $this->cart->getTotal(); so the overall code will be <?php $total = $this->cart->getTotal(); if ($total > 100) { echo "Your are eligable for FREE SHIPPING"; } else { echo "To be eligable for free shipping you need to...

Jump to post
  • Sun May 16, 2021 12:02 pm
  • Replies 12
  • Views 23357
Re: help needed: default OC theme responsivity for smaller devices adjustment

Donot set height to image rather if you want to make image size bigger then edit image resolution/ dimension in admin panel or if you can code then change image resolution from controller files manually, Opencart use to crop and manipulate images thats why it drops result on bigger display

Jump to post
  • Sun May 16, 2021 11:56 am
  • Replies 5
  • Views 699
Re: Current Format edit

Good Job, but with OC 3.x code have some bug you have selected currency value rather then amount $num=round($value, (int)$decimal_place); it should be $num=round($amount, (int)$decimal_place); and the piece of code will be $num=round($amount, (int)$decimal_place); $num1=explode('.',$num); $dec=(coun...

Jump to post
  • Sun May 16, 2021 11:20 am
  • Replies 9
  • Views 1307
[SOLVED] User comment not in html email order confirmation sent to user OC 3.x

I figured it out, this is how you can do HTML based Order emails from admin in OC 3.x catalog/controller/mail/order.php Modify Line ~ 307 to below $data['comment'] = html_entity_decode($comment); and line ~329 to $mail->setHtml($this->load->view('mail/order_edit', $data)); then simply Update the vie...

Jump to post
  • Tue Jan 12, 2021 2:38 pm
  • Replies 0
  • Views 531

Page 1 of 1

Search found 12 matches