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
How to get products to list vertically
Author Message
Reply with quote
Post How to get products to list vertically 
Quote:
Moderator Note: Moderator edited store URL to remove cart_id. Please do not post cart_id info when post the URL to your store.

I tried tonight changing this page
http://74.220.215.231/~vintagg2/store52/agora.cgi?product=Art&xm=on

And adding my own files vertically but when I did the products stacked two on two instead. I really only want one product atop another product and so on down the page. How do you get it to appear that way?

View user's profile Send private message
Reply with quote
Post  
never post a store link with the product id.
you can use the ppinc switch in the query string...
http://74.220.215.231/~vintagg2/store52/agora.cgi?cart_id=&product=Art&xm=on&ppinc=1a
you can use that swtich for each ppinc example in the html-templates folder to see how they display.
d

Reply with quote
Post  
The productPage.inc file is what the cart uses to display the products.
Use Dan's method to find which ppinc file you want to use or create a custom one based on those.
Then rename it to productPage.inc and upload to the 'html/html-templates' directory.
Make sure you download/upload the files in ASCII mode and make a backup of the original file *before* editing the file.

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  
I'm sorry but I'm still confused. With the product page 1a, how do I actually tell the website I wanted to use exclusively the 1a code for every product page on my website? Do I delete all the rest of the 1X's, 2X's?? Is there a button on the main panel that chooses the product page I want? Do I edit this code below somehow? I don't even see the products in the html below...

<tr><td class="ac_product_desc" width=170>
<form method="post" action="%%scriptURL%%">
%%make_hidden_fields%%<br/>
%%optionFile%%<br/><p>
<!--BEGIN SELECT QUANTITY BUTTON-->
<table class="ac_add-quantity"><tr><td class="ac_add-quantity">%%QtyBox%%</td>
<td class="ac_add-quantity"><input type="image" name="add_to_cart_button" value="Add To Cart" src="%%ButtonSetURL%%/add_to_cart.gif">
</p></td></tr></table>
<!--END SELECT QUANTITY BUTTON-->
</td><td class="ac_product_image">%%image%%</td>
<td class="ac_product_desc">
<b>%%name%%</b><br/>
%%description%%<br><br/>
<span class="ac_product_price">%%price%%</span><br>
</td></form></tr><tr><td>&nbsp;</td><td>&nbsp;</td><td class="ac_product_desc">
<a href="%%scripturl%%?dc=1&%%href_fields%%" rel="nofollow">Check Out</a></td></tr>
<tr><td colspan=3><hr/></td></tr>

View user's profile Send private message
Reply with quote
Post  
Never mind guys I finally figured it out.

View user's profile Send private message
Reply with quote
Post  
Hi Guys

I am also trying to get products to list vertically in a single column.
I have adapted the productPage.inc and renamed it A. Home.inc to work with the category of the same name. Problem is that images want to go next to each other instead of underneath.
I've checked and re-checked but I just cannot find what's doing it.
I'm using v5 of the cart and url: http://www.nznichegreetings.co.nz
As always, your help is just invaluable.
Have the contents of the A. Home.inc below.

Regards
John


<!--agorascript-pre
{
# This file allows you to have any number of
# rows by setting the following variable
$ags_across = 1; # Number in a row

$ags_row_wd=int(100.0/$ags_across);
local ($myans)="";
if ($rowCount == (1+$minCount)) { #first one
$ags_row_item=0;
$ags_row_nmbr=0;
$ags_tot_item=0;
$myans .= '<tr><td colspan="2"><table width="100%" border="0" bgcolor="black">'."\n";
}
$ags_row_item++;
$ags_tot_item++;
if ($ags_row_item > 1) { # last one
if ($ags_row_item == $ags_across) {
$ags_row_item=0; #reset counter
$ags_row_nmbr++;
}
$myans .= '<td width="'.$ags_row_wd.'%" valign="top" bgcolor="black">';
} else { #first one
$myans .= '<tr><td width="'.$ags_row_wd.'%" valign="top">';
}
$myans.=qq~<form method="post" action="%%scriptURL%%">
%%make_hidden_fields%%
<table width="100%">
~;
return $myans;
}
-->
<tr><td class="ac_product_image"><a href="picserve.cgi?picserve=%%userFieldTwo%" onClick="MyWindow=window.open('picserve.cgi?picserve=%%userFieldTwo%%','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=806,height=402'); return false;" target="_new">%%image%%</a> </td></tr>
<tr><td>


<!--BEGIN PRODUCT_NAME AND PRODUCT_DESC-->

<!--END PRODUCT_NAME AND PRODUCT_DESC-->


