Domanda

Sono uno sviluppatore che lavora su un sito di Magento in cui si tratta di un requisito che un Prodotti per il download è incluso in un raggruppato del prodotto (o, in mancanza, un prodotto fornito).

Capisco che per default Magento non permette questo, ho provato ad aggiungere un prodotto scaricabile nel pannello di amministrazione e non posso gruppo con altri prodotti. C'è un modo per ignorare questo per permettere scaricabili prodotti da aggiungere al Grouped prodotti o in bundle prodotti.

Idealmente una soluzione per lavorare con Grouped prodotti sarebbe la migliore se questo è possibile.

Ho trovato questa discussione sul forum di Magento http://www.magentocommerce.com/ schede / viewthread / 27120 / ma sul post di shawnmck non so cosa intende per il 'required_options' di bandiera.

Qualsiasi aiuto sarebbe molto apprezzato, grazie. Per favore fatemi sapere se è necessario qualsiasi ulteriore informazione. Sto lavorando con Magento Community 1.7.0.2.

È stato utile?

Soluzione

By looking at http://www.magentocommerce.com/boards/viewthread/27120/ and following shawnmck's instructions I managed to find a solution to my problem, hopefully this might help someone else.

When you create Downloadable Products and set "Links can be purchased separately" to "Yes" when you create the product, this sets the required_fields field in the database (in catalog_product_entity table) to 1 for that product. For Simple/Downloadable products to be able to be added to a Grouped Product, their value for required_fields must be 0. The "Links can be purchased separately" must then be set as "No" from the point at which the product is created (and never changed to "Yes"). If you change it to "Yes" and then back to "No" the required_fields will be set to 1 and will not change back to 0, even if you switch back to "No" (I think this may be a small Magento bug).

The only way then that I have found to change required_fields from 1 to 0 manually once the product has been created is to follow shawnmck's steps: in the "Custom Options" tab, add a Custom Option as required, Save, then change the option to Not Required, Save, then delete the option altogether, then Save. As you can see this is a bit of an effort so I would suggest making sure "Links can be purchased separately" is set to "No" from the start!

Altri suggerimenti

I have just tested in a stock magento 1.7.0.2, and created a downloadable product. I made sure the 'Links can be purchased separately' is set to 'NO'

I then created a test grouped product, and could add the downloadable product fine as an option. Thus it is possible, out the box, to link downloadable to grouped.

So the question is, why can't you....

Lets try some stuff, and see if we can get to the bottom of your issue :)

Can you explain what happens if you try? Have you tried creating a basic/new downloadable, which has onl the stock/default attributes assigned to it, and see if that works.

It is very possible one of your attributes is the issue.

enter image description here

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a magento.stackexchange
scroll top