Magento - register coupon from session in cart page

Completed Posted May 29, 2010 Paid on delivery
Completed Paid on delivery

I set coupons via a coupons page instead of the cart input. This successfully checks and sets the coupon and a session in the coupons page, but I'm having issues finding it in the cart page. All you need to do is to fix one or 2 lines of code to successfully register/find the coupon, everything else is working. Either you'll change the method I set the coupon in the coupons page, or change something in the cart page. In the cart page with the session set correctly, this always shows fail: if (isset($_SESSION['coupons_code'])) { $coupon_code = preg_replace("/[^a-zA-Z0-9+]/",'',$_SESSION['coupons_code']); Mage::getSingleton('checkout/cart')->getQuote()->setCouponCode(strlen($coupon_code) ? $coupon_code : '') ->collectTotals() ->save(); if ($coupon_code == Mage::getSingleton('checkout/cart')->getQuote()->getCouponCode()) { echo'Coupon code '.$coupon_code.' was applied successfully'; } else echo 'Fail'; echo 'coupon_code:'.$coupon_code; } I think if you can see the correct way of saving the coupon then it will be done. (1.3.2.4) Thanks for bidding.

## Deliverables

1) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the worker's Worker Legal Agreement).

2) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

3) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Worker in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

## Platform

to work in the usual ff3+, saf3+, ie7+ magento 1.3.2.4 runs on shared hsphere lamp server

Amazon Web Services PHP Software Architecture Software Testing Web Hosting Website Management Website Testing

Project ID: #3462373

About the project

2 proposals Remote project Active May 29, 2010

Awarded to:

devfactoryvw

See private message.

$21.25 USD in 2 days
(33 Reviews)
4.8

2 freelancers are bidding on average $19 for this job

Andreena

See private message.

$17 USD in 2 days
(256 Reviews)
5.9