close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

giving away free products

Thread began 6/29/2012 10:16 am by mrs | Last modified 7/02/2012 9:33 am by Ray Borduin | 4425 views | 4 replies |

mrs

giving away free products

My client has decided that they want the featured and popular pods to have their printed catalogues in them, and they want to give them away free of charge... they will also be posted free of charge.

If I add these free catalogues to the products table, and a customer wants to receive the catalogues only, they add them to the cart, this will mean I have a cart that has a zero value; will the cart still try to connect to the payment gateway to take payment, or will the cart recognise that there are free goods in it and bypass the gateway?

Sign in to reply to this post

mrs

Following on from this requirement, is there a way to easily change the popular product to a second featured product instead of it auto-populating based on sales? I've tried, but can't seem to achieve it!

So within the featuredbox.php I have copied the sql select statment and pasted it into the popularbox.php sql statement and added LIMIT 2,1, but it's not working!

Have you got any advice for this along with the payment gateway question?

Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

Power Store wont bypass the gateway for a 0.00 dollar cart by default, but this would be pretty easy to accomplish, I'll start an incident so we can help you with this.

for the popular product, just put through an order or 2 for 1000000000 of the product that you want to force into the popular position.

Sign in to reply to this post

mrs

OK, thanks Jason.

Sign in to reply to this post

Ray BorduinWebAssist

We were able to work through this in a connect meeting.

It was just a matter of adding:

<?
if ($WA_Store_Cart->GrandTotal() == 0) {
$GLOBALS['WAGLOBAL_Gateway'] = 0;
}
?>

To the top of the pages:
webassist/plugins/shopping_cart/checkout_form.php
webassist/plugins/shopping_cart/cart_readonly.php
webassist/plugins/shopping_cart/process_transaction.php

(note: the code needs to be placed immediately below the ->GetContent() call for the cart.)

Sign in to reply to this post
Did this help? Tips are appreciated...

roby258376

I am also trying to get my cart to work with free products. I have followed the directions above but it still gives me the error that the transaction failed.

Any help would be appreciated

Sign in to reply to this post

roby258376

Anyone have any idea how I can fix this? The store is live and I'd rather not shut it down if I can find a quick fix.

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

send us copies of your pages:
webassist/plugins/shopping_cart/checkout_form.php
webassist/plugins/shopping_cart/cart_readonly.php
webassist/plugins/shopping_cart/process_transaction.php

so we can verify that the changed where added correctly

Sign in to reply to this post

roby258376

ok attempting to send in an email since they are invalid file formats for uploading here

Sign in to reply to this post

roby258376

Jason, how and where do you want these files sent? I can't upload them here, nor can I find an email address to send them to.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...