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.
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!
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;
Offline