Zen Cart Logo
Forums / Basic Configuration / How to modify the display order of the Informations sidebox links?

How to modify the display order of the Informations sidebox links?

Locked

Views: 1,959

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
5 Jul 2008, 7:17 AM
#1
mikado avatar

mikado

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?

9 Jul 2008, 8:14 PM
#2
mikado avatar

mikado

Zen Follower

Join Date:
Nov 2007
Location:
Toulouse - France
Posts:
112
Plugin Contributions:
0

Re: How to modify the display order of the Informations sidebox links?

It's impossible?

9 Jul 2008, 8:18 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to modify the display order of the Informations sidebox links?

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 ...

10 Jul 2008, 2:09 PM
#4
zcnb avatar

zcnb

Zen Follower

Join Date:
Jun 2008
Posts:
338
Plugin Contributions:
0

Re: How to modify the display order of the Informations sidebox links?

Ajeh:

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 ...

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

10 Jul 2008, 2:12 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to modify the display order of the Informations sidebox links?

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

10 Jul 2008, 2:35 PM
#6
zcnb avatar

zcnb

Zen Follower

Join Date:
Jun 2008
Posts:
338
Plugin Contributions:
0

Re: How to modify the display order of the Informations sidebox links?

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

10 Jul 2008, 5:44 PM
#7
zcnb avatar

zcnb

Zen Follower

Join Date:
Jun 2008
Posts:
338
Plugin Contributions:
0

Re: How to modify the display order of the Informations sidebox links?

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

10 Jul 2008, 6:02 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to modify the display order of the Informations sidebox links?

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 ...

10 Jul 2008, 6:12 PM
#9
zcnb avatar

zcnb

Zen Follower

Join Date:
Jun 2008
Posts:
338
Plugin Contributions:
0

Re: How to modify the display order of the Informations sidebox links?

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

10 Jul 2008, 6:14 PM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to modify the display order of the Informations sidebox links?

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 } ?>