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 front - See what's inside the store display
Author Message
Reply with quote
Post store front - See what's inside the store display 
Hi,

I would like to stop the catagories in see whats inside the store repeating the display on the homepage. I have two images of each repeating as they rotate. How do I change this. I thought the code below might control the display but I am unsure how to change it. Appreciate your help. Thanks

See link:
http://www.detoxcoach.com//store/store5/agora.cgi

See code below:
Code:

<table width="280" border="0" align="center" cellpadding="0" cellspacing="1" class="template_mainbackground">
          <tr>
            <td  class="template_mainbackground"><span class="style7">See What's inside the Store:</span></td>
          </tr>
  <tr>
   <td bgcolor="#ffffff">
<table width="279" border="0" align="center" cellpadding="3" bgcolor="#FFFFFF">
  <tr>
   <td valign=top class="style6"><center>In $special1[1]:<br><br>
    <a href="agora.cgi?cart_id=&amp;p_id=$special1[0]&amp;xm=on">
   <img class="template_image_no_border" src="%%URLofImages%%/$image1" alt="$image1"></a></center></td>

   <td valign=top class="style6"><center>In $special2[1]:<br><br>
    <a href="agora.cgi?cart_id=&amp;p_id=$special2[0]&amp;xm=on">
   <img class="template_image_no_border"  src="%%URLofImages%%/$image2" alt="$image2"></a></center></td>

   <td valign=top class="style6"><center>In $special3[1]:<br><br>
    <a href="agora.cgi?cart_id=&amp;p_id=$special3[0]&amp;xm=on">
   <img class="template_image_no_border" src="%%URLofImages%%/$image3" alt="$image3"></a></center></td>

   <td valign=top class="style6"><center>In $special4[1]:<br><br>
    <a href="agora.cgi?cart_id=&amp;p_id=$special4[0]&amp;xm=on">
   <img class="template_image_no_border" src="%%URLofImages%%/$image4" alt="$image4"></a></center></td>

   </tr><tr>

   <td valign=top class="style6"><center>
   <a href="agora.cgi?cart_id=&amp;p_id=$special1[0]&amp;xm=on">$special1[3]</a></center></td>

   <td valign=top class="style6"><center>
   <a href="agora.cgi?cart_id=&amp;p_id=$special2[0]&amp;xm=on">$special2[3]</a></center></td>

   <td valign=top class="style6"><center>
   <a href="agora.cgi?cart_id=&amp;p_id=$special3[0]&amp;xm=on">$special3[3]</a></center></td>

   <td valign=top class="style6"><center>
   <a href="agora.cgi?cart_id=&amp;p_id=$special4[0]&amp;xm=on">$special4[3]</a></center></td>

   </tr><tr>

   <td valign=top class="style6"><center>
      Only $sc_money_symbol $special1[2]</center></td>

   <td valign=top class="style6"><center>
      Only $sc_money_symbol $special2[2]</center></td>

   <td valign=top class="style6"><center>Only $sc_money_symbol $special3[2]</center><\/td>

   <td valign=top class="style6"><center>Only $sc_money_symbol $special4[2]</center></td>

   </tr>
</table>


View user's profile Send private message
Reply with quote
Post  
I am not sure what you are asking.
What, exactly, are you not wanting to display?


_________________
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 "See what's inside the store" image display 
The images on "see what's in the store front" - the homepage.
The catagories link on the left displays dynamic images that rotate in the box "see what's inside the store"
Some of these images are repeating the same images instead of rotating different images.
The best way to see what I am talking about is to go this this url and keep refreshing the page. You will notice the images change in the "see what's inside the store front" some images display each catagory and some repeat the same. I would like to have the dynamic images different each time the page loads instead of repeating the same.

http://www.detoxcoach.com/store/store5/agora.cgi

View user's profile Send private message
Reply with quote
Post  
Prolly can't help you... The display pulls products randomly for the display...


_________________
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  
Is there anyway to make sure the randomization only occurs for once for each category so that you don't have the same product randomly appear twice on the same page?

View user's profile Send private message
Reply with quote
Post  
Not that I know of...


_________________
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 Ask the question again. 
I have noted the same problem and have been meaning to ask. I get the same product showing twice, sometimes three times in the see what is inside our store box. This looks very unprofessional and like something isn't working right to the customer. As there is no way to correct the randomness of the appearance and insuring that there is no duplication is there a way to manually set the items that appear in the See whats in our store box?

View user's profile Send private message Visit poster's website
Reply with quote
Post  
Not unless you create a static table with the same 4 items in it... It would never rotate other products unless you changed them...


_________________
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 wish I knew how to program better 
The logic of a fix seems fairly simple. when the random routine picks the second item it should check to see if it is equal to the first. If it is, it should refuse the answer and run the random check again. Of course the routine would have to check first to see if there was 4 items to choose from. If not it would go into an endless loop of always finding a match. Anyway after finding the second match it would have to check against bothe the 1st and the 2nd on the 3rd and tne 1sr, 2nd,and 3 rd on the last.

