close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Coupons to make free products

Thread began 4/28/2013 9:52 pm by danielsebas | Last modified 4/30/2013 12:38 pm by danielsebas | 1790 views | 15 replies |

danielsebas

Coupons to make free products

Hi, I created a coupon to make a free product, my store is only for digital goods and the paying method is PayPal Express. When someone in my store tries to buy that good with the coupon, which makes the download free, they can't buy it because PayPal won't let a purchase for $0 dollars, so how can I make my buyers to download that file for free with the coupon?
Thank you for your help.

Sign in to reply to this post

Jason ByrnesWebAssist

add the following code:

php:
<?

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


To the top of the pages:
webassist/plugins/shopping_cart/cart_editable.php
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

danielsebas

Thank you Jason, it worked but is there a way when I introduce the coupon code in the cart that another button instead of the PayPal will appear? because I have to give a click to the paypal button and then my purchase is rejected and then when I press go back to checkout the option to buy without PayPal will appear, so that could confuse the costumer.
Thank you for your help

Sign in to reply to this post

Jason ByrnesWebAssist

the code edit i suggested should alreaddy be doing that. make sure you have added the suggested code on all 4 of the suggested pages.

Sign in to reply to this post

danielsebas

Hi Jason, I introduced the code in the pages as you told me.

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

danielsebas

I test in my Remote Server and local one and still have the same issue.

Sign in to reply to this post

Jason ByrnesWebAssist

see private message

Sign in to reply to this post

danielsebas

I´m sending additional info

Sign in to reply to this post

danielsebas

Prívate message

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...