Hey Great Mod (I think ) It all seems to work fine but says that the discount has been applied to your order but when I go to the next step I cannot see the discount applied. I am using 1.5.1.3 and a custom
Just ignore me!!! Coupons was disabled in Options!! working well thanks!!
Just ignore me!!! Coupons was disabled in Options!! working well thanks!!
Last edited by Ozfarmer on Sat Nov 26, 2011 11:22 am, edited 2 times in total.
I upgraded to v 1.5.3.1 from 1.4.9. I really like the one page checkout except for the fact that it does not allow entry of coupon codes. I tried applying the vqmod posted at the top of this thread but it has not worked. Has anyone tried this with v 1.5.3.1 yet?
Thanks
Thanks
Yeah mine is installed in 1.5.1.3kghandi wrote:I upgraded to v 1.5.3.1 from 1.4.9. I really like the one page checkout except for the fact that it does not allow entry of coupon codes. I tried applying the vqmod posted at the top of this thread but it has not worked. Has anyone tried this with v 1.5.3.1 yet?
Thanks
Hi great mod .. thanks .. it's working well for me on 1.5.3.1
I just want to make a slight adjustment to the code so when I go through the checkout, I'm shown the actual coupon name ... currently it shows just the coupon code ...
so rather than show the code e.g coupon(1111) in the totals area,
it will show the coupon name e.g coupon (15% off plus free gift)
Many thanks
I just want to make a slight adjustment to the code so when I go through the checkout, I'm shown the actual coupon name ... currently it shows just the coupon code ...
so rather than show the code e.g coupon(1111) in the totals area,
it will show the coupon name e.g coupon (15% off plus free gift)
Many thanks
Last edited by indigo on Thu Dec 08, 2011 5:01 am, edited 1 time in total.
Thank you.
Works great with 1.5.1.3
Is any mod to apply voucher during checkout like this one?
Works great with 1.5.1.3
Is any mod to apply voucher during checkout like this one?
Hi Scoobs .... are you using the default template?
If not, remember to change
Line 29:
Line 53:
Hope it helps!
If not, remember to change
Line 29:
Code: Select all
<file name="catalog/view/theme/[YOUR THEME NAME]/template/checkout/payment.tpl">
Code: Select all
$('#button-coupon').after('<span class="wait"> <img src="catalog/view/theme/[YOUR THEME NAME]/image/loading.gif" alt="" /></span>');
Hope it helps!
I am also trying to get this vQmod working, I have vQmod installed and vQmod which has thown up this error
---------- Date: 2011-12-11 00:25:59 ~ IP : *3.*7.**.*** ----------
REQUEST URI : /index.php?route=checkout/payment
MOD DETAILS:
modFile : /home/XXXX/public_html/vqmod/xml/checkout-coupon.xml
id : Opencart core file modifications for adding coupon support into the checkout sequence
version : 1.5.1.1
vqmver : 1.2.3
author : mhccorp.com
SEARCH NOT FOUND (ABORTING MOD): <script type="text/javascript"><!--
Now I have followed all the instructions listed before about altering the text on both the lines that refer the the default which is set to shoppica but still not joy.
Can someone take pity on someone who should have got this website finished months back but has hit every wall going?
Thanks in advance
---------- Date: 2011-12-11 00:25:59 ~ IP : *3.*7.**.*** ----------
REQUEST URI : /index.php?route=checkout/payment
MOD DETAILS:
modFile : /home/XXXX/public_html/vqmod/xml/checkout-coupon.xml
id : Opencart core file modifications for adding coupon support into the checkout sequence
version : 1.5.1.1
vqmver : 1.2.3
author : mhccorp.com
SEARCH NOT FOUND (ABORTING MOD): <script type="text/javascript"><!--
Now I have followed all the instructions listed before about altering the text on both the lines that refer the the default which is set to shoppica but still not joy.
Can someone take pity on someone who should have got this website finished months back but has hit every wall going?
Thanks in advance
indigo wrote:Hi Scoobs .... are you using the default template?
If not, remember to change
Line 29:Line 53:Code: Select all
<file name="catalog/view/theme/[YOUR THEME NAME]/template/checkout/payment.tpl">
Code: Select all
$('#button-coupon').after('<span class="wait"> <img src="catalog/view/theme/[YOUR THEME NAME]/image/loading.gif" alt="" /></span>');
Hope it helps!
Yeah, I have tried this already.
Code: Select all
<modification>
<id>Opencart core file modifications for adding coupon support into the checkout sequence</id>
<version>1.5.1.1</version>
<vqmver>1.2.3</vqmver>
<author>mhccorp.com</author>
<file name="catalog/controller/checkout/payment.php">
<operation>
<search position="after"><![CDATA[$this->data['text_comments'] = $this->language->get('text_comments');]]></search>
<add><![CDATA[
$this->data['entry_payment_coupon'] = $this->language->get('entry_payment_coupon');
$this->data['text_payment_coupon'] = $this->language->get('text_payment_coupon');
$this->data['text_payment_coupon_success'] = $this->language->get('text_payment_coupon_success');
$this->data['button_coupon'] = $this->language->get('button_coupon');
]]></add>
</operation>
</file>
<file name="catalog/language/english/checkout/checkout.php">
<operation>
<search position="after"><![CDATA[$_['text_comments']]]></search>
<add><![CDATA[
$_['entry_payment_coupon'] = 'Enter your code (if available) and click "Apply Coupon"';
$_['text_payment_coupon'] = 'Discount Coupon Code:';
$_['text_payment_coupon_success'] = 'Your discount coupon has been successfuly applied to your order. You will see it in the next checkout step';
$_['button_coupon'] = 'Apply Coupon';
]]></add>
</operation>
</file>
<file name="catalog/view/theme/yostore/template/checkout/payment.tpl">
<operation>
<search position="after" offset="2"><![CDATA[<textarea name="comment"]]></search>
<add><![CDATA[
<div id="coupon">
<b><?php echo $entry_payment_coupon; ?></b><br /><br />
<?php echo $text_payment_coupon; ?>
<input type="text" name="coupon" value="" />
<a id="button-coupon" class="button"><span><?php echo $button_coupon; ?></span></a><br />
</div>
]]></add>
</operation>
<operation>
<search position="before"><![CDATA[<script type="text/javascript"><!--]]></search>
<add><![CDATA[
<script type="text/javascript"><!--
$('#button-coupon').bind('click', function() {
$.ajax({
type: 'POST',
url: 'index.php?route=total/coupon/calculate',
data: $('#coupon :input'),
dataType: 'json',
beforeSend: function() {
$('#button-coupon').attr('disabled', true);
$('#button-coupon').after('<span class="wait"> <img src="catalog/view/theme/yostore/image/loading.gif" alt="" /></span>');
},
complete: function() {
$('#button-coupon').attr('disabled', false);
$('.wait').remove();
},
success: function(json) {
if (json['error']) {
alert( json['error'] );
} else {
$("input[name=coupon]").val("");
alert( "<?php echo $text_payment_coupon_success; ?>" );
}
}
});
});
//--></script>
]]></add>
</operation>
</file>
</modification>
Thanks very much for this mod, worked for me on 1.5.1.3 and with custom template. Great work as usual!
Read this !burley wrote:I installed it but can't seem to get it to work in 1.5.1, I haven't got any custom templates.
Has anybody got it to work on version 1.5.1? Or do I have to upgrade?
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
I did, installed it as well prior to posting here.
But my version is 1.5.1. not 1.5.1.1, somehow it doesn't work with my version.
Or am I missing something?
EDIT: Nevermind the above, I used your xml file as guide and edited the files (including the different language files) and it works like clockwork on 1.5.1.
It had something to do with the script code below which you commented out in the xml file. Put it in and it functions.
But my version is 1.5.1. not 1.5.1.1, somehow it doesn't work with my version.
Or am I missing something?
EDIT: Nevermind the above, I used your xml file as guide and edited the files (including the different language files) and it works like clockwork on 1.5.1.
It had something to do with the script code below which you commented out in the xml file. Put it in and it functions.
Code: Select all
<script type="text/javascript">
$('#button-coupon').bind('click', function() {
$.ajax({
type: 'POST',
url: 'index.php?route=total/coupon/calculate',
data: $('#coupon :input'),
dataType: 'json',
beforeSend: function() {
$('#button-coupon').attr('disabled', true);
$('#button-coupon').after('<span class="wait"> <img src="catalog/view/theme/default/image/loading.gif" alt="" /></span>');
},
complete: function() {
$('#button-coupon').attr('disabled', false);
$('.wait').remove();
},
success: function(json) {
if (json['error']) {
alert( json['error'] );
} else {
$("input[name=coupon]").val("");
alert( "<?php echo $text_payment_coupon_success; ?>" );
}
}
});
});
</script>
The script had a problem in ie7 where it would make the payment step disappear in opencart 1.5.1.3.
Attached is the fixed version, working for 1.5.1.3. Remember to change the theme if you do not use the default.
Attached is the fixed version, working for 1.5.1.3. Remember to change the theme if you do not use the default.
Wasn't this fix working for you?fsroque wrote:The script had a problem in ie7 where it would make the payment step disappear in opencart 1.5.1.3.
Attached is the fixed version, working for 1.5.1.3. Remember to change the theme if you do not use the default.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
scoobs001 wrote:I solved my issue,
Remove and re-install VQMOD along with new XML files
Did you also change the files like above?
I have already tried re-installing vQmod and I have reinstalled the XML file for this but still in vQmod Manager I am getting this error
REQUEST URI : /index.php?route=checkout/payment
MOD DETAILS:
modFile : /home/public_html/vqmod/xml/checkout-coupon.xml
id : Opencart core file modifications for adding coupon support into the checkout sequence
version : 1.5.1.1
vqmver : 1.2.3
author : mhccorp.com
SEARCH NOT FOUND (ABORTING MOD): <script type="text/javascript"><!--
I just would like this to work
Who is online
Users browsing this forum: No registered users and 45 guests