Bukimedia / PrestaSharp

CSharp .Net client library for the PrestaShop API via web service
GNU General Public License v3.0
155 stars 152 forks source link

Is there a way to add Related Products? #306

Closed VictorALopes closed 5 years ago

VictorALopes commented 6 years ago

I have a question, not an issue. Is there any way to add Related Products Id's to one product?

I've searched the 'product' object attributes but didn't found one that sounds suitable for this.

mowcixo commented 5 years ago

Hello @VictorALopes, sorry for the delay.

You can add related products to one product by filling its:

product.associations.accesories

Which is a list of AuxEntities.product, that's basically a class with an id property.

I recommend you to use our slack group in the future when you want to ask a question or need help: https://join.slack.com/t/prestasharp/shared_invite/enQtNTM2OTI1OTg0NzUyLTY4NDdkZDFmY2EwMGE4MTMzZjk5YzZiMTk3MzUwNzUxNTdhMWEwZjFjNDJiZTIyMjI0MDM0NTcwMzIzNGI0Njc

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.