I've learned enough to understand the logic now I need to spend a couple more years studying and practicing to learn the codeing.

View user's profile Send private message Visit poster's website
Reply with quote
Post  
Bonnie,

That is exactly what I would like to do. A client who already has a website came to me and wishes to sell four products from his AgoraCart. He is very unlikely to ever add a significant number of products and would like to control which products are displayed on his store front if he does ever add a fifth.

Currently, he has AgoraCart 5.003 installed without a MySQL database as that is what is supplied by his hosting provider. What can we do to make the products shown in the store front static?

Thanks and Regards

Dj Stover
http://WebCreationsByZ.com

View user's profile Send private message
Reply with quote
Post  
for those with very few products in their dB i posted a hack in the pro forum. what it does is parse all of the products in the dB exacly like the 2 across ppinc but in the same type of display as the random display on the storefront. it is dynamic so as long as you don't have too many products to display at once on the storefront it will display every product 2 across. if the number of products is even then it will teminate nicely. if there are an odd number of products in the dB then it will display nicely without blowing up.
d

Reply with quote
Post  
Thanks for the response...

However, I don't see any links to a "Pro Forum". I clicked on AgoraPros.com at the top and it doesn't seem to have a forum and the Gold Version Users Forum appears to be a pay site.

Please, where am I supposed to be looking for this solution?

-----

As an aside, doesn't it seem weird that the random product selection can't be overridden? And doesn't that seem to be a serious detriment for businesses with only a few products to be using this cart?

The starter version of this software is provided free by many hosting providers. From my experience, people looking for the 'Free' shopping cart generally do so because they don't expect to carry a large number of products, or have the sales volume necessary to support buying a full-blown copy of the system. Look, these are people looking to make a couple of dozen sales a year on which they will clear a few bucks on each sale. After getting the domain name and hosting, they barely break even. They can't cost justify hiring people to write custom code, or to buy upgrades to provide something so elementary as preventing products from showing multiple times on the store front.

I apologize for the rant.

View user's profile Send private message
Reply with quote
Post  
In order to get to the Gold Forum (formerly the Pro Forum), you must be a Gold Member...
You can just hard-code a table with the products onto the index.html file to display the 4 items.
There are a few ways that you could change things a little.
You could use a custom ppinc file and redirect to display the products in the custom 4 across ppinc page.
You would use a URL something like the following as your redirect:
agora.cgi?keywords=.&ppinc=4a

HTH!


_________________
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  
Thanks.... you gave me an idea on modifying the index file. Here is a snippet from the <site>/<store-name>/html/index.html file:

<!--agorascript-pre
# this is an AgoraCart members only AgoraScript Snippet. You must be a current member at:
# http://www.AgoraCartPro.com . Sign up or renew at AgoraCart.com
# Copyright &copy; 2000 - Present by K-Factor Technologies Inc., AgoraScript, and BytePipe.
&capture_STDOUT; open (DATAFILE, "<./data_files/data.file") || die print "Could not open data.file"; @line=<DATAFILE>;
close (DATAFILE);
srand;
$array1 = $line[int rand(@line)];
$array2 = $line[int rand(@line)];
$array3 = $line[int rand(@line)];
$array4 = $line[int rand(@line)];
@special1 = split (/\|/, $array1);
@special2 = split (/\|/, $array2);
@special3 = split (/\|/, $array3);
@special4 = split (/\|/, $array4);
$image1 = $special1[7];
$image2 = $special2[7];
$image3 = $special3[7];
$image4 = $special4[7];
$image1 =~ s/%%IMG%%//ig;
$image2 =~ s/%%IMG%%//ig;
$image3 =~ s/%%IMG%%//ig;
$image4 =~ s/%%IMG%%//ig;

...

This is where the randomness enters the equation. Now, if you only have 4 products, you can assign the specific line numbers 0 thru 3 and the rest of the logic executes perfectly.

$array1 = $line[0];
$array2 = $line[1];
$array3 = $line[2];
$array4 = $line[3];

Granted, if you have 100 products, this solution would be problematic as it would be difficult to select the 'right' products and updates to the database could in theory change the numerical order of the lines returned from the file. But for someone with only 4 (or a small number of) products, it works great !!

Thanks to those that took time to reply,
-Dj
WebCreationsByZ.com
agora cart newbie

View user's profile Send private message
Reply with quote
Post  
if you don't have very many products, it's better to s c r a p that randomizer (erase those portions that look up the entire database) and just plug in the image and P_ID values manually in the display area. This will make that store homepage load faster.


_________________
Vote Mister Ed for Prez 2012, for a REAL change.

Need Low Cost Startup Option? Try NiftyPay's Pay to Play
http://www.NiftyPay.com
View user's profile Send private message Visit poster's website
Reply with quote
Post  
true enough. for those capable it's better to hardcode. however, for web developers with clients who know nothing about html then it does server it's purpose.
d

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