show module when voucher entered in VirtueMart Hi, I know this one could be very tricky or maybe it is not even possible...
|
|
|
|
Administrator has disabled public posting |
Re: show module when voucher entered in VirtueMart That's an excellent question, and at first I thought it couldn't be done. Fortunately I was wrong!
Code:$coupon = @$_SESSION['coupon_code']; You can also get hold of the following attributes of the coupon (sample values given):
|
|
|
Stephen Brandon |
Administrator has disabled public posting |
Re: show module when voucher entered in VirtueMart
i am sorry for my ignorance,
can you please show me how to actually do this as well? i really need to show the *percentage* that was discounted if possible, even if a dollar amount discount coupon was used, like so: Subtotal: $100.00 Tax: 0.00 Coupon Discount: Coupon Name:(xx50) Discount: 50% -$50.00 Total: $50. |
|
|
|
Administrator has disabled public posting |
Re: show module when voucher entered in VirtueMart Hi and Happy New Year!
Code:function mm_cart_total() {
Now that you can get the total, you can calculate the percentage discount derived from the coupon discount:
|
|
|
Stephen Brandon |
Administrator has disabled public posting |
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » show module when voucher entered in...
Board Info
- Board Stats: Total Users: 3103 Total Topics: 1196 Total Polls: 7 Total Posts: 4453 Total Posts Today: 2
- User Info: Newest User : pamelaC99 Members Online: 2 Guests Online: 93
- Topic
- New
- Locked
- Sticky
- Active
- New/Active
- New/Locked
- New Sticky
- Locked/Active
- Active/Sticky
- Sticky/Locked
- Sticky/Active/Locked

































