Problem with Promotional Codes

Started by bscheller, December 26, 2013, 04:11:37 PM

bscheller

I have been using Hostbill for a while, but just starting to integrate it to do automatic ordering and provisioning. One of the things I need to do is to create a new account in Hostbill to provision on to a Plesk server, but no cost. I have a promotional code set up that is Random that applies a 100% discount to the total amount. When I go through the order process, it does not apply the promotional code and the total stays the same.

I have the latest upgrade on Hostbill and I have tried multiple combinations of the options in Hostbill. All this makes me think I am missing something very easy, but I can't locate it. I have the following:

Coupon Code: {Random Generated Code}
Discount: 100%
Discount Type: Recurring
Apply To: Total Price
Applicable by: All Customers
Applies to: {All Checked}
Applicable to: {I have selected the first option for "All" in these multi-selects}

I have tried setting up new codes, only partial discounts, etc. None of them appear to work. When I "Use Promotional Code" in the order process, nothing happens and the price does not change. Invalid entries are accepted and nothing changes as well.

Any pointers on getting this functionality to work would be appreciated.


Enterprisevpssolutions

I have no issues with the promo codes working. I am using Version: 2013-12-20:2013 can you explain in more detail the error you are getting.
Enterprise Vps Solutions (VPS) - Cloud Solutions, Shared hosting, VPS , and more, Fast Dedicated Servers. Great ssl prices SSL Certs, Follow us on Twitter. Sales Question? Contact us! Send us a Request Tampa , Florida Hivelocity Datacenter

bscheller

#2
That is actually the problem, it doesn't give any error back. When I attempt to go through the order screen and enter the code, it acts like it is doing an AJAX call to the server for the code for a couple of seconds and then ends. The price is not updated. If I go to the next screen, the price is also not update. I also don't see the code decremented on the server side (when I tried with limits on number of uses). It appears that AJAX call does not work correctly, but I don't see any errors. The only thing I see is this from the Javascript Console on Chrome when I load the page:

Uncaught ReferenceError: $ is not defined common.min.js:1
Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://www.example.com/templates/example/css/demo.css". &step=1:25
Uncaught ReferenceError: $ is not defined &step=1:33
Uncaught ReferenceError: $ is not defined cart.js?step=1:1
event.returnValue is deprecated. Please use the standard event.preventDefault() instead. jquery-1.8.3.min.js:2
Denying load of chrome-extension://mcobjbefejmnadahpjbfibgkgchhmjke/jquery.min.map. Resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension.

I see this before the attempted AJAX call. No other Javascript errors appear after the AJAX call.

Does that help. If there is a specific log file I should be looking at, please let me know as well. Thank you for your help.

Enterprisevpssolutions

Does this occur on all order pages for you or just one? If its a specific order page which one are you using so I can test it on mine.
Enterprise Vps Solutions (VPS) - Cloud Solutions, Shared hosting, VPS , and more, Fast Dedicated Servers. Great ssl prices SSL Certs, Follow us on Twitter. Sales Question? Contact us! Send us a Request Tampa , Florida Hivelocity Datacenter

bscheller

It is actually all of the order pages. I had tried that as well. I will PM you the site and code that I am using if you want to look directly at my site as well.

bscheller

BTW, I have also tried multiple order templates and it does it on all order pages on the alternate templates as well.

Enterprisevpssolutions

What version are you running? Did you check folder permissions and ownership? Mod_security or firewall? Also did you clear out the templetes_C folder? What version did you notice it didn't work anymore. Did you try downgrading?
Enterprise Vps Solutions (VPS) - Cloud Solutions, Shared hosting, VPS , and more, Fast Dedicated Servers. Great ssl prices SSL Certs, Follow us on Twitter. Sales Question? Contact us! Send us a Request Tampa , Florida Hivelocity Datacenter