Zen Follower
- Join Date:
- Nov 2007
- Location:
- Toulouse - France
- Posts:
- 112
- Plugin Contributions:
- 0
How to modify the display order of the Informations sidebox links?
How to modify the display order of the Informations sidebox links?
Views: 1,959
Zen Follower
How to modify the display order of the Informations sidebox links?
Zen Follower
It's impossible?
Oba-san
Sideboxes have two parts:
/includes/modules/sideboxes
/includes/templates/template_default/sideboxes
You need to copy the one you need changed, not all of them, to your templates and overrides directories:
/includes/modules/sideboxes/your_template_dir
/includes/templates/your_template_dir/sideboxes
and then you can customize them ...
Somethings, like changing the order of the Information sidebox is done in the module file while other changes may be done in the template ...
Zen Follower
Ajeh:
Sideboxes have two parts:
/includes/modules/sideboxes
/includes/templates/template_default/sideboxesYou need to copy the one you need changed, not all of them, to your templates and overrides directories:
/includes/modules/sideboxes/your_template_dir
/includes/templates/your_template_dir/sideboxesand then you can customize them ...
Somethings, like changing the order of the Information sidebox is done in the module file while other changes may be done in the template ...
Is this correct also when I just want to remove a link from the information sidebox?
For example, I would like to "turn off" the Discount Coupon link. I would like to do so in a way that it would be easy for me (or the store admin) to turn it on again when I decide to provide this feature. I looked at includes/modules/sideboxes/information.php and it seems that this can be controlled via the admin console?
// 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>';
}
Is my observation correct? If so, where do I find the DEFINE_DISCOUNT_COUPON_STATUS option in the admin console?
Thanks,
Daniel
Oba-san
Instead of touching the code, just remove the Discount Coupons in the Modules ... Order Totals ... Discount Coupons ot_coupon ... by clicking on that and clicking REMOVE ... then the link will not show ...
If you want to use Discount Coupons but want to remove the link, look in the Configuration ... Define Status ...
Enable the Defined Discount Coupon Link/Text?
0= Link ON, Define Text OFF
1= Link ON, Define Text ON
2= Link OFF, Define Text ON
3= Link OFF, Define Text OFF
Zen Follower
Linda, thank you so much for your reply. As you can see, it is very confusing for a newbie to Zen Cart like me to know (or remember) which feature is controllable via the Admin Console and which part must utilize the Override System.
Thank you again - your tips are very helpful.
Daniel
Zen Follower
Some update: I tried to disable the Discount Coupons module via Modules > Order Total. This can't be done - there is only one radio button, always checked on true.
So, I used your other suggested method to remove the link from the Information Sidebox:
Configuration > Define Page Status:
Define Discount Coupon: 3 (OFF, OFF)
Now, I would like to remove the link for Gift Certificate FAQ. Is there a way to accomplish this via the Admin Console?
Thanks,
Daniel
Oba-san
If you click on the Discount Coupon ot_coupon and click REMOVE it will not be installed ... :smile:
If you click on the Gift Certificates ot_gv and click on REMOVE then it will not be installed either ...
Zen Follower
Ajeh:
If you click on the Discount Coupon ot_coupon and click REMOVE it will not be installed ... :smile:
If you click on the Gift Certificates ot_gv and click on REMOVE then it will not be installed either ...
OMG - how could have I been so blind? :blush: Yes, now I see it (duh!)
BTW, using the previous method to remove the Discount Coupon from the Information Sidebox:
Configuration > Define Page Status:
Define Discount Coupon: 3 (OFF, OFF)
The link was indeed removed from the sidebox, but not from the site map. Is this a bug or have I missed something (again)?
Also, if I uninstall a module, is it easy to install it back? As easy as clicking an [+install] button without having to download the module separately, uploading it to my web site, etc.?
Thanks!
Daniel
Oba-san
If not using the Discount Coupons, do remove them ...
As to the Link that is not setup the same way on the Site Map ... it used the fact it is installed or not:
<?php if (MODULE_ORDER_TOTAL_COUPON_STATUS == 'true') { ?>
<li><?php echo '<a href="' . zen_href_link(FILENAME_DISCOUNT_COUPON) . '">' . BOX_INFORMATION_DISCOUNT_COUPONS . '</a>'; ?></li>
<?php } ?>
Tell staff why this post should be reviewed.