Skip Navigation

[Resolved] Fetch Woocommerce Product Attribute and User Data before adding to cart

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue here is that the user wanted to fetch the Woocommerce Product Attribute and User Data before adding to cart

Solution:

Unfortunately something like this will required a great deal of custom code, which is actually out of the scope of our support forum.

What I would recommend that you do is to contact one of the registered contractors on our site in order to get the best advise and help on implementing this.

This support ticket is created 5 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by puneetS-3 5 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#1288675

Tell us what you are trying to do?
I want to add products to a cart based on their 'attribute' and 'user' data. I have schools as products, each school has multiple classes open for admissions, 'classes' are the product attribute, parents are the customers, who have multiple children added in their profiles. I want that before any parent(customer) can add a particular school(product) to a cart, there should be a pop-up to select the class(product attribute) and the particular child(user data) for which the school(product) is being added to the cart.

Is there any documentation that you are following? Nothing as of now.

Is there a similar example that we can see? I don't know.

What is the link to your site? hidden link

#1288859

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Puneet,

Thank you for contacting our support forum.

Unfortunately something like this will required a great deal of custom code, which is actually out of the scope of our support forum.

What I would recommend that you do is to contact one of the registered contractors on our site in order to get the best advise and help on implementing this.

Thanks,
Shane

#1289283

My issue is resolved now. Thank you!