oc-shopaholic / oc-shopaholic-plugin

🛍️ No. 1 e-commerce platform for October CMS
https://shopaholic.one
GNU General Public License v3.0
425 stars 52 forks source link

File attachment property type. #56

Closed mjauvin closed 6 years ago

mjauvin commented 6 years ago

Allow a property type to attach any type of file to a product (e.g. PDF file) not just image.

mjauvin commented 6 years ago

It would be very useful for product manuals, brochures, etc.

kharanenka commented 6 years ago

Hi! Additional properties available in "Properties for Shopaholic" plugin. This plugin support fields with type "mediafinder" and mode "file", "image". If you only need the "product manuals" field, you can easily extend the Product model and the ProductItem class object.

mjauvin commented 6 years ago

I added Propery of type "file" in the demo, and when I tried to assign a file object to a product, I got the following error:

"A widget with class name 'ocmediamanager' has not been bound to the controller" on line 513 of /var/www/ demo-shopaholic.lovata.com/modules/backend/classes/Controller.php

On Fri, Feb 16, 2018 at 1:29 AM, Andrey Kharanenka <notifications@github.com

wrote:

Hi! Additional properties available in "Properties for Shopaholic http://octobercms.com/plugin/lovata-propertiesshopaholic" plugin. This plugin support fields with type "mediafinder" and mode "file", "image". If you only need the "product manuals" field, you can easily extend the Product model and the ProductItem class object.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lovata/oc-shopaholic-plugin/issues/56#issuecomment-366154933, or mute the thread https://github.com/notifications/unsubscribe-auth/AB65vviMi0FghkiEPTuzkPpkyeBHMjLMks5tVSBZgaJpZM4SHa3c .

-- Marc

kharanenka commented 6 years ago

I find your property with name "myfile". I do not have errors when attaching a file, using the media manager. Describe your steps. We have a suspicion that you found the bug of the media manager OctoberCMS.

kharanenka commented 6 years ago

I fill your product. See product page

mjauvin commented 6 years ago

When I click on the folder icon within the "myfile" propery, I get the error I reported earlier.

On Fri, Feb 16, 2018 at 7:47 AM, Andrey Kharanenka <notifications@github.com

wrote:

I fill your product. See product page http://demo-shopaholic.lovata.com/product/myprod2

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lovata/oc-shopaholic-plugin/issues/56#issuecomment-366226638, or mute the thread https://github.com/notifications/unsubscribe-auth/AB65vodK-lYTHoT1M3XKBdw6b2NSzyNUks5tVXjxgaJpZM4SHa3c .

-- Marc

kharanenka commented 6 years ago

Sorry, I made a mistake when configuring the permissions of the manager user. He did not have access to the media store. Added these permission to the manager user. Now everything works correctly.

mjauvin commented 6 years ago

Great, works as expected now! Thanks, you have a really great plugin, will be purchasing soon.

On Fri, Feb 16, 2018 at 8:15 AM, Andrey Kharanenka <notifications@github.com

wrote:

Sorry, I made a mistake when configuring the permissions of the manager user. He did not have access to the media store. Added these permission to the manager user. Now everything works correctly.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lovata/oc-shopaholic-plugin/issues/56#issuecomment-366232076, or mute the thread https://github.com/notifications/unsubscribe-auth/AB65vsq_QvSv3u5C4qnnmbr5HU8bPhZiks5tVX9ugaJpZM4SHa3c .

-- Marc

kharanenka commented 6 years ago

Thank you for your interest in our plugins!