Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[CONTRIBUTION] CCGV (trad)


Vger

Recommended Posts

Hi.. great contrib! was just looking at the other CCGV contrib and getting very confused as to which version I should use and if I could even attempt to try installing on my modified shop! Thank you!

 

Install went fairly smoothly.. haven't tried every function out yet.. but no major errors.

 

When I send a gift voucher from admin to a customer.. the email comes through fine.. with the URL:

http://www.domainname.com/gv_redeem.php?gv_no=5e0a6c

 

When I click on that link and try and load the page it just loads a blank page. If however I make a purchase I can put that voucher code in at checkout and it works fine.

Any ideas?

 

Thanks. :)

Link to comment
Share on other sites

As a security measure no one can Redeem a Gift Voucher until they are logged in or they create an account. The problem is probably that you have enabled ssl in your configure.php files without having an ssl cert installed, and this means that the file https://www.domainname.com/login.php cannot be found.

 

Vger

Link to comment
Share on other sites

As a security measure no one can Redeem a Gift Voucher until they are logged in or they create an account. The problem is probably that you have enabled ssl in your configure.php files without having an ssl cert installed, and this means that the file https://www.domainname.com/login.php cannot be found.

 

Vger

 

Thanks for the fast reply! So normally it should redirect to login.php? SSL is set to false in my config files but I have had some trouble with all my file paths in general since I moved my site to the root. Can I hard code the file path somewhere?

Link to comment
Share on other sites

If using the osCommerce Pay Pal IPN module you must set it to Aggregate and not Per Item. Also please read the post-install instructions on how to set up CCGV to apply or not apply Gift Vouchers or Discount Coupons to Shipping and/or Tax.

 

Vger

 

 

I do want it to be applied to shipping, and I have it set up as such per the post install instructions. I do not have Paypal IPN installed, I am just using the paypal function that comes in the original OS Commerce Download. Do I need to install the Paypal IPN for paypal to work correctly?

 

There is only an issue if the amount due is greater than $0 but less than $5. If the Voucher or the Coupon is enough to pay for PART of the shipping but not ALL of the shipping then you end up with a negative value in paypal.

Link to comment
Share on other sites

I need to ask which sales reports you are using? Discount Copupons (I have not tried vouchers) wont show up in Sales Report 2 or even in the standard "Customer Order Totals". Help and suggestions are very much appreciated! And please do not reply that I should ask somewhere else, there seems to be no thread for Sales Report 2 and since it doesnt show in Customer Order Totals either I thought I could ask here! Thanks!

 

I suppose most of you are using some kind of sales reports.

Link to comment
Share on other sites

If you haven't done so already then try setting the Order Total settings so that Total comes after Discount Coupons and Gift Vouchers.

 

Vger

I do want it to be applied to shipping, and I have it set up as such per the post install instructions. I do not have Paypal IPN installed, I am just using the paypal function that comes in the original OS Commerce Download. Do I need to install the Paypal IPN for paypal to work correctly?

 

There is only an issue if the amount due is greater than $0 but less than $5. If the Voucher or the Coupon is enough to pay for PART of the shipping but not ALL of the shipping then you end up with a negative value in paypal.

Link to comment
Share on other sites

Gift Vouchers are products, so their sale does show up under Products Purchased. There's no reason why their use or the use of Discount Coupons show show up in any Sales Report, because they're not sales.

 

Vger

I need to ask which sales reports you are using? Discount Copupons (I have not tried vouchers) wont show up in Sales Report 2 or even in the standard "Customer Order Totals". Help and suggestions are very much appreciated! And please do not reply that I should ask somewhere else, there seems to be no thread for Sales Report 2 and since it doesnt show in Customer Order Totals either I thought I could ask here! Thanks!

 

I suppose most of you are using some kind of sales reports.

Link to comment
Share on other sites

Dear all and Vger,

 

Great job on this contribution! After meddling around with it for some time, I decide to consult the GURU himself! I came down with an error when I click on the create account button after applying CCGV(trad).

 

Fatal error: Cannot redeclare tep_show_category() (previously declared in c:\program files\easyphp1-8\www\osc\includes\header.php:136) in c:\program files\easyphp1-8\www\osc\includes\boxes\categories.php on line 13

 

 

Kindly let me know how I should go correct this thingy? Pardon my nOobiness. Any help is greatly appreciated!!

 

mArTin!

Link to comment
Share on other sites

If you haven't done so already then try setting the Order Total settings so that Total comes after Discount Coupons and Gift Vouchers.

 

Vger

 

I have done this with no success. I have also set it up to recalculate tax and to not recalculate tax. I have tried quite a few combinations but none of them have worked.

 

