Jump to content

Function to mess with products in cart


stabman

Recommended Posts

This is a 2-part question. First question should be very simple (but hard for a complete beginner like me) and the second is more trickier.

 

I wish to create a function that can change the attributes of the products in my cart (specifically the customized data).

 

1. I need to know the scope. In which file should I write the function and what other files should I account for when writing it?

 

2. Is there a good format for writing the function, particularly in how to access the attributes?

 

I hope I can get some help here.

Link to comment
Share on other sites

It all depends on when you need to change the data. Is it on adding to the shopping cart or is it when the customer places an order (for example - it could be at any point including after the order has been placed). The timing is very important....

Link to comment
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
×
×
  • Create New...