Posts

Opencart 3.0.2.0 While refereshing Theme cache and SASS cache

I was getting error : Trying to access array offset on value of type null in C:\xampp\htdocs\testoc3020\storage\vendor.scss.inc.php on line 1753 Solution : I changed the code in following file in [your opencart storage folder] /vendor/scss.inc.php in following function. code changed is orange color. protected function sortArgs($prototype, $args) { $keyArgs = array(); $posArgs = array(); foreach ($args as $arg) { if(is_array($arg)){ list($key, $value) = $arg; } else { $value = ""; } $key = (is_array($key) && isset($key[1])) ? $key[1] : null; if (empty($key) || is_null($key)) { $posArgs[] = $value; } else { $keyArgs[$key] = $value; } } if (!isset($prototype)) return $posArgs; $finalArgs = array(); foreach ($prototype as $i => $names) { if (isset($posArgs[$i])) { $finalArgs[] = $posArgs[$i]; continue; } $set = false; foreach ((array)$names as $name) { if (isset($k

Opencart Checkout Error iso_code_2 Undefined or iso_code_3 Undefined regarding UPS and USPS shipping method

Hi, if you getting any error like  iso_code_2 Undefined or iso_code_3 Undefined in opencart version 2.3.0.2 regarding UPS and USPS shipping method. or like this error Notice: Undefined index: iso_code_2 in /home/aromis5/public_html/catalog/model/extension/shipping/usps.php on line 36Notice: Undefined index: iso_code_2 in /home/aromis5/public_html/catalog/model/extension/shipping/usps.php on line 286Notice: Undefined index: iso_code_2 in /home/aromis5/public_html/catalog/model/extension/shipping/ups.php on line 147Notice: Undefined index: iso_code_2 in /home/aromis5/public_html/catalog/model/extension/shipping/ups.php on line 147 ------------------------------------------ Notice: Undefined index: iso_code_2 in /home/aromis5/public_html/catalog/model/extension/shipping/usps.php on line 36Notice: Undefined index: iso_code_2 in /home/aromis5/public_html/catalog/model/extension/shipping/usps.php on line 286Notice: Undefined index: iso_code_2 in /home/aromis5/public_html/catalog/model

Delete any files and folder forcefully

Use the command Prompt for this command -------------------------------------------------------------- For Deleting the file. DEL /F /Q /A name_of_the_file DEL /F /Q /A C:\Users\HP1\Documents\file.txt For Deleting the folder RD /S /Q name_of_the_folder RD /S /Q C:\Users\HP1\Documents\folder1

How to Import Large SQL file in mysql in Xampp Server

Open Command Prompt Type:  cd c:\xampp\mysql\bin Now I am showing you main command for import SQL file with the explanation . mysql -u {DB-USER-NAME} -p {DB-NAME} < {db.file.sql path} or if it's on a remote server use the -h flag to specify the host. mysql -u {DB-USER-NAME} -h {MySQL-SERVER-HOST-NAME} -p {DB-NAME} < {db.file.sql path} In my case i used this command to import sql.  mysql -u root -p opencart < client_db_file.sql here i directly put sql file in this folder c:/xampp/mysql/bin since while I was putting path it was not working for me. so I moved the SQL file in the same folder and it worked perfectly for me. Enjoy 😅😆

how to get value from CDATA with simplexmlelement in XML in php

it is a very simple thing. just get cast the value in string that's it see the example below:- <Product_Model> <![CDATA[WH4-P2649]]> </Product_Model> you must have all xml value in given below variale. $productsxml = simplexml_load_string($productsxml); now cast the tag like this . (string) $product->Product_Model; you will surely get your disered result. enjoy 😆😇

How can I print all value of an array in smarty template in prestashop

use this below code you can print it easily <pre> {$variablename|@print_r} </pre>

add google map without api or embed google map using php code

we can add google map without using API or embed google map. Benefit:- No need to get headache for google map API Loss:- it will show the only map. it will not show the marker on the map. here is the given below code <iframe width="100%" height="auto" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.it/maps?q= <?php echo $location; ?> &output=embed"></iframe> where $location is the address that will come through PHP or you can directly put a static