Yzzy Posted July 10, 2012 Share Posted July 10, 2012 Hello, I have searched extensivley through the Presta Forum and while finding many such threads to do with vouchers none of them seem to havea solution. Is it possible for someone from the development team to have a look at the issue and find out what is causing it please as there are many of us frustrated by the issue.... I posted on my Facebook business wall and everyone seems to have the same issue. OK... so.... Vouchers are created as should be. ALL fields filled in as should be as recomended by the Presta Docs and some of the threads 'trying' to fix the issue on here. Customer gets to checkout page and inserts their code and...... nothing. The store simply doesn't see that anything has been entered into the voucher field box.. it refreshes the page without changing the price and it clears the voucher box of the code one just put in. So... It is 'trying' to do what it needs to but isn't aknowledging there has been any input into the voucher input box. While I know a fair bit about deisgn and programming I am finding it hard to see where the broken link is between the input box and the 'reading' of it by Presta. Any ideas would be awesome! meanwhile.. i will go back and dig about as currently I have to use group discount to give my customers a sale and that isn't ideal as not all items are in the sale. Yzzy Code from Prestashop theme shopping cart .tpl {if sizeof($discounts)} <tbody> {foreach from=$discounts item=discount name=discountLoop} <tr class="cart_discount {if $smarty.foreach.discountLoop.last}last_item{elseif $smarty.foreach.discountLoop.first}first_item{else}item{/if}" id="cart_discount_{$discount.id_discount}"> <td class="cart_discount_name" colspan="2">{$discount.name}</td> <td class="cart_discount_description" colspan="3">{$discount.description}</td> <td class="cart_discount_delete"><a href="{if $opc}{$link->getPageLink('order-opc.php', true)}{else}{$link->getPageLink('order.php', true)}{/if}?deleteDiscount={$discount.id_discount}" title="{l s='Delete'}"><img src="{$img_dir}icon/delete.gif" alt="{l s='Delete'}" class="icon" width="11" height="13" /></a></td> <td class="cart_discount_price"><span class="price-discount"> {if $discount.value_real > 0} {if !$priceDisplay}{displayPrice price=$discount.value_real*-1}{else}{displayPrice price=$discount.value_tax_exc*-1}{/if} {/if} </span></td> </tr> {/foreach} </tbody> {/if} </table> </div> {if $voucherAllowed} <div id="cart_voucher" class="table_block"> {if isset($errors_discount) && $errors_discount} <ul class="error"> {foreach from=$errors_discount key=k item=error} <li>{$error|escape:'htmlall':'UTF-8'}</li> {/foreach} </ul> {/if} <form action="{if $opc}{$link->getPageLink('order-opc.php', true)}{else}{$link->getPageLink('order.php', true)}{/if}" method="post" id="voucher"> <fieldset> <h4>{l s='Vouchers'}</h4> <p> <label for="discount_name">{l s='Code:'}</label> <input type="text" id="discount_name" name="discount_name" value="{if isset($discount_name) && $discount_name}{$discount_name}{/if}" /> </p> <p class="submit"><input type="hidden" name="submitDiscount" /><input type="submit" name="submitAddDiscount" value="{l s='Add'}" class="button" /></p> {if $displayVouchers} <h4>{l s='Take advantage of our offers:'}</h4> <div id="display_cart_vouchers"> {foreach from=$displayVouchers item=voucher} <span onclick="$('#discount_name').val('{$voucher.name}');return false;" class="voucher_name">{$voucher.name}</span> - {$voucher.description} <br /> {/foreach} </div> {/if} </fieldset> </form> </div> code from theme I am using: <form action="{$base_dir_ssl}order.php" method="post" id="voucher"> <fieldset> <h4>{l s='Vouchers'}</h4> <p> <label for="discount_name">{l s='Code:'}</label> <input type="text" id="discount_name" name="discount_name" value="{if $discount_name}{$discount_name}{/if}" /> </p> <p class="submit"><input type="submit" name="submitDiscount" value="{l s='Add'}" class="button" /></p> </fieldset> </form> Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 10, 2012 Share Posted July 10, 2012 Hi Yzzy, Vouchers do in fact work in versions of PrestaShop beyond 1.4.7, but if you think that this is a bug in PrestaShop's software, please feel free to post a new report to our development team here. -Mike Link to comment Share on other sites More sharing options...
Yzzy Posted July 10, 2012 Author Share Posted July 10, 2012 I fixed it!!!!!!!!!!!!! wooot woot.. will be back with the solution once I have had test shoppers test my site for me. Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 10, 2012 Share Posted July 10, 2012 I fixed it!!!!!!!!!!!!! wooot woot.. will be back with the solution once I have had test shoppers test my site for me. Great, we look forward to having you share your solution! Once you do that, I'll be happy to mark this thread as solved for you. -Mike Link to comment Share on other sites More sharing options...
Yzzy Posted July 10, 2012 Author Share Posted July 10, 2012 Hi Yzzy, Vouchers do in fact work in versions of PrestaShop beyond 1.4.7, but if you think that this is a bug in PrestaShop's software, please feel free to post a new report to our development team here. -Mike With respect I have spoken to over 20 people today that we installed Prestashop for and none of them work. I am about to test my fix... back once I have the results! Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 10, 2012 Share Posted July 10, 2012 With respect I have spoken to over 20 people today that we installed Prestashop for and none of them work. I am about to test my fix... back once I have the results! Before responding to your post, I went ahead and tested this on clean installations of every version of PrestaShop from 1.4.7.0 to 1.4.8.2 and was unable to replicate this error. However, I do know that some users do end up having this sort of issue on their specific sites. I just wanted to make it clear that we have extensively tested it to be sure that this is not a bug in the software itself. I look forward to seeing your solution, and will be happy to pass it along to our development team if it looks to be an improvement over our existing setup. -Mike Link to comment Share on other sites More sharing options...
Yzzy Posted July 10, 2012 Author Share Posted July 10, 2012 (edited) OK open your theme and open shopping-cart.tpl find: </p> <p class="submit"><input type="submit" name="submitDiscount" value="{l s='Add'}" class="button" /></p> </fieldset> Replace with: </p> <p class="submit"><input type="submit" name="submitAddDiscount" value="{l s='Add'}" class="button" /></p> </fieldset> the submit button was miisng its 'Add'... so simple yet such a pain! lol refresh the store, empty cache etc etc and it's fixed! There are about 25 posts out there all asking the same question and none of them have the solution... perhaps they should all have a link to this thread as I know some of our clients have been ripping their hair out trying to figure out how to have vouchers working. Edited July 10, 2012 by Yzzy (see edit history) Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 10, 2012 Share Posted July 10, 2012 OK open your theme and open shopping-cart.tpl find: </p> <p class="submit"><input type="submit" name="submitDiscount" value="{l s='Add'}" class="button" /></p> </fieldset> Replace with: </p> <p class="submit"><input type="submit" name="submitAddDiscount" value="{l s='Add'}" class="button" /></p> </fieldset> refresh the store, empty cache etc etc and it's fixed! There are about 25 posts out there all asking the same question and none of them have the solution... perhaps they should all have a link to this thread as I know some of our clients have been ripping their hair out trying to figure out how to have vouchers working. Thank you, I will pass this along to our development team to get this input on this, and will go ahead and mark this thread as solved for you. Happy selling! -Mike Link to comment Share on other sites More sharing options...
Yzzy Posted July 10, 2012 Author Share Posted July 10, 2012 Before responding to your post, I went ahead and tested this on clean installations of every version of PrestaShop from 1.4.7.0 to 1.4.8.2 and was unable to replicate this error. However, I do know that some users do end up having this sort of issue on their specific sites. I just wanted to make it clear that we have extensively tested it to be sure that this is not a bug in the software itself. I look forward to seeing your solution, and will be happy to pass it along to our development team if it looks to be an improvement over our existing setup. -Mike yes it was 100% a theme error... I knew I could find it! Link to comment Share on other sites More sharing options...
Mike Kranzler Posted July 10, 2012 Share Posted July 10, 2012 yes it was 100% a theme error... I knew I could find it! Once again, thank you for the update! I will still show this to our Dev Team to see if it is somewhere there is still room for improvement for the community as a whole. -Mike Link to comment Share on other sites More sharing options...
randysantino Posted October 12, 2012 Share Posted October 12, 2012 Can someone tell me the complete flow of the voucher system? I mean this: I have the same error. Make a voucher in the BO, fill in all fields, enter it during the order at the FO and no changes are made. Prices remain the same and even no error code when using a wrong voucher code. I did the modification as described above, but the changes where already made bij PS in the new version 1.5.1.0... NOTE: Even with the default theme it's not working. So it might be something else than a theme issue. 1 Link to comment Share on other sites More sharing options...
sadlyblue Posted November 15, 2012 Share Posted November 15, 2012 Same problem here. Using v1.5.2 Link to comment Share on other sites More sharing options...
soloraid Posted November 16, 2012 Share Posted November 16, 2012 I would also know more about the vouchers system. Been searching for it in my admin. Using v. 1.5.2 Link to comment Share on other sites More sharing options...
elementofstylebridal Posted January 9, 2013 Share Posted January 9, 2013 Me too, I am using 1.5.3 and am going crazy trying to figure out why my vouchers dont even have the option to be used in my cart?? i have gone through and entered all the correct info in the back office but there isnt even a place to enter a voucher code when I do try it with my test account in the front office - someone please help?? elementofstylebridal.com/prestashop is my shop if you want to see for yourself Link to comment Share on other sites More sharing options...
rob84 Posted January 12, 2013 Share Posted January 12, 2013 (edited) Hello. I have PS 1.4.7.3, and I have same problem with discount coupon. There is no way to make it work with a theme, but I think that it is a theme problem, because switching to the default PS theme, it works, and cool too. The problem is that is not a "shopping-cart.tpl" issue, becuase I tried to move the shopping-cart.tpl from default PS theme, to the new shopping-cart.tpl "prestashop_new" theme. Nothing to do, but the default prestashop theme, work. Now the question is: what other files are retrieved when switching theme, excluding the .TPL files in theme folder ? Hope someone can help. Thanks, Rob SOLVED: there was not a Prestashop problem, but a conflict with a banner CMS platform installed: OpenX (but only with an header banner...dunno why..) Edited January 12, 2013 by rob84 (see edit history) Link to comment Share on other sites More sharing options...
rania.wannes Posted May 25, 2013 Share Posted May 25, 2013 hiii i do a upgrade for my shop (ps 1.4.7) to ps 1.5.2 the form of discount coupon of the shopping cart not displayed when i change the code {if $voucherAllowed} per {if $voucherAllowed==0} the form displayed but the cart not refreshed please can you help me Link to comment Share on other sites More sharing options...
Izzyurrita Posted January 9, 2014 Share Posted January 9, 2014 Hi ! I have the same probelm that the coupon field is not even appearing in my front office. I would appreciate if someone could let me know what the final solution is as I have seen many posts and it is a bit confusing. Thank you ! Izzyurrita Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now