Jump to content


Photo

Products with Images

product products picture imrport staff response

  • Please log in to reply
5 replies to this topic

#1 Rene

Rene

    Advanced Member

  • Members
  • PipPipPip
  • 110 posts

Posted 08 January 2015 - 09:48 AM

Hello Community,

I would like to be able to upoad images to a folder on the server and than import a csv-file with information of my products. Included will be a link to the file on the server! So next to the product I can see the picture than!

 

Thanks!



#2 X2Raymond

X2Raymond

    Advanced Member

  • Administrators
  • 972 posts
  • LocationSanta Cruz, CA

Posted 08 January 2015 - 10:27 AM

Hello Rene,

 

You will need to add two new fields to the Products module to do this. The first should be a URL field for the picture URL, and the second should be a custom field of type "HTML" for the actual picture.

 

For the template, add an HTML img tag, and for the src attribute, use the new picture URL field that you previously added to products. You can also add CSS for styling. Please see the attached image for an example in the field editor.

<img src="{c_pictureUrl}" />

You can then import your CSV file with the URLs to the images and test the fields and form layouts.

 

Raymond

Attached Files



#3 Rene

Rene

    Advanced Member

  • Members
  • PipPipPip
  • 110 posts

Posted 08 January 2015 - 11:35 PM

thanks Raymond, I will give it a try in a few minutes.



#4 Rene

Rene

    Advanced Member

  • Members
  • PipPipPip
  • 110 posts

Posted 21 January 2015 - 08:57 AM

Hello Raymond,

today I tried that trick from above. It is not working. The Fields are all correct, but when I try to create the Picture field that you demonstrated on the screenshot, I'm missing the option "adjustments" under "Attributes"



#5 Rene

Rene

    Advanced Member

  • Members
  • PipPipPip
  • 110 posts

Posted 21 January 2015 - 09:23 AM

Ok, I chose the dropdown menu item "Picture URL" which I previosly created. than there is some text inserted. Now I open one of the records but than in the Picture field I only see the link.



#6 X2Raymond

X2Raymond

    Advanced Member

  • Administrators
  • 972 posts
  • LocationSanta Cruz, CA

Posted 21 January 2015 - 02:52 PM

Yes, that dropdown is used to insert attributes, it's not required that you use "adjustments," sorry to mislead in the screenshot.

 

Please verify the fields: there should be two new custom fields, one of type "url" for the link, and another of type "custom". The custom HTML in the second field should use the insertable attribute associated with the first URL field. In the layouts, make sure the appropriate field is being used: I customized my products module to display the URL field on edits, and display the custom image HTML on views.







Also tagged with one or more of these keywords: product, products, picture, imrport, staff response

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users