Again, oddly enough , it only is an issue if the GV balance covers PART of the shipping. If the balance isn't great enough to cover the Sub-total then there is no problem, and if the balance covers ALL the shipping there is not problem.

 

It is almost as if something is set to remove the shipping charge. When you go to paypal the shipping charge shows zero (which causes the negative amount due) but it doesn't do this under any other circumstance.

 

Is there a way to make it so that it doesn't change the shipping amount to zero in paypal.

Link to comment
Share on other sites

Is there a way to make it so that it doesn't change the shipping amount to zero in paypal.

 

In the circumstances you describe, it would seem that the answer is "No". I've just been through the thread for the other versions of CCGV and this has been a problem with all of them with the standard pay pal module. It seems that the only solution is to use the osCommerce Pay Pal IPN, but if you do that then don't forget to apply the Tax Fix located here:

http://www.oscommerce.com/community/contri...pal+ipn+tax+fix

 

Vger

Link to comment
Share on other sites

In the circumstances you describe, it would seem that the answer is "No". I've just been through the thread for the other versions of CCGV and this has been a problem with all of them with the standard pay pal module. It seems that the only solution is to use the osCommerce Pay Pal IPN, but if you do that then don't forget to apply the Tax Fix located here:

http://www.oscommerce.com/community/contri...pal+ipn+tax+fix

 

Vger

 

 

I just played with a few things and I think I have to agree with you. OSCommerce sends the total over as a negative amount because the shipping charges are sent separately...and when paypal gets a negative amount it does not include the shipping amount.

 

Okay...I am off to attempt The Paypal IPN Contribution.

 

Thank you for all of your help.

Link to comment
Share on other sites

The Guru herself she says - your header.php (by default) has 87 lines - so it must be heavily modified if it has 136 on your site.

 

Line 13 of categories.php has this code:

function tep_show_category($counter) {

 

It looks as though line 136 of your header.php also has this code.

 

But why that would create an error in create_account.php is a mystery, because that file only calls in header.php and not categories.php

 

Vger

Dear all and Vger,

 

Great job on this contribution! After meddling around with it for some time, I decide to consult the GURU himself! I came down with an error when I click on the create account button after applying CCGV(trad).

 

Fatal error: Cannot redeclare tep_show_category() (previously declared in c:\program files\easyphp1-8\www\osc\includes\header.php:136) in c:\program files\easyphp1-8\www\osc\includes\boxes\categories.php on line 13

 

 

Kindly let me know how I should go correct this thingy? Pardon my nOobiness. Any help is greatly appreciated!!

 

mArTin!

Link to comment
Share on other sites

In the circumstances you describe, it would seem that the answer is "No". I've just been through the thread for the other versions of CCGV and this has been a problem with all of them with the standard pay pal module. It seems that the only solution is to use the osCommerce Pay Pal IPN, but if you do that then don't forget to apply the Tax Fix located here:

http://www.oscommerce.com/community/contri...pal+ipn+tax+fix

 

Vger

 

Just FYI for anyone having the same issue, I just installed the paypal IPM contribution and am still having the same problem. I have it set to Aggregate, but it is still sending a negative total to paypal.

Link to comment
Share on other sites

I'm not sure I understand what you mean by deleting gift vouchers that are not in the queue. Gift Vouchers are products and can be deleted and edited like any other product.

 

If a Gift Voucher has been sent but is not in the queue then it means that no one has yet attempted to redeem it. As soon as a redemption is attempted it should appear in the queue and can then be deleted.

 

If one has been directly mailed out by admin then it cannot be edited at that stage, but before sending it can be edited.

 

Vger

Link to comment
Share on other sites

I'm not sure I understand what you mean by deleting gift vouchers that are not in the queue. Gift Vouchers are products and can be deleted and edited like any other product.

 

If a Gift Voucher has been sent but is not in the queue then it means that no one has yet attempted to redeem it. As soon as a redemption is attempted it should appear in the queue and can then be deleted.

 

If one has been directly mailed out by admin then it cannot be edited at that stage, but before sending it can be edited.

 

Vger

 

I am refering to the gift vouchers that have already been sent and/or redeemed. Under the list of Gift Vouchers sent is there a way to edit or delete them?

 

For example, if I send a fidt voucher as admin to a customer and AFTER I send it I notice an error in the amount, is there a way for me to edit it once it has been sent?

 

And the vouchers that are old and have been redeemed, is there a way to delete them from the GIFT VOUCHER SENT page?

 

Thanks

Link to comment
Share on other sites

No, you obviously can't edit a voucher after you have emailed it to someone. But the point about the list of Sent Gift Vouchers is valid and I will see about adding a delete function to that list. That would be useful.

 

Presently the only way to delete them would be via the database using phpMyAdmin.

 

Vger

Link to comment
Share on other sites

No, you obviously can't edit a voucher after you have emailed it to someone. But the point about the list of Sent Gift Vouchers is valid and I will see about adding a delete function to that list. That would be useful.

 

Presently the only way to delete them would be via the database using phpMyAdmin.

 

Vger

 

Thanks for all your help!

Link to comment
Share on other sites

when I put a Voucher alone to a shopping cart I face this problem in checkout_confrirmation.php:

"Delivery Address (Edit)

 

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/carpe67/public_html/lokalny-net/includes/functions/general.php on line 46

 

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/carpe67/public_html/lokalny-net/includes/functions/general.php on line 46"

 

in this function:

" function tep_output_string($string, $translate = false, $protected = false) {

if ($protected == true) {

return htmlspecialchars($string);

} else {

if ($translate == false) {

return tep_parse_input_field_data($string, array('"' => '"'));

} else {

return tep_parse_input_field_data($string, $translate);

}

}

}

