The Official Website of AgoraCart and Agora.cgi
AgoraCart.com Demos Download AgoraCart User Manuals & Wiki Gold Members Forum Go Gold Now! Gold Version Memberships

AgoraCart.com

About
Features
Download
Payment Gateways
Send a Donation
Founders Club
BLOG: News & Updates

Showcases & Demos

AgoraCart Demos
Shop Live Stores

Downloads & Add-ons

Gold Version Downloads
DBwizz Database Mgr.
AgoraCart.com Store

Help & Support

User Manuals
Gold Version Users Forum
Gold Version Chat
Tech Support
Certified Agora Pros
Certified Designers
Hire a Freelancer

Gold Version Members

Member Benefits
Join Today!
Gold Members Home
Gold Version Users Forum
Gold Version Chat Rooms
Gold Version Downloads

For Store Owners

Merchant Accounts
Cool Resources
Advertise Here
"Powered by" Logos
Web Hosting Search

Misc.

Contact Us
MEET's Talking Guide
The Ancient Greek Agora






AgoraCart Free User Forums

This is the official FAQ and Cool Tips guide For the AgoraCart shopping Cart software


Official Sponsors of the AgoraCart Project:

       


RegisterSearchFAQLog in
Reply to topic Page 1 of 1
store_header.inc problems
Author Message
Reply with quote
Post store_header.inc problems 
I am using different headers for each catagory. My store_header-std.inc file seems to be fine. However, when I view the page online, it has several items that I once had on the page, but have deleted. How can I deleted them from the page.

The URL is http://www.ethingamajigs.com/agora/agora.cgi

The 3 items below the hearts line should not be there. I do not have them in the file.

Please help. Thanks
Tom

Reply with quote
Post  
Remove the following code from the header-std file and any other header files you may have it in:
Code:
<html>
<head>
<title>AgoraCart 4.0K-4b Standard</title>
</head>

<body BGCOLOR="#ffffff">

AND, at the top:
Code:
</table></center>


Also, several places I can see that the cart_id has been coded into the header, this poses a security risk and MUST be fixed:
In the search box area:
Code:
<input TYPE="hidden" NAME="cart_id" VALUE="3445453.16007*Ra3ox7">

Should be:
Code:
<input TYPE="hidden" NAME="cart_id" VALUE="">


This code should be replaced:
Code:
&nbsp;&nbsp;<a href="agora.cgi?cart_id=3445453.16007*x06Sy3&product=Diamonds"> Diamonds </a><br>
&nbsp;&nbsp;<a href="agora.cgi?cart_id=3445453.16007*i750N0&product=Miscellaneous"> Miscellaneous </a><br>
&nbsp;&nbsp;<a href="agora.cgi?cart_id=3445453.16007*pD5T48&product=Timepieces"> Timepieces </a><br>

With:
Code:
      <!--agorascript-pre { # code to count up the CART contents
local(%db_ele,$sku,$category,%category_list);
if (!($sc_db_lib_was_loaded =~ /yes/i))
 { &require_supporting_libraries (__FILE__, __LINE__, "$sc_db_lib_path"); }
&capture_STDOUT;
&get_prod_db_element($db{"product"},*db_ele);
foreach $sku (keys %db_ele) {
  $category = $db_ele{$sku};
  $category_list{$category}++;
}
foreach $category (sort(keys %category_list)) {
   $category2 = $category;
  $category2=~s/_/ /g;
  print "&nbsp;&nbsp;<a href=\"agora.cgi?cart_id=%%cart_id%%&product=",
    "$category\">$category2 </a>\n";
}
&uncapture_STDOUT; }
-->


The following code needs to be replaced:
Code:
&nbsp;&nbsp;<a href="http://www.ethingamajigs.com/agora/agora.cgi?cart_id=3445453.16007*m25FQ33445453.16007" >Home</a>
<br>&nbsp;&nbsp;<a href="http://www.ethingamajigs.com/agora/agora.cgi?cartlink=Contact_Us.htm&cart_id=3445453.16007*VC21503445453.16007"  >Contact Us</a>
<br>&nbsp;&nbsp;<a href="http://www.ethingamajigs.com/agora/agora.cgi?cartlink=About_Us.htm&cart_id=3445453.16007*CW5CE43445453.16007"  >About Us</a>
<br>&nbsp;&nbsp;<a href="http://www.ethingamajigs.com/agora/agora.cgi?cartlink=Return_Policy.htm&cart_id=3445453.16007*MY6-W23445453.16007"  >Return Policy</a>


With:
Code:

<!--agorascript-pre
&capture_STDOUT;
&cartlinks;
  print "<font face=\"Arial\" size=\"2\">";
$cartlinks =~ s/<br>/<br>&nbsp;&nbsp;/ig;
# take make links underlined
$cartlinks =~ s/style=\"text-decoration: none\"//ig;
# to layout horizontally with 3 spaces
# $cartlinks =~ s/<br>/&nbsp;&nbsp;&nbsp;/ig;
# to layout horizontally with | dividers spaces
# $cartlinks =~ s/<br>/&nbsp;&nbsp;|&nbsp;&nbsp;/ig;
print "&nbsp;&nbsp;";
print $cartlinks;
  print "</font>";
&uncapture_STDOUT;  -->


The 3 things under the hearts line is the stuff in your index.html file found in the 'html' directory.
You should REALLY take a look at the following thread:
http://www.agoraguide.com/faq/viewtopic.php?t=1310

Your html has got a lot of errors. I see places where a <TD> has not been closed or tables that were closed too many times... etc...

Get your headers and footers set up properly and everything else will fall into place.

HTH![/code]


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post store_header.inc problems 
Bonnie,

Thank you. You are the GREATEST!!!

That fixed my store_header.inc problems.

I had looked for a file that contained those 3 items, but my index.html file had the wrong permissions so I didn't see anything.

Tom

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum