Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Checkout Shipping page


jdood

Recommended Posts

Posted

Hi,

 

i am modifying OSC for a client and i need your help.

I need to check on checkout_shipping.php, checkout_payment.php and checkout_confirmation.php pages if the cart contains certain product (let's say product_id 69). How do I do this?

The reason why I need this is because if a customer decides to buy a product_id = 69 I need to display one more comment box

else

one is enough.

 

I hope you understand me.

 

thanks,

 

jd

Posted
Hi,

 

i am modifying OSC for a client and i need your help.

I need to check on checkout_shipping.php, checkout_payment.php and checkout_confirmation.php pages if the cart contains certain product (let's say product_id 69). How do I do this?

The reason why I need this is because if a customer decides to buy a product_id = 69 I need to display one more comment box

else

one is enough.

 

I hope you understand me.

 

thanks,

 

jd

 

What do you mean "else one is enough"... as in only 1 per customer?

Posted
What do you mean "else one is enough"... as in only 1 per customer?

 

I meant, if a customer add to his cart product_id = 69 show another (one extra) comment text area, otherwise dont do anything.

 

I need a code that will look at the customer's cart and check if there is a product with a product_id 69. If there is i need to show extra text area, otherwise i want to leave it as it is.

 

thanks

 

nn

Posted
I meant, if a customer add to his cart product_id = 69 show another (one extra) comment text area, otherwise dont do anything.

 

I need a code that will look at the customer's cart and check if there is a product with a product_id 69. If there is i need to show extra text area, otherwise i want to leave it as it is.

 

thanks

 

nn

 

 

I see what you are saying... why do you want to wait until it is in the cart? It would be easier to add the comment by adding it as an attribute to go along with the product..? That way the same mod could be used for future products and you won't hardcode for just that one product...

 

Have you tried "Product Attributes - Option Type Feature"?

 

http://www.oscommerce.com/community/contributions,160/

Posted
I see what you are saying... why do you want to wait until it is in the cart? It would be easier to add the comment by adding it as an attribute to go along with the product..? That way the same mod could be used for future products and you won't hardcode for just that one product...

 

Have you tried "Product Attributes - Option Type Feature"?

 

http://www.oscommerce.com/community/contributions,160/

 

 

thanks for the reply. i ll check it out. i ll let you know how it goes.

 

thanks

 

jd

Posted
I see what you are saying... why do you want to wait until it is in the cart? It would be easier to add the comment by adding it as an attribute to go along with the product..? That way the same mod could be used for future products and you won't hardcode for just that one product...

 

Have you tried "Product Attributes - Option Type Feature"?

 

http://www.oscommerce.com/community/contributions,160/

 

 

Thanks for you help but this one wont work for me.

this contribution is very good and i m def. gonna use it for soemthing else.

 

I need the info that customer enters for a specific product be saved under order_history_table, and then showed on /admin/orders page.

 

I have all that code ready, i just need a way to find if the certain item is in the cart when i am on the checkout pages.

It doesnt matter that this is going to be hard coded.

 

 

 

any other thoughts?

Posted
Thanks for you help but this one wont work for me.

this contribution is very good and i m def. gonna use it for soemthing else.

 

I need the info that customer enters for a specific product be saved under order_history_table, and then showed on /admin/orders page.

 

I have all that code ready, i just need a way to find if the certain item is in the cart when i am on the checkout pages.

It doesnt matter that this is going to be hard coded.

any other thoughts?

 

The text input for the above mod will show on both history and admin/orders and will be attached to that specific product.

 

Can't really think of anything else besides you putting in a code for if product_id = 69 { do this } else { nothing }...

Posted
I see what you are saying... why do you want to wait until it is in the cart? It would be easier to add the comment by adding it as an attribute to go along with the product..? That way the same mod could be used for future products and you won't hardcode for just that one product...

 

Have you tried "Product Attributes - Option Type Feature"?

 

http://www.oscommerce.com/community/contributions,160/

 

 

hey thanks a lot! this is exactly what i needed.

i didnt see the atributed on the orders page b4

it works like a champ now!

 

thanks a lot!

 

great contribution!

 

jd

Archived

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

×
×
  • Create New...