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

#   Import prices

##

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

Less More

- Posts: 1194
- Thank you received: 13
-
-

11 months 4 weeks ago [\#369238](#369238) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  *[Import prices](/forum/37-import-export-csv-xls/909866-import-prices#369238 "Hello ! I have a csv importing quanity field that works perfectly with a mass action I created , trigered with a cron task every 30 minutes. The csv looks like this  Now the client asks to update the column price. Will this work ?  I m asking because I don t want to add new prices. Only replace the existing prices. Like the csv with the quantity does.  Thank you.")* was created by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")*

Hello !
I have a csv importing quanity field that works perfectly with a mass action I created , trigered with a cron task every 30 minutes.
The csv looks like this Code:

product_code;product_quantity 00-00-0000;112.000 00-00-0013;19.000

Now the client asks to update the column price.
Will this work ?
Code:

product_code;price_value,price_access 00-00-0000;66.150,16 ... ...

I m asking because I don t want to add new prices. Only replace the existing prices. Like the csv with the quantity does.

Thank you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy85MDk4NjYtaW1wb3J0LXByaWNlcz90bXBsPW1hcmtkb3du) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14286
-
-

11 months 4 weeks ago [\#369241](#369241) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Import prices](/forum/37-import-export-csv-xls/909866-import-prices#369241 "Hello ! I have a csv importing quanity field that works perfectly with a mass action I created , trigered with a cron task every 30 minutes. The csv looks like this  Now the client asks to update the column price. Will this work ?  I m asking because I don t want to add new prices. Only replace the existing prices. Like the csv with the quantity does.  Thank you.")*

Hi,

This can work, but not like you wrote it. You need to use the same separator for the columns.
So if you use ";" between product_code and price_value, you also need to use ";" between price_value and price_access
Also, the "price_access" column consists of a list of Joomla user group ids separated by a comma and with a comma prepended and appended to that list.
So, if you want a price to be restricted to the user groups with the ids 10 and 16, you would have to write the following in that column: ,10,16,

So, in your example, it should be: Code:

product_code;price_value;price_access 00-00-0000;66.150;,16, ... ...

Also, if you want to import several prices, you need to separate them by a "&#124;" in each price column.
For example, if you want to import a product with a price value of 100 for the users of the user group 10 and a price value of 66.15 for the users of the user group 16, you would need something like this:
Code:

product_code;price_value;price_access 00-00-0000;100&#124;66.15;,10,&#124;,16, ... ...

I would recommend you use the "export" button of the products listing after selecting a product with several prices. You'll see a concrete example of what you need to do if you look at these columns as the export tool respects the format supported by the import tool.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy85MDk4NjYtaW1wb3J0LXByaWNlcz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 1194
- Thank you received: 13
-
-

11 months 2 weeks ago [\#369476](#369476) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Import prices](/forum/37-import-export-csv-xls/909866-import-prices#369476 "Hello ! I have a csv importing quanity field that works perfectly with a mass action I created , trigered with a cron task every 30 minutes. The csv looks like this  Now the client asks to update the column price. Will this work ?  I m asking because I don t want to add new prices. Only replace the existing prices. Like the csv with the quantity does.  Thank you.")*

Hello Nicolas.
If i upload this
text/x-generic ID_ΤΙΜΕΣ.csv ( ASCII text, with CRLF line terminators )
product_code;product_quantity
00-00-0000;20
00-00-0013;9.408
00-00-0014;10.92
00-00-0015;11.256
00-00-0020;39.908
....

and the product_codes already exists in the table will the price_access stay the same? Or it ll be deleted?
Because we have some different price_access on the table.

Thank you!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy85MDk4NjYtaW1wb3J0LXByaWNlcz90bXBsPW1hcmtkb3du) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14286
-
-

11 months 1 week ago [\#369478](#369478) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Import prices](/forum/37-import-export-csv-xls/909866-import-prices#369478 "Hello ! I have a csv importing quanity field that works perfectly with a mass action I created , trigered with a cron task every 30 minutes. The csv looks like this  Now the client asks to update the column price. Will this work ?  I m asking because I don t want to add new prices. Only replace the existing prices. Like the csv with the quantity does.  Thank you.")*

Hi,

If you don't have any price column in your CSV, the prices won't be touched for the products being imported / updated.
Note however that the "product_quantity" column only supports integers, no floats so your current CSV won't work properly.
If, by "product_quantity" you actually meant "price_value", then it is as you guessed: the price_access will be lost. In fact, if you have several prices added for the product, they will all be deleted to be replaced by the one in the CSV without any access level restriction.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy85MDk4NjYtaW1wb3J0LXByaWNlcz90bXBsPW1hcmtkb3du) or [Create an account](/register) 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.072 seconds

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