How to modify the display order of the Informations sidebox links?
How to modify the display order of the Informations sidebox links?
It's impossible?
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 ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
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?
Is my observation correct? If so, where do I find the DEFINE_DISCOUNT_COUPON_STATUS option in the admin console?PHP Code:// 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>';
}
Thanks,
Daniel
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
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
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
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:
Now, I would like to remove the link for Gift Certificate FAQ. Is there a way to accomplish this via the Admin Console?Configuration > Define Page Status:
> Define Discount Coupon: 3 (OFF, OFF)
Thanks,
Daniel
If you click on the Discount Coupon ot_coupon and click REMOVE it will not be installed ...
If you click on the Gift Certificates ot_gv and click on REMOVE then it will not be installed either ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
OMG - how could have I been so blind?Yes, now I see it (duh!)
BTW, using the previous method to remove the Discount Coupon from the Information Sidebox:
The link was indeed removed from the sidebox, but not from the site map. Is this a bug or have I missed something (again)?Configuration > Define Page Status:
> Define Discount Coupon: 3 (OFF, OFF)
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
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 Code:<?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 } ?>
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Bookmarks