Posts

Showing posts from 2019

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

Cant use dump() function in twig files or how to enable debug in opencart twig or print_r alternate use dump() in opencart 3.0

if you are facing the following problem. Cant use dump() function in twig files  or  how to enable debug in opencart twig  or  print_r alternate use dump() in opencart 3.0 for fixing this problem follow these steps You can activate dump() function for twig environment by following these steps in opencart 3.0 : Go to system/library/template/Twig/Environment.php Here in the constructor function, you can find $options array . Set 'debug' option to 'true' . Now we need to include debug extension, so add $this->addExtension(new Twig_Extension_Debug()); below. Now you can use  {{ dump(your_variable_name) }} as print_r variable in php That's all 😅😆😛

getting error on table create on database migration in laravel

your error can be something like this:-  Syntax error or access violation:1071 Specified key was too long; max key length is 767 bytes  if you facing problem in creating table using database migration in laravel then follow the steps:- Go to app -> Providers -> Edit  AppServiceProvider.php Add given below line after  use Illuminate\Support\ServiceProvider; use Illuminate\Support\Facades\Schema;      3. add this line  Schema::defaultStringLength(191);   in this given below function     public function boot()     {              } Now you can run your database migration by this command 😅 php artisan migrate

Wordpress WooCommerce Shop page contains the following hooks:

Image
woocommerce_before_main_content woocommerce_archive_description woocommerce_before_shop_loop woocommerce_before_shop_loop_item woocommerce_before_shop_loop_item_title woocommerce_shop_loop_item_title woocommerce_after_shop_loop_item_title woocommerce_after_shop_loop_item woocommerce_after_shop_loop woocommerce_after_main_content ----------------------------------------------------