Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 06-02-2002 06:42:24

Guest
Guest

Special

I'd like to include the specials on my splash page. Since they change often, what would be the coding I would insert on the splash page so that they change as they do on interior pages?

Thanks!

 

#2 06-03-2002 15:00:10

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19967
Website

Re: Special

Make the file:

./cgi-bin/library/modules/site_custom.pl

look like this:

#######################################################################
# Sub Site Custom                                                     #
#######################################################################

sub site_custom {

#########
######### This routine is used to insert custom code at the bottom
######### of HTML pages.  In order to insert code in a given page,
######### just reference the HTML page name as follows:
#########
######### if ($fd_pg eq "PAGE-NAME-HERE") { CUSTOM-CODE-HERE }
#########

if ($fd_pg eq "splash") {

require "$library_path/modules/site_store.pl";
require "$library_path/modules/site_store_specials.pl";
require "$library_path/modules/site_store_cart_contents.pl";
require "$library_path/modules/site_store_small_display.pl";

&site_store_specials_footer_display;

} ######### End of if statment.

}

#######################################################################
# Return True Value For End Of File                                   #
#######################################################################

1;


Nick Hendler

Offline

 

Board footer