If this is your first visit, check our documentation. To post, register or login.
Forums / Customization from the Admin / Where are the admin settings for what to show when cart is empty?

Where are the admin settings for what to show when cart is empty?

Locked

Started by dhcernese on 14 Sep 2007, 5:31 PM · Views: 2,870

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
14 Sep 2007, 5:31 PM
#1
dhcernese avatar

dhcernese

Zen Follower

Join Date:
Mar 2007
Location:
Pepperell, Massachusetts
Posts:
232
Plugin Contributions:
0

Where are the admin settings for what to show when cart is empty?

v1.3.6

I wanted to surpress some of the sections that are shown when your shopping cart it empty.. ..such as when a customer deleted eveything from their cart.

It appears in tpl_shopping_cart_default.php that there are configuration settings for the following:

  Searching 903 files ... for: SHOW_SHOPPING_CART_EMPTY  **C:\Inetpub\vhosts\sacredfiremag.com\httpdocs/shop/includes/classes/db/mysql/define_queries.php**

Line #34 : DEFINE('SQL_SHOW_SHOPPING_CART_EMPTY',"select configuration_key, configuration_value from " . TABLE_CONFIGURATION . " where configuration_key RLIKE 'SHOW_SHOPPING_CART_EMPTY' and configuration_value > 0 order by configuration_value");
C:\Inetpub\vhosts\sacredfiremag.com\httpdocs/shop/includes/templates/template_default/templates/tpl_shopping_cart_default.php
Line #177 : $show_display_shopping_cart_empty = $db->Execute(SQL_SHOW_SHOPPING_CART_EMPTY);

Line #183 : if ($show_display_shopping_cart_empty->fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_FEATURED_PRODUCTS') { ?>

Line #193 : if ($show_display_shopping_cart_empty->fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_SPECIALS_PRODUCTS') { ?>

Line #203 : if ($show_display_shopping_cart_empty->fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_NEW_PRODUCTS') { ?>

Line #213 : if ($show_display_shopping_cart_empty->fields['configuration_key'] == 'SHOW_SHOPPING_CART_EMPTY_UPCOMING') {

..but I couldn't find where to set these in admin. I couldn't even find them searching through the admin files.

Do I have to modify the database by hand?
:blink:

15 Sep 2007, 3:14 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Where are the admin settings for what to show when cart is empty?

You can quick-locate those constants (ie: SHOW_SHOPPING_CART_EMPTY_FEATURED_PRODUCTS) via the developers toolkit (Admin->Tools) by pasting the constant name in the "Look up Constant" box, and pressing Enter.

You'll find that they're all in Admin->Configuration->Stock

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Sep 2007, 1:38 PM
#3
dhcernese avatar

dhcernese

Zen Follower

Join Date:
Mar 2007
Location:
Pepperell, Massachusetts
Posts:
232
Plugin Contributions:
0

Re: Where are the admin settings for what to show when cart is empty?

I searched many times, but I didn't think I had to use the lookup contant search.. ..that's strange.

The admin menus for Zen-Cart are some of the most bizzare nightmere-ish arrangement of mixed up concept I've ever seen (and I've seen a lot). I can't believe someone hasn't rearranged them all to be more sensible, it's completely absurd.

15 Sep 2007, 7:08 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Where are the admin settings for what to show when cart is empty?

dhcernese:

The admin menus for Zen-Cart are some of the most bizzare nightmere-ish arrangement of mixed up concept I've ever seen (and I've seen a lot). I can't believe someone hasn't rearranged them all to be more sensible, it's completely absurd.

Thank you. We know. You'll notice on our Development Roadmap that we've dedicated an entire release to a rewrite of the admin in the near future.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

16 Sep 2007, 1:31 PM
#5
dhcernese avatar

dhcernese

Zen Follower

Join Date:
Mar 2007
Location:
Pepperell, Massachusetts
Posts:
232
Plugin Contributions:
0

Re: Where are the admin settings for what to show when cart is empty?

Thanks for the roadmap update!