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 do I remove the Quantity box from the product page?
Author Message
Reply with quote
Post How do I remove the Quantity box from the product page? 
Hi,
I'd like to remove the quantity box from the product page, and assume the value to always be "1". For the type of store I'm setting up (selecting apartments to inquire about) it would never make sense to enter anything other than "1" in the quantity box.

I've tried changing
local ($suppress_qty_box)='';
to
local ($suppress_qty_box)='1';
in agora_html_lib.pl, but when I do that, the "add to cart" button doesn't add the selection to the cart at all.

Any suggestions?
Thanks!

View user's profile Send private message Send e-mail
Reply with quote
Post  
The place to edit is in the agora.setup.db file...
Code:
$sc_default_qty_box_html =
'<input type=text name="%%itemID%%" size="3" maxlength="4" value="%%qty%%">';


Edit it to create a "hidden" field, like:
Code:
$sc_default_qty_box_html =
'<input type="hidden" name="%%itemID%%" value="%%qty%%">';


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  
Thank you - that was a big help, and did exactly what I wanted!

View user's profile Send private message Send e-mail
Reply with quote
Post  
One more thing I'd like to hide (but I don't find it in the agora.setup.db file (or anywhere else):

Since this site is for people to inquire about apartments, it doesn't make sense to have any type of payment. I've got things set up so that it allows mailed payment, but I'd like to hide the checkout page line
"Do You Wish To Mail Your Payment (check, money order):" and the radio button, and have it default to having having the radio button selected.

I can see that the variable is Ecom_Payment_Card_Type and the value is MailedFunds, but I don't know where to set this to hidden with the default value.

Where can I do this?
Thanks!

View user's profile Send private message Send e-mail
Reply with quote
Post  
You will need to make the field a hidden one.
That is coded in the Offline-orderform.html 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
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