<!--BEGIN SELECT QUANTITY BUTTON-->

<!--END SELECT QUANTITY BUTTON-->


</td></tr>
<!--agorascript-pre
{
local ($myans)="";
if ($ags_row_item == 0) { # last one
$myans .= '</table></form></td></tr>'."\n";
} else { # first one
$myans .= '</table></form></td>'."\n";
}
if (($rowCount == ($maxCount)) || ($rowCount == ($num_returned)))
{ # very last one
if (!($ags_row_item == 0)) { # finish the row
# if ($ags_row_nmbr > 0) { # finish the row with blanks
while ($ags_row_item < $ags_across) {
$ags_row_item++;
$myans .= '<td width="'.$ags_row_wd.'%">&nbsp; </td>';
}
# }
$myans .= '</tr>'."\n";
}
$myans .= '</table></td></tr>'."\n";
}
return $myans;
}
-->


_________________
A lack of alternatives, focuses the mind wonderfully!
View user's profile Send private message
Reply with quote
Post  
Try modifying the productPage-1a.inc file...


_________________
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  
Hi Bonnie

Gee, I tried that before and it didn't work but it does now. Embarassed

I have modified the productPage-1a.inc file and it's working a treat! Thanks Bonnie.

Just one more problem; I'm trying to make the entire background of the pp.inc black
but I only want it black for that pp.inc file.
I don't want to change things too much in case I upset the coding of the rest
of the cart. My code is here for the A. Home.inc file:

<tr bgcolor="black">
<td bgcolor="black" class="ac_product_image"><a href="picserve.cgi?picserve=%%userFieldTwo%" onClick="MyWindow=window.open('picserve.cgi?picserve=%%userFieldTwo%%','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=806,height=402'); return false;" target="_new">%%image%%</a> </td></tr>

<tr bgcolor="black"><td bgcolor="black">&nbsp;</td></tr>

As you can see there is still quite a bit of white space.

Thanks for all your help
regards
John


_________________
A lack of alternatives, focuses the mind wonderfully!
View user's profile Send private message
Reply with quote
Post  
Much of things in v5.x is handled by the CSS...
You will need to go into the CSS Editor manager, find the "ac_content" class and edit the background-color...
Don't add in "bgcolor=..." stuff in the header/footer or ppinc files... View the source code in the browser and find the CSS class that controls that element. Then, edit that class in the CSS Ediotr manager.

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  
Hi Bonnie

Understand that. Unfortunately that will change ALL the other .inc pages as well
which is not what I want. I only want a black background for the A. Home.inc and
a white background for all the others.
Looks like this may not be possible?

regards
John


_________________
A lack of alternatives, focuses the mind wonderfully!
View user's profile Send private message
Reply with quote
Post  
John,
The ac_content class is in the header file... So make a category specific header file...
In your custom header file, just change the class="ac_content"
to class="ac_content1" , then set up this new class in the CSS Editor near the other one.
Naming convention for the category specific header is:
header-A. Home.inc

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  
Hi Bonnie

Aha! I knew there might be some method to do this.
Thank you so much Bonnie, you are a STAR! Laughing

Best regards
John


_________________
A lack of alternatives, focuses the mind wonderfully!
View user's profile Send private message
Reply with quote
Post  
Hi Bonnie

Me again! Your patience is legendary! Mr. Green
Can't get it to work because I think I goofed-up somewhere.

I made a category specific header file header-A. Home.inc
In that header file, I changed the class="ac_content" to class="ac_content1",
then set up this new class in the agoratemplate.css near the other one.
Didn't use the CSS Editor. I edit everything in plain text editor.

I made the category specific file from the html header file and renamed it to header-A. Home.inc
and placed it in the html-templates folder. Was that the right thing to do?

Thanks a bunch for your help so far.

John


_________________
A lack of alternatives, focuses the mind wonderfully!
View user's profile Send private message
Reply with quote
Post  
Yes... Do you have the following questions in the "Layout & Design Settings - Misc. Settings" answered as follows?
"Use Category Name for Header/Footer Includes?" YES
"Use Category Name as ppinc Root?" YES

Do be sure to use the CSS Editor in the manager... You might want to check the CSS Editor to make sure your new class is appearing in the CSS stylesheet...
Do as much as you can using the manager to prevent and avoid corruption of files and uploading files in the wrong mode.

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  
Hi Bonnie

Problem solved! Thanks to you.
Getting the hang of this cart now.
It's just very confusing to figure how all the parts come together
and where all the bits of code are that make it work.

Thank you very much for all your help again.

Bless you

John


_________________
A lack of alternatives, focuses the mind wonderfully!
View user's profile Send private message
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