Posts

Showing posts from 2016

Opencart Vqmod Attribute,Position

Vqmod Attributes: 1.  attribute "error"  = this is three types  log|skip|abort .  skip  =  skip means it will simply ignore this file. log =  log is the same as skip. but logs the error. (default) abort   =  abort means to log the error and cancel the remaining operations in that particular xml script. 2.  attribute "position"  = this is seven types  before|after|replace|top|bottom|ibefore|iafter .  before  =  before will insert the add data before the search data. after  =  after will insert the add data after the search data replace  =  replace will replace the data in the search tag with the data in the add tag. (default) top  =  top will insert the add data at the top of the file. The search data is ignored. bottom  =  bottom will insert the add data at the bottom of the file. The search data is ignored. ibefore  =  ibefore will insert the code before the search inline instead of the line before iafter  =  iafter will insert the code after

Opencart and Opebay Pro Error with Ebay,Amazon,Etsy, on Viewing Order

Image
I was Getting this error on Viewing Order on Openbay Pro Fatal error: Class 'Controllerpayment' not found in /home/xxxx/public_html/vqmod/vqcache/vq2-system_storage_modification_system_engine_loader.php on line 36 This error was coming Opencart Version 2.1.0.2 . so I found this is opencart default error. and its solution is already given in Openart Latest Version 2.3.02.  It was Default Opencart Error for Openbay Pro. This error has been solved in Opencart Version 2.3.0.2 so I modified the code according to that. See Code Details here OLD CODE: --------------------------------- // Additional Tabs $data['tabs'] = array(); $this->load->model('extension/extension'); $content = $this->load->controller('payment/' . $order_info['payment_code'] . '/order'); if ($content) { $this->load->language('payment/' . $order_info['payment_code']); $data['tabs'][] = array

opencart 2.0.3.1 to 2.3.0.2 upgradation error

I got this error after up-gradation from opencart 2.0.3.1 to 2.3.0.2. Fatal error: Uncaught exception 'Exception' with message 'Error: Could not load model total!' in C:\xampp\htdocs\deleteme\system\engine\loader.php:169 Stack trace: #0 [internal function]: Loader->{closure}(Array, Array) #1 C:\xampp\htdocs\deleteme\system\engine\proxy.php(25): call_user_func_array(Object(Closure), Array) #2 C:\xampp\htdocs\deleteme\catalog\controller\common\cart.php(37): Proxy->__call('getTotal', Array) #3 C:\xampp\htdocs\deleteme\catalog\controller\common\cart.php(37): Proxy->getTotal(Array) #4 [internal function]: ControllerCommonCart->index(Array) #5 C:\xampp\htdocs\deleteme\system\engine\action.php(51): call_user_func_array(Array, Array) #6 C:\xampp\htdocs\deleteme\system\engine\loader.php(24): Action->execute(Object(Registry), Array) #7 C:\xampp\htdocs\deleteme\catalog\controller\common\header.php(129): Loader->controller('common/cart') #8 [inte

cPanel Cron Job || How to use cron job in Cpanel

For Taking Backup of MySQL   mysqldump --opt -Q -u yoursitesqlusername -p' yoursitesqlpassword ' yoursitesqldatabasename > /home/aaromis/backups/databasebackupname_`date +%Y_%m_%d`.sql For Taking Backup of FILES   #!/bin/bash tar czf ~/backups/backup_`date +%Y_%m_%d`.tgz ~/public_html In Cron Job Page Set Email,Unix Command Script File Path,Time ~ /backups/backup.sh   Where backups is foldername and backup.sh is Unix Command Script File name

Magento Help Files and Extension

Turn on the template path hints for frontend & backend by using this extension :-   Easy Template Path Hints (For below Magento Version 2.x) download me   Learning Magento Version 1.8,1.9 Version PDF :-     Magento- Beginner's Guide, 2nd Edition.pdf   download me  ,  Getting Started with Magento Extension Development.pdf   download me Learn Magento Version 2.0 PDF :-     Magento 2 Development Essentials 2016 .pdf   download me

Wordpress all Functions

https://codex.wordpress.org/Category:Functions
STAR LOGIC Programming PHP  INPUT <?php for($i=4;$i>=1;$i--){ for($j=1;$j<=$i;$j++){ echo "&nbsp;\t"; } for($k=4;$k>=$i;$k--){ echo "*"; echo "&nbsp;\t"; } echo "<br/>"; } for($l=1;$l<=4;$l++){ for($m=1;$m<=$l;$m++){ echo "&nbsp;\t"; } for($n=4;$n>=$l;$n--){ echo "*"; echo "&nbsp;\t"; } echo "<br/>"; } ?>  OUTPUT         *        *  *      *  *  *    *  *  *  *    *  *  *  *      *  *  *        *  *          *

Opencart Affiliate Program

Image
Opencart Store affiliate program is free and enables members to earn revenue by placing a link or links on their web site which advertises Your Store or specific products on it. Any sales made to customers who have clicked on those links will earn the affiliate commission. The standard commission rate is currently 5% NOTE:- There is no necessary to a Customer to be affiliate mean Any body can be an affiliate to earn commission money from site. and Customer can also be affiliate by registering sepreatly as an Affiliate. * Activate and configure your OpenCart affiliate program and manage your affiliates Description :  please login your OpenCart admin and Go to System-> Settings Page and    edit your store and select the Options tab  In the Options tab scroll down to the Affiliate section and change setting according to your choice for affiliate program.  When you are done with your settings. your can sign up as affiliate from frontend by going to the footer menu link  Aff

