How to Add New Page in Zencart?

Hi this is take some more steps. You follow  very carefully.

1.  C:your_folderincludestemplatesyour_templatetemplatesyour_file.php
2.  C:your_folderincludesfilenames.php –>(Here mention your file name)
3.  C:your_folderincludesmodulespagesyour_page_folder –>(This Your Page Folder, You create here you header and script file also)
4.  C:your_folderincludeslanguagesenglishbusiness_edit.php

This is for the stapes in your page creation. If i found more information i can inform you.

how to create zencart page?

You can Add Just Below Instruction.

Add Header.php

And Add
includestemplatesnew_templatetemplatestpl_hereYourFile.php

And more Details Here : http://www.zen-cart.com/wiki/index.php/Creating_new_pages

http://lifefeed.net/zencart/static_page.php

http://tutorials.zen-cart.com/index.php?article=142

http://tutorials.zen-cart.com/

http://www.radebatz.net/mano/2007/07/17/howto-creating-static-pages/

http://tutorials.zen-cart.com/index.php?article=117

http://www.zen-cart.com/forum/showthread.php?t=128705

enjoy.

How to Set the Customer Autentication Status in Zencart?

Hi,

You Just go to Admin:

Admin -> Configuration -> Click the Customer Details
Here What you want to change your style.

Particularly Authentication is “Customer Approval Status – Authorization Pending” –> This filed inside available.

thanks, this is finished.

How to Set Zencart Minum Values & Javascript Validation Checkup?

Go to Admin :
Admin -> Configuration -> Minimum Values -> Entry First Name Min Length -> Catalog

You can set here the values. Then where you want to set the Javascript Validation in your Style.

More Details Reference : http://www.zen-cart.com/wiki/index.php/Admin_-_Configuration_-_Minimum_Values_-_Entry_First_Name_Min_Length_-_Catalog

How to Add a field into create account in Zencart?

Below Some Example i found i so this. This is useful for all.

1. You Go to PHPMYADMIN and select your database.
2.And Select your database inside the table “customers”.

3. Now you see the “Customers” table structure Right Side Screen. Example “customers_id”  Something like this.
And add your new filed this table inside. You can set here what type filed value need. Ex :
“VarChar”,  Collation = (latin), This type you can set.

Then You click  “SAVE”

4. Now You Open file includes/modules/YOURTEMPLATE/create_account.php
(Sometime this is controlling in includes/modules/template_default  inside. So where you have control this file you can take your template style via.)

5 . Now search for the following:
$firstname = zen_db_prepare_input($_POST[‘firstname’]);
Once you find out this, You can add your new filed this filed below or above.
Ex: [$lastname = zen_db_prepare_input($_POST[‘lastname’]);]

6. Next search for:
‘customers_firstname’ => $firstname,
Once you find out this, You can add your new filed this filed below or above.
Ex: [‘customers_lastname’ => $lastname]

7.  Now open file: includes/tamplates/YOURTEMPLATE/templates/tpl_module_create_account.php
Just add below type code which “LEGEND” inside that is your choice:
Ex :
<label for=”lastname”><?php echo ENTRY_LASTNAME; ?></label>
<?php echo zen_draw_input_field(‘lastname’, ”, zen_set_field_length(TABLE_CUSTOMERS, ‘customers_lastname’, ’40’) . ‘ id=”lastname”‘) . (zen_not_null(ENTRY_LASTNAME_TEXT) ? ‘<span>’ . ENTRY_LASTNAME_TEXT . ‘</span>’: ”); ?>
<br />

You want to change OR Add This type “ENTRY_LASTNAME”, You can go includes/languages/english.php inside. There the settings created.

8. Once You finished the above Section You go to admin/customer.php, Then Edit this file:
This file viewing the database details in your adminstator purpose.

Here you can find below type, once you got it you can add you field same below type :
a.) $customers_firstname = zen_db_prepare_input($_POST[‘customers_firstname’]);
b.) c.entry_country_id, c.customers_firstname, c.customers_lastname
c.) if (strlen($customers_firstname) < ENTRY_FIRST_NAME_MIN_LENGTH) {
$error = true;
$entry_firstname_error = true;
} else {
$entry_firstname_error = false;
}
d.) ‘customers_firstname’ => $customers_firstname,
e.) var customers_firstname = document.customers.customers_firstname.value;
f.) if (customers_firstname == “” || customers_firstname.length < <?php echo ENTRY_FIRST_NAME_MIN_LENGTH; ?>) {
error_message = error_message + “<?php echo JS_FIRST_NAME; ?>”;
error = 1;
}
g.) <tr>
<td><?php echo ENTRY_FIRST_NAME; ?></td>
<td>
<?php
if ($error == true) {
if ($entry_firstname_error == true) {
echo zen_draw_input_field(‘customers_firstname’, $cInfo->customers_firstname, zen_set_field_length(TABLE_CUSTOMERS, ‘customers_firstname’, 50)) . ‘&nbsp;’ . ENTRY_FIRST_NAME_ERROR;
} else {
echo $cInfo->customers_firstname . zen_draw_hidden_field(‘customers_firstname’);
}
} else {
echo zen_draw_input_field(‘customers_firstname’, $cInfo->customers_firstname, zen_set_field_length(TABLE_CUSTOMERS, ‘customers_firstname’, 50), true);
}
?></td>
</tr>

This type search. Then you can do this place in your field add. Then you will get good work. And more you can find insert here.

And more discussion going here :
http://www.zen-cart.com/forum/showthread.php?t=73181&page=2

Additional How to add CheckBox  in Zencart Form :
———————————————————————
<?php echo zen_draw_checkbox_field(‘wshop’, ‘1’, $wshop, ‘id=”wshop-checkbox”‘); ?>
<?php echo zen_draw_textarea_field(‘customers_WYOURMESSAGE’, ’10’, ‘5’, ”, zen_set_field_length(TABLE_CUSTOMERS, ‘customers_wyourmessage’, ”). ‘id=”customers_wyourmessage”‘) . (zen_not_null(ENTRY_BUSINESS_WYOURMESSAGE_TEXT) ? ‘<span>’ . ENTRY_BUSINESS_WYOURMESSAGE_TEXT . ‘</span>’: ”); ?>

Final Working Files :
——————————————————-
C:workfreelancerwww.yoururl.comyourfolderincludeslanguagesenglish.php
C:workfreelancerwww.yoururl.comyourfolderincludesmodulestemplate_defaultcreate_account.php
OR
C:workfreelancerwww.yoururl.comyourfolderincludesmodulesnew_templatecreate_account.php
C:workfreelancerwww.yoururl.comyourfolderincludestemplatestemplate_defaulttemplatestpl_modules_create_account.php
C:workfreelancerwww.yoururl.comyourfolderincludesform_check.js.php
C:workfreelancerwww.yoururl.comyourfolderadmincustomers.php
C:workfreelancerwww.yoururl.comyourfolderadminincludeslanguagesenglish.php
C:workfreelancerwww.yoururl.comyourfolderincludesmodulespagescreate_accountjscript_form_check.php <-- (JS Error Check UP File). Database name : Customers

How to solve Warning: mail() has been disabled for security reasons?

You go and run phpinfo(), in your server.

There check  “disable_functions“. That place the server side disabled the “mail“.
You have permission to write php.ini, You enable the “mail“.
If you have no permission, inform to server guys for this.

Then check. Basically this is the problem. Other things we check later.

Welcome to all peaceful life.

Zencart Layout Settings

http://www.zen-cart.com/wiki/index.php/Admin_-_Configuration_-_Layout_Settings

© 2020 Spirituality