"

---

when I got anything "material" in cart all's OK.

 

What may be a problem?

Link to comment
Share on other sites

Gift Vouchers are products, so their sale does show up under Products Purchased. There's no reason why their use or the use of Discount Coupons show show up in any Sales Report, because they're not sales.

 

Vger

 

Ok, sales report may be the wrong word, but I can't understand how to easily see the revenue when using coupons.

Link to comment
Share on other sites

Dear Vger,

 

Thank you for replying! I am so sorry for this. "himself". Please accept my apologies!

 

I will try to troubleshoot the problem and get back to you guys!

Thanks a lot Vger!!! The GURU herself has spoken!

 

 

mArtin!

 

 

 

The Guru herself she says - your header.php (by default) has 87 lines - so it must be heavily modified if it has 136 on your site.

 

Line 13 of categories.php has this code:

function tep_show_category($counter) {

 

It looks as though line 136 of your header.php also has this code.

 

But why that would create an error in create_account.php is a mystery, because that file only calls in header.php and not categories.php

 

Vger

Link to comment
Share on other sites

when I put a Voucher alone to a shopping cart I face this problem in checkout_confrirmation.php:

"Delivery Address (Edit)

 

<--->

}

}

"

---

when I got anything "material" in cart all's OK.

 

What may be a problem?

 

I noticed that it happens with enable download set to true

Link to comment
Share on other sites

Hi, When you are on these forums if you input this into the Google Search Box and select Current Site it will give you thousands of hits - and one of them must solve your problem:

 

Warning: htmlspecialchars() expects parameter 1 to be string

 

Vger

 

when I put a Voucher alone to a shopping cart I face this problem in checkout_confrirmation.php:

"Delivery Address (Edit)

 

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/carpe67/public_html/lokalny-net/includes/functions/general.php on line 46

 

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/carpe67/public_html/lokalny-net/includes/functions/general.php on line 46"

 

in this function:

" function tep_output_string($string, $translate = false, $protected = false) {

if ($protected == true) {

return htmlspecialchars($string);

} else {

if ($translate == false) {

return tep_parse_input_field_data($string, array('"' => '"'));

} else {

return tep_parse_input_field_data($string, $translate);

}

}

}

"

---

when I got anything "material" in cart all's OK.

 

What may be a problem?

Link to comment
Share on other sites

Obviously the sales made using discount coupons show up as sales, but it has never been a function of CCGV to show which sales were made involving the use of a discount coupon.

 

Vger

Ok, sales report may be the wrong word, but I can't understand how to easily see the revenue when using coupons.
Link to comment
Share on other sites

Hi Vger,

 

Thanks for your reply earlier on! After probing here and there, I managed to solve the old problem by manually editing the files. That solved the old problem but a new one came up. When I clicked on the link in the email to "claim" my own voucher, I was led to my page and after logging in as a customer, I was faced with the following error. Any suggestions on how tis problem can be solved? Anyone? Thanks a lot!

 

mArtin!

 

Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/tige8580/public_html/store/includes/header.php:136) in /home/tige8580/public_html/store/includes/boxes/categories.php on line 59

The Guru herself she says - your header.php (by default) has 87 lines - so it must be heavily modified if it has 136 on your site.

 

Line 13 of categories.php has this code:

function tep_show_category($counter) {

 

It looks as though line 136 of your header.php also has this code.

 

But why that would create an error in create_account.php is a mystery, because that file only calls in header.php and not categories.php

 

Vger

Edited by martin000
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...