[Skip to main content](#vessel-content)

#   csv import url's for image

##

- **[snmp](/forum/user/6512-snmp "View snmp's Profile")**
- [![snmp's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6512-snmp "View snmp's Profile") Topic Author
- [ Offline](/forum/user/6512-snmp)

Less More

- Posts: 14
- Thank you received: 0
-
-

14 years 8 months ago [\#42136](#42136) by [snmp](/forum/user/6512-snmp "View snmp's Profile")  *[csv import url's for image](/forum/4-how-to/42136-csv-import-urls-for-image#42136 "i cannot seem to get it grab images from url, my distributor has 282k worth of products, all of which that i distribute. its over 2tb worth of images, i can manually complete this process by pasting...")* was created by *[snmp](/forum/user/6512-snmp "View snmp's Profile")*

i cannot seem to get it grab images from url, my distributor has 282k worth of products, all of which that i distribute. its over 2tb worth of images, i can manually complete this process by pasting the link under the add images, but it only loads the name when i use the csv, honestly, 99% of all software offer the option to use a url, even though the process can be achieved manually, i would love someone to show me a way to automate this. please and thank you. also kudos to the devs on a great cart, by far the most fluid and easy to use ive seen.

Josh

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyMTM2LWNzdi1pbXBvcnQtdXJscy1mb3ItaW1hZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[snmp](/forum/user/6512-snmp "View snmp's Profile")**
- [![snmp's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6512-snmp "View snmp's Profile") Topic Author
- [ Offline](/forum/user/6512-snmp)

Less More

- Posts: 14
- Thank you received: 0
-
-

14 years 8 months ago [\#42146](#42146) by [snmp](/forum/user/6512-snmp "View snmp's Profile")  Replied by *[snmp](/forum/user/6512-snmp "View snmp's Profile")* on topic *[Re: csv import url's for image](/forum/4-how-to/42136-csv-import-urls-for-image#42146 "i cannot seem to get it grab images from url, my distributor has 282k worth of products, all of which that i distribute. its over 2tb worth of images, i can manually complete this process by pasting...")*

nvm,

using my elite excel skills &lt;---(lol) i was able to create a spreadsheet that automagically creates each filename and concatenates wget and .jpg to the url and dumps to .sh file which can be placed at the /uploads root and ran. if anyone else has a massive inventory and needs a csv solution like this email me at jsox79@gmail.com

thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyMTM2LWNzdi1pbXBvcnQtdXJscy1mb3ItaW1hZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

14 years 8 months ago [\#42188](#42188) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: csv import url's for image](/forum/4-how-to/42136-csv-import-urls-for-image#42188 "i cannot seem to get it grab images from url, my distributor has 282k worth of products, all of which that i distribute. its over 2tb worth of images, i can manually complete this process by pasting...")*

Hi,

You can directly put the URL of your images in the "images" column of your CSVs and HikaShop will download them automatically to your website in order to attach them to your products.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyMTM2LWNzdi1pbXBvcnQtdXJscy1mb3ItaW1hZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[snmp](/forum/user/6512-snmp "View snmp's Profile")**
- [![snmp's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6512-snmp "View snmp's Profile") Topic Author
- [ Offline](/forum/user/6512-snmp)

Less More

- Posts: 14
- Thank you received: 0
-
-

14 years 8 months ago -  14 years 8 months ago [\#42932](#42932) by [snmp](/forum/user/6512-snmp "View snmp's Profile")  Replied by *[snmp](/forum/user/6512-snmp "View snmp's Profile")* on topic *[Re: csv import url's for image](/forum/4-how-to/42136-csv-import-urls-for-image#42932 "i cannot seem to get it grab images from url, my distributor has 282k worth of products, all of which that i distribute. its over 2tb worth of images, i can manually complete this process by pasting...")*

not so much
it omits the .jpg suffix, no matter what i do
also i need to know how to do multiple images per product
they way i described earlier works just fine, but adding url doesnt work
also i need a way to add an option, id like to be able to see the original price logged in as superuser, i have a formula that calculates my price_value column based on percentage and cost amount id like to be able to add a characteristic that allows me to do this.
thanks in advance

Last edit: 14 years 8 months ago by [snmp](/forum/user/6512-snmp "View snmp's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyMTM2LWNzdi1pbXBvcnQtdXJscy1mb3ItaW1hZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

14 years 8 months ago [\#43035](#43035) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: csv import url's for image](/forum/4-how-to/42136-csv-import-urls-for-image#43035 "i cannot seem to get it grab images from url, my distributor has 282k worth of products, all of which that i distribute. its over 2tb worth of images, i can manually complete this process by pasting...")*

What do you mean by "it omits the suffix" ?
This works fine on our end. The image is properly added to the product.
But yes, in the "file name" information, the extension is removed and only the name of the file is kept. That's normal since that's a different field than the "file path" where you have the filename of the file.

If you want to change that behavior, you'll have to change the code in the _insertFiles function of the administrator/components/com_hikashop/helper/import.php

Please give more information on what you want to do regarding prices and characteristics. I didn't understand what is the "orginal" price you're talking about and how it's related to characteristics selection and super admin accounts.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyMTM2LWNzdi1pbXBvcnQtdXJscy1mb3ItaW1hZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[snmp](/forum/user/6512-snmp "View snmp's Profile")**
- [![snmp's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6512-snmp "View snmp's Profile") Topic Author
- [ Offline](/forum/user/6512-snmp)

Less More

- Posts: 14
- Thank you received: 0
-
-

14 years 8 months ago [\#43057](#43057) by [snmp](/forum/user/6512-snmp "View snmp's Profile")  Replied by *[snmp](/forum/user/6512-snmp "View snmp's Profile")* on topic *[Re: csv import url's for image](/forum/4-how-to/42136-csv-import-urls-for-image#43057 "i cannot seem to get it grab images from url, my distributor has 282k worth of products, all of which that i distribute. its over 2tb worth of images, i can manually complete this process by pasting...")*

nicolas,

thanks for your response.
ive tried adding via text area, and csv
product_code,images
100003,[ xxxxxxx.com](http://xxxxxxx.com)

and it never works
as far as pricing goes, i have over 300k worth of products so i cannot manipulate every item with a individualized price markup. what i have to do is edit my csv using a formula and another column basically if(e2=&lt;500,e2*1.2,if(e2=&gt;750,e2*1.15, and so on and so forth. this calculate my price markup for me based off of the items cost. what i want is to be able to have an original_price column for the original price of the item and have it only viewable by a superuser, basically it doesnt show up unless admin is viewing it. we are using the shop for our physical location as well and this lets my employees and myself see the markup and profit margin on each item, in the case we need to provide a discount to price match or other discount. thanks again

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyMTM2LWNzdi1pbXBvcnQtdXJscy1mb3ItaW1hZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

14 years 8 months ago [\#43200](#43200) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: csv import url's for image](/forum/4-how-to/42136-csv-import-urls-for-image#43200 "i cannot seem to get it grab images from url, my distributor has 282k worth of products, all of which that i distribute. its over 2tb worth of images, i can manually complete this process by pasting...")*

Hi,

I tested the import with an image URL just to make sure that it's working. I didn't had any problem.

I used that CSV: Code:

product_code,images my_prod1,http://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png

Why not just create a custom field of the table "product" (commercial editions) via the menu Display-&gt;Custom fields ? That will allow you to enter your product original price in the back end. You can choose whether you want to display it or not on the front end and with the ACL support of the Business edition, you can even limit the display based on user groups.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyMTM2LWNzdi1pbXBvcnQtdXJscy1mb3ItaW1hZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[snmp](/forum/user/6512-snmp "View snmp's Profile")**
- [![snmp's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6512-snmp "View snmp's Profile") Topic Author
- [ Offline](/forum/user/6512-snmp)

Less More

- Posts: 14
- Thank you received: 0
-
-

14 years 8 months ago [\#43375](#43375) by [snmp](/forum/user/6512-snmp "View snmp's Profile")  Replied by *[snmp](/forum/user/6512-snmp "View snmp's Profile")* on topic *[Re: csv import url's for image](/forum/4-how-to/42136-csv-import-urls-for-image#43375 "i cannot seem to get it grab images from url, my distributor has 282k worth of products, all of which that i distribute. its over 2tb worth of images, i can manually complete this process by pasting...")*

nicholas,

i need to be able to update the original price just as i would the adjusted price. i need it to update automatically via csv. 100s of 1000s of products i do not have time to enter the original price for all of them. is there a way to get hika to grab via csv?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyMTM2LWNzdi1pbXBvcnQtdXJscy1mb3ItaW1hZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

14 years 8 months ago [\#43501](#43501) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: csv import url's for image](/forum/4-how-to/42136-csv-import-urls-for-image#43501 "i cannot seem to get it grab images from url, my distributor has 282k worth of products, all of which that i distribute. its over 2tb worth of images, i can manually complete this process by pasting...")*

Sure. Once you created the custom product field in HikaShop, the field will be available in the export CSV and you will also be able to import it via CSV. You will need to use the "column name" value of your custom field as column name in your CSV.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyMTM2LWNzdi1pbXBvcnQtdXJscy1mb3ItaW1hZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[snmp](/forum/user/6512-snmp "View snmp's Profile")**
- [![snmp's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/6512-snmp "View snmp's Profile") Topic Author
- [ Offline](/forum/user/6512-snmp)

Less More

- Posts: 14
- Thank you received: 0
-
-

14 years 8 months ago [\#43512](#43512) by [snmp](/forum/user/6512-snmp "View snmp's Profile")  Replied by *[snmp](/forum/user/6512-snmp "View snmp's Profile")* on topic *[Re: csv import url's for image](/forum/4-how-to/42136-csv-import-urls-for-image#43512 "i cannot seem to get it grab images from url, my distributor has 282k worth of products, all of which that i distribute. its over 2tb worth of images, i can manually complete this process by pasting...")*

i dont see the option available in existing products, however it is available when i add a product, i tried importing a csv and that was a no go. i need it to be available with exisitng products

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyMTM2LWNzdi1pbXBvcnQtdXJscy1mb3ItaW1hZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

14 years 8 months ago [\#43513](#43513) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: csv import url's for image](/forum/4-how-to/42136-csv-import-urls-for-image#43513 "i cannot seem to get it grab images from url, my distributor has 282k worth of products, all of which that i distribute. its over 2tb worth of images, i can manually complete this process by pasting...")*

Custom fields will of course display for existing products too.
They are also handled by the import.
If, that's not working, it must come from the configuration of the custom field (or the CSV not valid).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyMTM2LWNzdi1pbXBvcnQtdXJscy1mb3ItaW1hZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[hactic](/forum/user/32281-hactic "View hactic's Profile")**
- [![hactic's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32281-hactic "View hactic's Profile")
- [ Offline](/forum/user/32281-hactic)

Less More

- Posts: 35
- Thank you received: 3
-
- [](https://shop.smartgart.com)
-

12 years 1 month ago [\#176870](#176870) by [hactic](/forum/user/32281-hactic "View hactic's Profile")  Replied by *[hactic](/forum/user/32281-hactic "View hactic's Profile")* on topic *[Re: csv import url's for image](/forum/4-how-to/42136-csv-import-urls-for-image#176870 "i cannot seem to get it grab images from url, my distributor has 282k worth of products, all of which that i distribute. its over 2tb worth of images, i can manually complete this process by pasting...")*

Hi there,

slightly off-topic, but I also would like to factor in the profit margin. I. e. I obtain a CSV file from a wholesale supplier, which in one column contains the B2B price I have to pay for the product (low), and in another column contains the suggested retail price with a certain profit margin (high).

Now, I would like to explicitly specify that profit margin myself, based on the low price I have to pay.

I would like to see such functionality in Hikashop (similar to the formula that is suggested above), or maybe some can suggest a sample pre-processing script (sed, awk?) that factors in that logic.

Also, I am looking for a simple (pre-processor) mechanism for existing products to map product codes from various wholesale suppliers or from the manufacturer to my product codes. That way I would be more flexible in swapping a supplier.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyMTM2LWNzdi1pbXBvcnQtdXJscy1mb3ItaW1hZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

12 years 1 month ago [\#176912](#176912) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: csv import url's for image](/forum/4-how-to/42136-csv-import-urls-for-image#176912 "i cannot seem to get it grab images from url, my distributor has 282k worth of products, all of which that i distribute. its over 2tb worth of images, i can manually complete this process by pasting...")*

Hi,

There is no such pre processing script that I know of for that (you would have to create it).
For the prices, there is a solution.
You can use a mass action (that you can create via the menu System&gt;Mass actions). You can have it update the price_value of all the products with a percentage of the initial price:
[ www.hikashop.com/support/support/documen...massaction-form.html](http://www.hikashop.com/support/support/documentation/167-massaction-form.html)
[ www.hikashop.com/forum/mass-actions/8611...s-by-percentage.html](http://www.hikashop.com/forum/mass-actions/861153-change-price-of-all-products-by-percentage.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyMTM2LWNzdi1pbXBvcnQtdXJscy1mb3ItaW1hZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[hactic](/forum/user/32281-hactic "View hactic's Profile")**
- [![hactic's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32281-hactic "View hactic's Profile")
- [ Offline](/forum/user/32281-hactic)

Less More

- Posts: 35
- Thank you received: 3
-
- [](https://shop.smartgart.com)
-

12 years 1 month ago [\#176973](#176973) by [hactic](/forum/user/32281-hactic "View hactic's Profile")  Replied by *[hactic](/forum/user/32281-hactic "View hactic's Profile")* on topic *[Re: csv import url's for image](/forum/4-how-to/42136-csv-import-urls-for-image#176973 "i cannot seem to get it grab images from url, my distributor has 282k worth of products, all of which that i distribute. its over 2tb worth of images, i can manually complete this process by pasting...")*

Thanks Nicolas. -- I had a look into awk and coded a simple preprocessor that rearranges the CSV.
Two sample routines quoted below.

best regards

Klaus @hactic

**the price logic:**

BEGIN {
FS = ";";
UST = 1.19;
datestamp = 0; # TODO $(date '+%d/%b/%Y'); # "'"$(date)"'"}'; # +'%Y-%m-%d %r';
}
{
if("Axis" == $4) {
if($10 &lt; 0) ; # error
else if($10 &lt; 500) price = $10 * UST * 1.15;
else if($10 &lt; 1000) price = $10 * UST * 1.10;
else price = $10 * UST * 1.05;

print "product_code;" $3 ";" $5 ";" $10 ";" price ";" $14 ";" $15 ";" datestamp;
}
}
END {

**mapping manufacturer product codes to product\_codes in HikaShop:**

BEGIN {
FS = ";";

while ( (getline line &lt; "map-axis-smartgart.txt") &gt; 0 ) {
split(line, f);
map[f[1]] = f[2];
}
}
{
product_code = "product_code";
if(map[$2] != "")
product_code = map[$2];
print product_code ";" $2 ";" $3 ";" $4 ";" $5 ";" $6 ";" $7 ";" $8
}
END {

}

**map file map-axis-smartgart.txt:**

mfr_code,product_code
0543-001;M3007-P
0515-001;M3007-PV
0556-001;M3027-PVE
...

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzQyMTM2LWNzdi1pbXBvcnQtdXJscy1mb3ItaW1hZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.083 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