Magento 2 images,logo,font awesome,CSS and JavaScript not loading

Image
I was facing this  problem when I install Magento version 2. there solution is so simple 1. Open DOS Command Prompt from Xampp Control Panel. Now Type this command:- cd htdocs/ (your folder name) PRESS ENTER php bin/magento setup:static-content:deploy PRESS ENTER 2.  Or We can try this second way. We have to delete caches and sessions of Magento version 2. Go to following paths and delete everything: ROOT > var > cache > *DELETE ALL* ROOT > var > page_cache > *DELETE ALL* ROOT > var > session > *DELETE ALL* When Magento 2 is not in production mode, it will try to create symlinks for some static resources on local server. We have to change that behavior of Magento 2 by going to edit  ROOT > app > etc > di.xml  file. Open up  di.xml  in your favorite code editor, find the  virtualType name="developerMaterialization"  section. In that section below, you will find an item  <item name="view_preprocessed" xsi:type=

unexpected end of json input in Opencart Admin Order Edit

Image
Hi, I am getting this error in Opencart Edit order in Admin as javascript alert  unexpected end of json input . I found this  solution by just adding API in System-> Users->API . then select this api in System->Settings->[Edit]Store->Option Tab->Checkout Section . then I checked again by editing any order in admin. I didn't get error  again.My error has been fixed. For more detail of this  this follow given below link:-  https://www.fastcomet.com/community/opencart-2-error-syntaxerror-unexpected-end-of-input-ok/ 2. or the second solution for the same problem I found by fixing language character. I had spanish language installed where some character is generating this error. so I changed that character and problem has been fixed like !,~,`,^ etc.

Woocommerce reset password button not working- Wordpress

Image
I was facing problem that woo-commerce reset password button was not working. it was always showing disabled.when I click on button it also not showing any error that we need email address to reset password. I fixed it on my own. I found that woo-commerce cart page is selected as my account page in admin in woo-commerce setting page. also in cart page have short code  [woocommerce_cart]   and  [woocommerce_my_account] .so both shortcode was collapsing to each other. so I removed  [woocommerce_my_account]   shortcode from cart page and also I set my account page for my account page in woo-commerce setting page. Now its working fine. :)

Important Point about Multi store in Opencart

Main Store should to be in root folder like /public_html/ While adding new store in Opencart Admin URL must to be like this http://blumats.devinlabs.com/ not like this http://blumats.devinlabs.com Since by default opencart not assign any product or store so you would have to assign manually categories,product,module each thing sepreatly to new store.

Hindi Language or any other language than English making problem with Captcha code in Website Showing Quirks mode

Image
Select Encoding type of code as Encode in UTF-8 without BOM instead of   Encode of UTF-8 It will solve the problem with the translation of any page in any language  There is also given some Locale code of language list here:- Locale Code of all language What's different between UTF-8 and UTF-8 without BOM? Short answer: In UTF-8, a BOM is encoded as the bytes EF BB BF at the beginning of the file. Long answer: Originally, it was expected that Unicode would be encoded in UTF-16/UCS-2. The BOM was designed for this encoding form. When you have 2-byte code units, it's necessary to indicate which order those two bytes are in, and a common convention for doing this is to include the character U+FEFF as a "Byte Order Mark" at the beginning of the data. The character U+FFFE is permanently unassigned so that its presence can be used to detect the wrong byte order. UTF-8 has the same byte order regardless of platform endianness, so a byte order mark isn&#

Opencart Admin Login problem if username and password is still correct

I found I am not able login Opencart Admin since Username and Password is correct. This is problem due to root htaccess is redirecting to https:// and my sub folder have no any htaccess so if in our code have http:// URL setting then it will redirect https:// and cann't login to Admin if user and password is correct. it would only redirect to login page again and again. SOLUTION:-  1. put htaccess in subfolder OR WE CAN TRY 2. make url as http:// to https:// so that it will work for both. 

Change Localhost Apache XAMPP Port 80 to 1234

Note:-   From This Process You can install multiple Xampp in Single Computer or Drive. 1. Open XAMPP Control Panel. 2. To    O pen the Apache "httpd.conf" file   click the “Config” button next to Apache “Start” and “Admin” buttons in Xampp Control Panel that would be like this :- Apache(httpd.conf) In the popup menu that opens, click and open httpd.conf 3.  Within the httpd.conf file search for “listen”. You’ll find two rows with something like; #Listen 12.34.56.78:80 Listen 80 Change the port no to a port no. of your choice (e.g. port 1234) like below #Listen 12.34.56.78:1234 Listen 1234 4. Next, in the same httpd.conf file look for “ServerName localhost:” Set it to the new port no. ServerName localhost:1234 5.  Save and close the httpd.conf file. 6.  Now click the Apache config button again and open the “httpd-ssl.conf” file. 7. In the httpd-ssl.conf file, look for “Listen” again. You may find: Listen 443 Change it to listen on a new port no o