Jump to content
Sign in to follow this  
Tracy

Gift Certificate.

Recommended Posts

I use the following for shipping normal items

100:6.50,250:9.00,10000:0.00

Based on price instead of weight. I need to be able to charge shipping on everything but the gift vouchers.

 

Is this possible

Share this post


Link to post
Share on other sites

Greysun,

 

I do have some code to amend the total cost returned to the shipping method. I'll hunt it out later today and get back to you.


Trust me, I'm an Accountant.

Share this post


Link to post
Share on other sites

greysun

 

You need to edit /includes/modules/shipping/table.php

 

line 44 should read

 

$order_total = $cart->show_total();

change this to

 

$order_total = $cart->show_total_virtual();

 

I've never tested this so your feedback would be appreciated


Trust me, I'm an Accountant.

Share this post


Link to post
Share on other sites

FOr some reason this didnt work. What it did do was add $2.50 to the shipping charge but only on the second purchase of a gift voucher

 

Not sure whats going on

 

Thank you for the suggestion though.

 

Any other ideas?

Share this post


Link to post
Share on other sites

Even if I could just pass the shipping fee into the voucher account that would be ok. That way I could sell the vouchers + shipping and make a note that the shipping fee is added to the total of the voucher. Not sure if this is possible.

Of course it would be better if the shipping fee just wasn't there

Share this post


Link to post
Share on other sites

greysun

 

Sorry that did not work, not sure what you mean by second purchase of Gift Voucher. I never really got a chance to test the code so will do that, using your table rates and get back to you.


Trust me, I'm an Accountant.

Share this post


Link to post
Share on other sites

Ok, thank you for all your help

 

What I meant was in I went in a bought the first gift voucher after making the changes you suggested it charged $6.50 S&H then I went back in and decided to try it one more time and this time it charged $9 for shipping as if I had purchased over $100 as per my table

 

This is almost the last peice of the puzzle before the sight will be the way I need it. I really do appreciate your help

Share this post


Link to post
Share on other sites

Sorry for the delay,

 

First a bit of editing

open /catalog/includes/classes/shopping_cart.php

 

Find the lines

    function calculate() {

     $this->total = 0;

and add straight after this

      $this->total_virtual = 0;

 

also make sure you add 0:0,

to the begining of your table rate definition.

 

That should fix it.


Trust me, I'm an Accountant.

Share this post


Link to post
Share on other sites

Wipes sweat from brow, issues deep sigh.

 

Glad that worked, amazing what one line of code can do.


Trust me, I'm an Accountant.

Share this post


Link to post
Share on other sites

It's in the contributions section. However I'm currently investigating a bug report concerning v3.1 which means you can't redeem a voucher at checkout.

 

If anyone else out there is using 3.1 could they please confirm or deny this. It may be an install issue with the person concerned rather than an actual bug.

 

If it is a bug, i'll have a fix sometime tonight.


Trust me, I'm an Accountant.

Share this post


Link to post
Share on other sites

Ian

 

It may be true, I installed this mod and cannot figure out how to use it at checkout. No option to use it, nor does it display anything related to gift voucher on the checkout_confirmation.php page.

 

Regards

Wayne

Share this post


Link to post
Share on other sites

This is probably because you have not enabled the module in admin.

 

Go to admin->modules->order_total and enable the gift voucher. Make sure you adjust the sort order of the order total modules.


Trust me, I'm an Accountant.

Share this post


Link to post
Share on other sites

Ian

 

It was enabled and it does not show any option to use the gift voucher when checking out. Please check my configuration for me if you have time. http://www.redtag.net/admin/ Send yourself a gift voucher and create an account and try to use it. If you need to see any files, let me know.

 

Information:

I have it set so it does not queue the GV.

I have your coupon contribution installed.

I have double and triple checked my installation steps.

Please play with it and help me find what's wrong.

 

Regards

Wayne

Share this post


Link to post
Share on other sites

Wayne,

 

Yep, definitely something wrong with your set up. Can you email me the following files

 

checkout_payment.php

/includes/classes/order_total.php

/includes/modules/order_total/ot_gv.php


Trust me, I'm an Accountant.

Share this post


Link to post
Share on other sites

Hi

 

Did I miss something?

The only time a customer can buy/send a gift voucher is at checkout, if a customer does not buy something how will then send a gift voucher to a friend?

 

Is there a gift voucher infobox?

 

thanks


Jim

--------------------------------------------------------------------------

How can you tell when your out of invisible ink?

 

Of all the things I've lost, I miss my mind the most!

Share this post


Link to post
Share on other sites

Hi Ian,

From reviewing the forums, you seem to be the guru.

I am trying to provide potential customers with a coupon code to use at checkout.

I installed ccgv 5.13

My problem is in the admin -->configuration page there is nothing about gv or discount welcome message. This is apparently the only place to add/edit the code that I want to give out to people. What have I done wrong, or do I need to do?

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×