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
Customize YourPayConnect orderform based on shipping
Author Message
Reply with quote
Post Customize YourPayConnect orderform based on shipping 
We have a few items in our store that we cannot ship 'cause they're perishable. What I'd like to do is customize the YourpayConnect orderform based on items in the cart.

The non-shipable items have a shipping weight of 0 - everything else has a value.

Here's what I'd like:
1. If the cart contains both shippable and non-shipable items, I'll display the shipping option box along with a box into which they will enter the date they want to pick the item up.
2. If the cart has only non-shipable items, the shipping dropdown will not display and they'll just get a date box for the pickup date.

So what I'm really asking for is how do I find out if the cart has 0-weight items in it from the checkout form page? Once I know that, I can take care of the rest.

I tried using the code copied from the store header file that displays the cart contents if there's items in the cart, but I get an error message if I stick that into the form.

Thanks

View user's profile Send private message
Reply with quote
Post  
You'd have to use something that would evaluate the items while the cart is "open".


_________________
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 not that good with Pearl, and I don't always understand what's going on behind the code. I tried inserting the following code into YourPayConnect-orderform.html, but I got this error message:

We're sorry, an error has occured. Please hit the browser back button, change what was done in error, and try again.

Here's the code - the error happens when I try to declare a local variable:

<!--agorascript-pre {
local ($count,$shipping)=0;
return "hello";
}-->

What I want to do is copy the code from store_header.inc that cycles through the cart to display the cart total at the top of the product page. I'll make necessary changes to make it do what I want it to do.

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