Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Any php experts there?


jhdesign

Recommended Posts

I'd like to add the option during checkout_confirmation.php to give users option to purchase shipping confirmation for $0.50

 

I'm wondering if any php expert can assist me with the code for this.

 

Basically a user would hit a button and it would add the $0.50 to their total - it can be at any stage of checkout not necessarly checkout_confirmation.

 

Any ideas - suggestions - help is greatly appreciated!

 

Jacob

Link to comment
Share on other sites

I'd like to add the option during checkout_confirmation.php to give users option to purchase shipping confirmation for $0.50

 

I'm wondering if any php expert can assist me with the code for this.

 

Basically a user would hit a button and it would add the $0.50 to their total - it can be at any stage of checkout not necessarly checkout_confirmation.

 

Any ideas - suggestions - help is greatly appreciated!

 

Jacob

 

You could set this up as a shipping module

Many Thanks

 

Simon

Your Media Zone

 

Remember to ALWAYS BACKUP

Life is like box of chocs - You never know what your gonna get!

Do you feel lucky punk? Well do ya!

P-A-R-T WHY COS I GOTTA!

Link to comment
Share on other sites

you can also set this up as an order total module. Check the giftwrapping contrib for ideas

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

You could set this up as a shipping module

 

As a shipping module you can only select 1 item, this is more of an ADDON item that is optional hence I need a checkbox or a button that will add to total instantly.

 

Any other ideas?

 

Jacob

Link to comment
Share on other sites

you can also set this up as an order total module. Check the giftwrapping contrib for ideas

 

Thanks Monika. I installed giftwrap but get this error after clicking continue in checkout_shipping

 

Fatal error: Cannot use object of type __PHP_Incomplete_Class as array in /home/crust/public_html/includes/classes/gift.php on line 25

 

Didnt find anything on forums, can ideas?

 

Jacob

Link to comment
Share on other sites

nope sorry, have not used that contrib ...there should be a support thread though. I have written my own gift wrapping module which will be released in my ...(I must not talk about it here)

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

nope sorry, have not used that contrib ...there should be a support thread though. I have written my own gift wrapping module which will be released in my ...(I must not talk about it here)

 

Isnt there a simple way of doing this? All I need is an option (if checked) will add $0.50 to total order.

 

Jacob

Link to comment
Share on other sites

  • 3 years later...

I had this problem after upgrading from PHP/Mysql 4 to 5 on a new server:

 

"Fatal error: Cannot use object of type __PHP_Incomplete_Class as array in /home/crust/public_html/includes/classes/gift.php on line 25"

 

Couldnt find aNY help...but managed to solve it...if you get the above error comment out the following piece of code on checkout_confirmation.php in the catalog dir:

 

// ---commented me out---

//require(DIR_WS_CLASSES . 'gift.php');

// $giftwrap_modules = new gift($giftwrap);

 

for some reason these lines break the class..and prevent checkout_confirmation.php from working..dont know why but i suspect these lines arnt required..it worked for me anyway and the giftwrap module still works!

 

Hope this helps someone out there! :)

MN

Link to comment
Share on other sites

I'd like to add the option during checkout_confirmation.php to give users option to purchase shipping confirmation for $0.50

 

Jacob

 

Hey Jacob,

 

I'm not sure who you ship with, I use USPS.

 

I didn't give my customers the option, rather I included shipping insurance and delivery confirmation into the cost of the shipping charge.

 

Why make it an option instead of automatically including it?

 

The contribution I used - USPS Methods 3 w/insurance

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...