Tags/topics: 
1
Answers
Vote up!
0
Vote down!

Using commerce to buy when data is in a different content type

Thank you for taking the time to look at my question!

I've inherited a website written for keeping track of physics lecture demonstrations. Ideally this website would be developed so that professors can click on a given demonstration , put it in a shopping cart, and then check out the demos to send a request to the demonstration staff. This is very similar to Commerce's basic functionality, but the demos' that are being ``bought'' are stored in a structure (demonstration page) that is separate from the product type created with the commerce modules.

The whole website is created and running at this point (berkeleyphysicsdemos.net) and the commerce modules weren't part of any of the creation of the initial website. Installing them is no problem...presently I'm working with a sandbox website with commerce (and attendant modules) installed and I'm trying to create relationship between the special structure type demonstration page and product pages in such a way as to put the buy button on demonstration pages.

I would appreciate any advice or guidance that someone would like to offer.

Thank you,
James Little

Asked by: James Little
on June 6, 2012

1 Answer

Vote up!
2
Vote down!

Hey James,
If I understand you correctly, the solution is simple. You just need to add a new product reference field to your existing content type (Configuration > Content Types > Manage Fields). Then edit the content and link it to the product that you are trying to sell through the content type.

Andy Giles
Answer by: Andy Giles
Posted: Jun 6, 2012

Comments

I have tried this approach before and, I suppose, gotten lost in the minutia of detail of Drupal (I'm a newbie, and so fumbling somewhat in the dark) but, buoyed by your answer, I'll look at this approach again.

- James Little on June 6, 2012

I've tried this approach without success...but the fact that you mention it again will cause me to take another run at it. Thanks!

- James Little on June 6, 2012