When integrate wordpress in to zen cart using the Zen cart CEON module then we might face the problem in the URL of woprdpress pages, posts and other links.
To solve the above problem, just go to wordpress admin -> Settings -> Permalinks
From the permalink settings of wordpress admin, select Default and then Save Changes
<?php
$userAgent = strtolower($_SERVER['HTTP_USER_AGENT']);
// Identify the browser. Check Opera and Safari first in case of spoof. Let Google Chrome be identified as Safari.
if (preg_match(‘/opera/’, $userAgent)) {
$name = ‘opera’;
}
elseif (preg_match(‘/webkit/’, $userAgent)) {
$name = ’safari’;
…
here is simple script to remove extra white spaces from each field of database table and get log record of how many fields age getting affected ! !
Often when one installs the CMS Made Simple on an active server online; they face a problem with the Tiny MCE editor in the pages section and hence the content cannot be modified via the editor.
I have provided three known solutions to this problem:
1) Change the permission on the modules directory to 755 if it already isn’t.
2) Try uninstalling the Tiny MCE and reinstalling it.
3) Try uninstalling the Tiny MCE and replacing it with an older version.
To add the banners in the zencart just follow the three steps.
1. Open the zencart database and insert one record in the “Configurations” table.
Keep the configuration_id null(it will update automatically)
Write the title for e.g.’Banner Display Group All pages left‘ in configuration_title.Layout Settings on the Admin side.
In configuration_key write the tag ‘SHOW_BANNERS_GROUP_SET10‘
Note: SET10 is the id of sets of banner. Upto SET9 all are the default banners of zencart.Update the SET no. everytime you want to add banners such as SHOW_BANNERS_GROUP_SET11,SHOW_BANNERS_GROUP_SET12 and so on….
In the configuration_value write any value such as’left_banner2‘
Note …
Installing a language pack in magento can be done by selecting the key from the magento commerce or downloading it from a site.
Spanish language key given may be wrong
Recently I have face strange issue on wordpress which is “public_html/wp-includes/pluggable.php on line 868 wordpress issue” error at the time of login on wordpress website.
Issue: public_html/wp-includes/pluggable.php on line 868
Solution: This kind of error is normal for wordpress. This can occur due to some spaces after ?> ( end of php code ) in your php code files. So, you need to check your last accessed files and removed spaces if there and try again accessing that page. Hope it helps for wordpress developers.
- Tejas
Preparing Your system
sudo apt-get install gs pdftk
Now we will see one example how to combine pdf files
let us assume we have 1.pdf,2.pdf,3.pdf files and now we need to cobmine this files using the following command
gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combinedpdf.pdf -dBATCH 1.pdf 2.pdf 3.pdf
the output file will be combinedpdf.pdf
Rename “1.pdf 2.pdf 3.pdf” to whatever your file names are (separate your file names with a space).
If you want to know more options available for gs command check main page
Follow the below code to import mysql database using command line.
mysql -uUSERNAME -pDATABASE < DATABASE_FILE.SQL
Format: mysql -uroot -ppasword -hlocalhost database-name < sql_dump_file_name.sql
Correct Example: mysql -uroot -palakmalak -hlocalhost oca < cerb4oca.sql
Note: Do not go to mysql console. Just go to the directory where your backup file resides.
Note: Do not use -u space username like -u root ( this will not work ) use -uroot -ppassword -hlocalhost
Wrong Example: mysql -u root -p abc123 localhost < mytest.sql
where root is USERNAME of MySQL, abc123 is DATABASE of MyQL and mytest.sql is …
some has experienced that when clicked on some link blank page is displayed
that problem is there because of add page process of zencart
to add page in zencart we have to create four pages
* A new directory, includes/modules/pages/myNewPage/, containing a file called header_php.php
* A new file in the directory includes/templates/template_default/templates called tpl_myNewPage_default.php
* A new file, includes/extra_datafiles/myNewPage.php, defining your new page’s filename for the Zen Cart™ system
* A new language file, …