Removing Gift Certificate FAQ from sidebox in V1.3.8a
I just completed a v 1.3.8a clean install and want to remove "Gift Certificate FAQ" and "Discount Coupons" from the Information sidebox.
Several previous forum posts related to earlier ZenCart versions say to go to Admin->Modules->Order Total and de-install the related modules. I have verified that neither module was installed, yet the sidebox still lists these two items.
How do I remove these items from the Information sidebox in ZenCart 1.3.8a?
Ron
Re: Removing Gift Certificate FAQ from sidebox in V1.3.8a
WIth a standard Zen 138, and the standard template you need to remove both of these modules to remove the links. If you have another template installed over the top of your store, you may need to check these template files. The two files to check are includes/modules/sideboxes/YOUR_TEMPALTE/information.php and includes/tempaltes/YOUR_TEMPLATES/sideboxes/tpl_information.php. These are the files which determine and show the information links.
Zen 138 performs the following checks as standard, to determine whether or not to display the links:
// only show GV FAQ when installed
if (MODULE_ORDER_TOTAL_GV_STATUS == 'true') {
$information[] = '<a href="' . zen_href_link(FILENAME_GV_FAQ) . '">' . BOX_INFORMATION_GV . '</a>';
}
// only show Discount Coupon FAQ when installed
if (DEFINE_DISCOUNT_COUPON_STATUS <= 1 && MODULE_ORDER_TOTAL_COUPON_STATUS == 'true') {
$information[] = '<a href="' . zen_href_link(FILENAME_DISCOUNT_COUPON) . '">' . BOX_INFORMATION_DISCOUNT_COUPONS . '</a>';
}
Both of these constants: MODULE_ORDER_TOTAL_COUPON_STATUS and MODULE_ORDER_TOTAL_GV_STATUS only esist in the database if the modules are currently installed, and displaying in the admin under Modules >> Order Total with green dots.
Absolute
Re: Removing Gift Certificate FAQ from sidebox in V1.3.8a
Absolute:
Thanks for the very correct and concise response.
I am using the iC_AcadameV1.2 template, so following your guidance I did the following:
- Created new directory: includes/modules/sideboxes/iC_AcadameV1.2/
- Copied /includes/modules/sideboxes/information.php to
/includes/modules/sideboxes/iC_AcademeV1.2/information.php
- Created new directory: includes/templates/iC_AcadameV1.2/sideboxes/
- Copied /includes/templates/template_default/sideboxes/tpl_information.php to /includes/templates/iC_AcademeV1.2/sideboxes/tpl_information.php
When done, my Information Sidebox now displays correctly.
Ron
Re: Removing Gift Certificate FAQ from sidebox in V1.3.8a
That is good news - thanks for the update.
Absolute
Re: Removing Gift Certificate FAQ from sidebox in V1.3.8a
Hi, I am after removing these to. I have v1.3.7 how do I go about it?
Thanks in advance,
Jason.
Re: Removing Gift Certificate FAQ from sidebox in V1.3.8a
Under Modules >> Order Total, you will need to remove the coupon and gift cert modules.
If you just want to remove the links, and leave the modules installed, you will need to edit includes/modules/sideboxes/YOUR_TEMPALTE/information.php and includes/tempaltes/YOUR_TEMPLATES/sideboxes/tpl_information.php accordingly.
Absolute
Re: Removing Gift Certificate FAQ from sidebox in V1.3.8a
Done that now and it works. Thanks for your help.
Regards,
Jason.
Re: Removing Gift Certificate FAQ from sidebox in V1.3.8a
This is a more advanced solution. I dug through the php code behind the GV (gift voucher) module and found that there is a setting in the database that tells zen cart whether or not the gift voucher module is installed. If you have access to your database, (typically via phpMyAdmin or a similar tool) you can run the following SQL command to turn off the GV module.
UPDATE zen_configuration SET configuration_value='false' WHERE configuration_key = 'MODULE_ORDER_TOTAL_GV_STATUS'
Running this command will then turn it back on if you need it in the future:
UPDATE zen_configuration SET configuration_value='true' WHERE configuration_key = 'MODULE_ORDER_TOTAL_GV_STATUS'
Caution directly editing your database, if not done correctly can completely ruin your zen cart install. Make a backup first and don't use this method unless you are comfortable with making such direct database updates.
Re: Removing Gift Certificate FAQ from sidebox in V1.3.8a
kbaltrinic,
The MUCH SIMPLER way to do it is to just go to Admin->Modules->Order Total->Gift Certificates and click the Remove button.
No need to muck about with raw database changes like you've suggested.
And much less dangerous.
Re: Removing Gift Certificate FAQ from sidebox in V1.3.8a
I removing "Gift Certificate FAQ from sidebox in V1.3.8a"
as DrByte, Absolute and ronlee67 said:Admin->Modules->Order Total and de-install the "Gift Certificates" modules.
I removing "Discount Coupons" as below:Admin->Configuration->Define Page Status->Define Discount Coupon,and set "3= Link OFF, Define Text OFF"
I like this way and hope removing "Gift Certificate FAQ from sidebox" in V1.3.8b by this way.