1

I have created a coupon code for free shipping following steps similar to described here, but when I try to use valid or not valid coupon code Magento (1.4.1.1) does nothing.

Site URL and coupon code is TEST

Any clue?

Thanks

6
  • can you add this code if its not there <?php echo $this->getMessagesBlock()->getGroupedHtml() ?> to template/checkout/cart.phtml this should allow to read success and error messages
    – Aboodred1
    May 1, 2014 at 19:15
  • @Aboodred1 Added as Error messages: under the grey table. For me it looks like form /checkout/cart/updatePost/ is not executed at all May 1, 2014 at 19:22
  • your coupon form is missing the form tag
    – Aboodred1
    May 1, 2014 at 19:22
  • I have copied all from another topic about coupon.html file missing content, which contains <form id="discount-coupon-form" action="<?php echo $this->getUrl('checkout/cart/couponPost') ?>" method="post"> May 1, 2014 at 19:26
  • Maybe I need to move it out of the cart items form loop? May 1, 2014 at 19:27

2 Answers 2

1

My suggestion is to remove coupon code form from cart table footer and add it above Totals table.

Edit cart.phtml file under your theme template app/design/frontend/custom_package/custom_theme/template/checkout/cart.phtml and add the following code within this div <div class="cartRow"> before <div class="cartRight">:

<div class="cartRight" style="margin-bottom: 20px;">
    <?php echo $this->getChildHtml('coupon') ?>
</div>

The output should look like this screenshot:

enter image description here

0

My dig

app/design/frontend/custom_package/custom_theme/template/checkout/cart.phtml

and add the following code within this div <div class="cartRow">

before <div class="cartRight">:

<div class="cartRight" style="margin-bottom: 20px;">
    <?php echo $this->getChildHtml('coupon') ?>
</div>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.