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

#   Characteristics and Variants with custom pricing

##

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

Less More

- Posts: 1
- Thank you received: 0
-
-

16 years 3 days ago [\#1238](#1238) by [joesenna](/forum/user/256-joesenna "View joesenna's Profile")  *[Characteristics and Variants with custom pricing](/forum/4-how-to/1238-characteristics-and-variants-with-custom-pricing#1238 "Here is my use case  A customer adds a product (Large Pizza) and needs to add toppings, some are 1.25 and some are 1.50. I need the pizza to have one to many toppings.  I was able to add the product and a characteristic, but I am not able to select many variants to add to the product. Can this be done?")* was created by *[joesenna](/forum/user/256-joesenna "View joesenna's Profile")*

Here is my use case

A customer adds a product (Large Pizza) and needs to add toppings, some are 1.25 and some are 1.50. I need the pizza to have one to many toppings.

I was able to add the product and a characteristic, but I am not able to select many variants to add to the product. Can this be done?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMzgtY2hhcmFjdGVyaXN0aWNzLWFuZC12YXJpYW50cy13aXRoLWN1c3RvbS1wcmljaW5nP3RtcGw9bWFya2Rvd24=) 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: 86358
- Thank you received: 14293
-
-

16 years 3 days ago [\#1242](#1242) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Characteristics and Variants with custom pricing](/forum/4-how-to/1238-characteristics-and-variants-with-custom-pricing#1242 "Here is my use case  A customer adds a product (Large Pizza) and needs to add toppings, some are 1.25 and some are 1.50. I need the pizza to have one to many toppings.  I was able to add the product and a characteristic, but I am not able to select many variants to add to the product. Can this be done?")*

You would have to add several characteristics like topping one, topping two, topping three and then have the same values for all of them: no topping, cheese, ham, etc
Then, add all those characteristics to the pizza product and let the system generates all the variants by saving the product. Once done, you just need to set the prices for each possible combination.

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

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

Less More

- Posts: 56
- Thank you received: 0
-
-

13 years 2 months ago [\#121780](#121780) by [Lutya](/forum/user/23439-lutya "View Lutya's Profile")  Replied by *[Lutya](/forum/user/23439-lutya "View Lutya's Profile")* on topic *[Characteristics and Variants with custom pricing](/forum/4-how-to/1238-characteristics-and-variants-with-custom-pricing#121780 "Here is my use case  A customer adds a product (Large Pizza) and needs to add toppings, some are 1.25 and some are 1.50. I need the pizza to have one to many toppings.  I was able to add the product and a characteristic, but I am not able to select many variants to add to the product. Can this be done?")*

How do you do this quickly for multiple variants?
For example, I have rings that come in different colors. All ring sizes above 10.5 (to 15) are exactly $10 more for all models with all colors. Right now I am going in and adjusting the price for all 9 ring sizes for each color variant (e.g. Size 11 with the color red). This leads to adjusting the price by $10 for about 45 variants for each product. Is there a way, for example, to go into the master characteristic for "Ring Size" and say +$10 for this particular variant?

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4077
-
- [](http://obsi.dev)
-

13 years 2 months ago [\#121829](#121829) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Characteristics and Variants with custom pricing](/forum/4-how-to/1238-characteristics-and-variants-with-custom-pricing#121829 "Here is my use case  A customer adds a product (Large Pizza) and needs to add toppings, some are 1.25 and some are 1.50. I need the pizza to have one to many toppings.  I was able to add the product and a characteristic, but I am not able to select many variants to add to the product. Can this be done?")*

Hi,

In HikaShop we have a feature name "mass action".
It allows you to make a specific action (change the product price by a percentage or a fixed value) to several products in the same time using some kind of query.
You can test it in our demo website if you want to make some tries.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 56
- Thank you received: 0
-
-

13 years 2 months ago [\#122006](#122006) by [Lutya](/forum/user/23439-lutya "View Lutya's Profile")  Replied by *[Lutya](/forum/user/23439-lutya "View Lutya's Profile")* on topic *[Characteristics and Variants with custom pricing](/forum/4-how-to/1238-characteristics-and-variants-with-custom-pricing#122006 "Here is my use case  A customer adds a product (Large Pizza) and needs to add toppings, some are 1.25 and some are 1.50. I need the pizza to have one to many toppings.  I was able to add the product and a characteristic, but I am not able to select many variants to add to the product. Can this be done?")*

I'm not 100% sure how this process would work. I've looked for documentation but haven't found any. This is what I have so far:

Trigger:
After a product is created

Filters:
Ring Size is &gt;= 11

Actions:
Update the values
Price_value = ??

What do I put here to increase the variant price of all ring sizes 11 and up by $10 of the master price?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMzgtY2hhcmFjdGVyaXN0aWNzLWFuZC12YXJpYW50cy13aXRoLWN1c3RvbS1wcmljaW5nP3RtcGw9bWFya2Rvd24=) 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: 86358
- Thank you received: 14293
-
-

13 years 2 months ago [\#122025](#122025) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Characteristics and Variants with custom pricing](/forum/4-how-to/1238-characteristics-and-variants-with-custom-pricing#122025 "Here is my use case  A customer adds a product (Large Pizza) and needs to add toppings, some are 1.25 and some are 1.50. I need the pizza to have one to many toppings.  I was able to add the product and a characteristic, but I am not able to select many variants to add to the product. Can this be done?")*

I don't think that using mass actions is a good idea.
Instead, you should not add both characteristic at the same time.
First, only add the size characteristic. Then, set the price for each size variant.
Then, add the color characteristic and the system will regenerate all the variants and keep the price to had for each size variant regardless of the color.
That way you save a lot of time.
Also, you can use the "copy" button of the products listing to duplicate a product and all its variants automatically into a new one if you have several products with the same prices/variants. That can save a lot of time.

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

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

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

Less More

- Posts: 56
- Thank you received: 0
-
-

13 years 2 months ago [\#122028](#122028) by [Lutya](/forum/user/23439-lutya "View Lutya's Profile")  Replied by *[Lutya](/forum/user/23439-lutya "View Lutya's Profile")* on topic *[Characteristics and Variants with custom pricing](/forum/4-how-to/1238-characteristics-and-variants-with-custom-pricing#122028 "Here is my use case  A customer adds a product (Large Pizza) and needs to add toppings, some are 1.25 and some are 1.50. I need the pizza to have one to many toppings.  I was able to add the product and a characteristic, but I am not able to select many variants to add to the product. Can this be done?")*

Hi Nicolas,
I guess it'd be simpler to just layout the problem in it's entirety for you since I'm talking to you about the same overall issue in two threads.

I have rings with two variants, color and size. Some of the colors have different pricing and I have pictures of that ring in that color option. Also, all sizes are 11 and up are $10 additional. I tried doing an import but apparently I can't control the image name which I use to describe the image being displayed (the image name is visible to the end user). So basically it looks like I can either do as you suggest and customize one set of variants and then go back in and manually adjust the excess created when I add the second characteristic (either way I'd be manually adjusting about 45 variants), or I can (I haven't tested this theory yet) manually enter the product with the images attached to the variants and manually naming them as I've been doing and then do an import to add the size characteristic with adjusted pricing. My hope is the system will update my existing product during the import instead of create a new one.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMzgtY2hhcmFjdGVyaXN0aWNzLWFuZC12YXJpYW50cy13aXRoLWN1c3RvbS1wcmljaW5nP3RtcGw9bWFya2Rvd24=) 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: 86358
- Thank you received: 14293
-
-

13 years 2 months ago [\#122076](#122076) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Characteristics and Variants with custom pricing](/forum/4-how-to/1238-characteristics-and-variants-with-custom-pricing#122076 "Here is my use case  A customer adds a product (Large Pizza) and needs to add toppings, some are 1.25 and some are 1.50. I need the pizza to have one to many toppings.  I was able to add the product and a characteristic, but I am not able to select many variants to add to the product. Can this be done?")*

The import system is to import products/variants, not to update them.
If you want to update product/variant data via a partial CSV, in that case, you can use a mass action where you select a CSV as a product filter and then the system will partially update the product/variant data based on the data in the CSV.

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

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

Less More

- Posts: 56
- Thank you received: 0
-
-

13 years 2 months ago -  13 years 2 months ago [\#122258](#122258) by [Lutya](/forum/user/23439-lutya "View Lutya's Profile")  Replied by *[Lutya](/forum/user/23439-lutya "View Lutya's Profile")* on topic *[Characteristics and Variants with custom pricing](/forum/4-how-to/1238-characteristics-and-variants-with-custom-pricing#122258 "Here is my use case  A customer adds a product (Large Pizza) and needs to add toppings, some are 1.25 and some are 1.50. I need the pizza to have one to many toppings.  I was able to add the product and a characteristic, but I am not able to select many variants to add to the product. Can this be done?")*

In that case, what would the action be?

Now in my mass action I have:

Trigger:
After a product is created

Filters:
CSV Products
In CSV of uploaded file [ (see linked)](http://www.masseffectmedia.com/Rs-12Lg.csv)

Actions:
??

Last edit: 13 years 2 months ago by [Lutya](/forum/user/23439-lutya "View Lutya's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMzgtY2hhcmFjdGVyaXN0aWNzLWFuZC12YXJpYW50cy13aXRoLWN1c3RvbS1wcmljaW5nP3RtcGw9bWFya2Rvd24=) 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: 86358
- Thank you received: 14293
-
-

13 years 2 months ago [\#122260](#122260) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Characteristics and Variants with custom pricing](/forum/4-how-to/1238-characteristics-and-variants-with-custom-pricing#122260 "Here is my use case  A customer adds a product (Large Pizza) and needs to add toppings, some are 1.25 and some are 1.50. I need the pizza to have one to many toppings.  I was able to add the product and a characteristic, but I am not able to select many variants to add to the product. Can this be done?")*

Yes. There is no action to enter. Actually you should not enter a trigger since you will process the mass action manually via the "process" button at the top.
Please make a backup before running such mass action because if there is a problem, in the configuration of the mass action, or a bug in the mass action system, it can rapidly destroy your hard work of product configuration.

The following user(s) said Thank You: [Lutya](/forum/user/23439-lutya "View Lutya's Profile")

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

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

Less More

- Posts: 56
- Thank you received: 0
-
-

13 years 2 months ago -  13 years 2 months ago [\#122273](#122273) by [Lutya](/forum/user/23439-lutya "View Lutya's Profile")  Replied by *[Lutya](/forum/user/23439-lutya "View Lutya's Profile")* on topic *[Characteristics and Variants with custom pricing](/forum/4-how-to/1238-characteristics-and-variants-with-custom-pricing#122273 "Here is my use case  A customer adds a product (Large Pizza) and needs to add toppings, some are 1.25 and some are 1.50. I need the pizza to have one to many toppings.  I was able to add the product and a characteristic, but I am not able to select many variants to add to the product. Can this be done?")*

I'm not sure what I'm doing wrong. I keep getting errors:

The line '' could not be imported Product not found

Warning: array_merge() [function.array-merge]: Argument #4 is not an array in /home/content/98/10133298/html/bellaraejewelry/administrator/components/com_hikashop/classes/massaction.php on line 1401

Warning: array_diff() [function.array-diff]: Argument #2 is not an array in /home/content/98/10133298/html/bellaraejewelry/administrator/components/com_hikashop/classes/massaction.php on line 1402

My CSV file is [ here](http://masseffectmedia.com/Rs-12Lg.csv).
And my product is [ here](http://bellaraejewelry.com/index.php?option=com_hikashop&ctrl=product&task=show&cid=3471&name=rs-12lg&Itemid=156).

Also, if it helps, [ here ](http://www.masseffectmedia.com/Bella%20Rae%20Jewelry%20-%20Administration%20-%20Products.png)is my product screen.
And [ here ](http://www.masseffectmedia.com/Bella%20Rae%20Jewelry%20-%20Administration%20-%20Variants.png)is my variant screen.

Last edit: 13 years 2 months ago by [Lutya](/forum/user/23439-lutya "View Lutya's Profile").

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

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

Less More

- Posts: 56
- Thank you received: 0
-
-

13 years 2 months ago [\#122617](#122617) by [Lutya](/forum/user/23439-lutya "View Lutya's Profile")  Replied by *[Lutya](/forum/user/23439-lutya "View Lutya's Profile")* on topic *[Characteristics and Variants with custom pricing](/forum/4-how-to/1238-characteristics-and-variants-with-custom-pricing#122617 "Here is my use case  A customer adds a product (Large Pizza) and needs to add toppings, some are 1.25 and some are 1.50. I need the pizza to have one to many toppings.  I was able to add the product and a characteristic, but I am not able to select many variants to add to the product. Can this be done?")*

Hey Nicolas,

Any ideas on what I'm doing wrong? This is literally the last part I have to do to finish up this site. Any direction would be greatly appreciated.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMzgtY2hhcmFjdGVyaXN0aWNzLWFuZC12YXJpYW50cy13aXRoLWN1c3RvbS1wcmljaW5nP3RtcGw9bWFya2Rvd24=) 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: 86358
- Thank you received: 14293
-
-

13 years 2 months ago [\#122636](#122636) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Characteristics and Variants with custom pricing](/forum/4-how-to/1238-characteristics-and-variants-with-custom-pricing#122636 "Here is my use case  A customer adds a product (Large Pizza) and needs to add toppings, some are 1.25 and some are 1.50. I need the pizza to have one to many toppings.  I was able to add the product and a characteristic, but I am not able to select many variants to add to the product. Can this be done?")*

Your CSV is not valid. You need to either have the the product_code column and specify the product code of each variant in it.
Then, there is no need for the characteristic columns or the product_type, you just need to have the price_value and product_published columns.
Remember that this is an update system, not an product creation system so it assumes that the products/variants are already in the database.

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

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

Less More

- Posts: 56
- Thank you received: 0
-
-

13 years 1 month ago -  13 years 1 month ago [\#122815](#122815) by [Lutya](/forum/user/23439-lutya "View Lutya's Profile")  Replied by *[Lutya](/forum/user/23439-lutya "View Lutya's Profile")* on topic *[Characteristics and Variants with custom pricing](/forum/4-how-to/1238-characteristics-and-variants-with-custom-pricing#122815 "Here is my use case  A customer adds a product (Large Pizza) and needs to add toppings, some are 1.25 and some are 1.50. I need the pizza to have one to many toppings.  I was able to add the product and a characteristic, but I am not able to select many variants to add to the product. Can this be done?")*

Thanks, I tried what you suggested and only included the price_value, product_published, and product_code columns. I still got the following error:

Warning: array_merge() [function.array-merge]: Argument #4 is not an array in /home/content/98/10133298/html/bellaraejewelry/administrator/components/com_hikashop/classes/massaction.php on line 1401

Warning: array_diff() [function.array-diff]: Argument #2 is not an array in /home/content/98/10133298/html/bellaraejewelry/administrator/components/com_hikashop/classes/massaction.php on line 1402

Warning: Invalid argument supplied for foreach() in /home/content/98/10133298/html/bellaraejewelry/plugins/hikashop/massaction_product/massaction_product.php on line 250

To be safe I added in the product_parent_id afterwards and still got the error. You can see the updated CSV file [ here](http://masseffectmedia.com/Rs-12Lg.csv). Thank you so much for your help thus far, I just can't wait to finish this site!

Last edit: 13 years 1 month ago by [Lutya](/forum/user/23439-lutya "View Lutya's Profile").

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 1 month ago [\#122847](#122847) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Characteristics and Variants with custom pricing](/forum/4-how-to/1238-characteristics-and-variants-with-custom-pricing#122847 "Here is my use case  A customer adds a product (Large Pizza) and needs to add toppings, some are 1.25 and some are 1.50. I need the pizza to have one to many toppings.  I was able to add the product and a characteristic, but I am not able to select many variants to add to the product. Can this be done?")*

Hi there,

Could you please post here the lines which are in this file around the line 1401 so we can have an idea of where the error occurs? (the line numbers are different on customers end since we have comments).

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

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

Less More

- Posts: 56
- Thank you received: 0
-
-

13 years 1 month ago -  13 years 1 month ago [\#122928](#122928) by [Lutya](/forum/user/23439-lutya "View Lutya's Profile")  Replied by *[Lutya](/forum/user/23439-lutya "View Lutya's Profile")* on topic *[Characteristics and Variants with custom pricing](/forum/4-how-to/1238-characteristics-and-variants-with-custom-pricing#122928 "Here is my use case  A customer adds a product (Large Pizza) and needs to add toppings, some are 1.25 and some are 1.50. I need the pizza to have one to many toppings.  I was able to add the product and a characteristic, but I am not able to select many variants to add to the product. Can this be done?")*

massaction.php line 1401 &amp; 1402:
Code:

$mergedColumns = array_merge(array_keys($productColumns),array_keys($priceColumns),$categoryColumns,$characteristicColumns,$otherColumns); $wrongColumns = array_diff($columns,$mergedColumns);

massaction_product.php line 250: Code:

foreach($ids as $i =&gt; $id){ $oldElement = $productClass-&gt;products[$id]; if(!empty($data-&gt;elements[$id]-&gt;price_value)){ $data-&gt;elements[$id]-&gt;prices = array(); $price_values = explode('&#124;',$data-&gt;elements[$id]-&gt;price_value); $price_currencies = explode('&#124;',$data-&gt;elements[$id]-&gt;price_currency_id); $price_min_quantities = explode('&#124;',$data-&gt;elements[$id]-&gt;price_min_quantity); $price_accesses = explode('&#124;',$data-&gt;elements[$id]-&gt;price_access);

Last edit: 13 years 1 month ago by [Lutya](/forum/user/23439-lutya "View Lutya's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4077
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#123123](#123123) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Characteristics and Variants with custom pricing](/forum/4-how-to/1238-characteristics-and-variants-with-custom-pricing#123123 "Here is my use case  A customer adds a product (Large Pizza) and needs to add toppings, some are 1.25 and some are 1.50. I need the pizza to have one to many toppings.  I was able to add the product and a characteristic, but I am not able to select many variants to add to the product. Can this be done?")*

Hi,

For what I see, the CSV file is still not valid.
There is a space for all product_code, there is not quote at all and the text as "product_parent_id" could be a problem too.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 56
- Thank you received: 0
-
-

13 years 1 month ago [\#123180](#123180) by [Lutya](/forum/user/23439-lutya "View Lutya's Profile")  Replied by *[Lutya](/forum/user/23439-lutya "View Lutya's Profile")* on topic *[Characteristics and Variants with custom pricing](/forum/4-how-to/1238-characteristics-and-variants-with-custom-pricing#123180 "Here is my use case  A customer adds a product (Large Pizza) and needs to add toppings, some are 1.25 and some are 1.50. I need the pizza to have one to many toppings.  I was able to add the product and a characteristic, but I am not able to select many variants to add to the product. Can this be done?")*

I removed the product_code spaces and deleted the "product_parent_id" column. Still getting these errors.

I have no idea what you mean by "there is not quote at all".

[ New CSV file](http://www.masseffectmedia.com/Rs-12Lg.csv)

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4077
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#123225](#123225) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Characteristics and Variants with custom pricing](/forum/4-how-to/1238-characteristics-and-variants-with-custom-pricing#123225 "Here is my use case  A customer adds a product (Large Pizza) and needs to add toppings, some are 1.25 and some are 1.50. I need the pizza to have one to many toppings.  I was able to add the product and a characteristic, but I am not able to select many variants to add to the product. Can this be done?")*

Hi,

The CSV format is a specific format, which have rules.
A text have to be between quotes. Code:

"price_value","product_published","product_code" 130,1,"Rs-12Lg_19_49" 130,1,"Rs-12Lg_19_48"

If you have "float" number, you have to quote them too Code:

"price_value","product_published","product_code" "129.99",1,"Rs-12Lg_19_49" "129.99",1,"Rs-12Lg_19_48"

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 56
- Thank you received: 0
-
-

13 years 1 month ago [\#123294](#123294) by [Lutya](/forum/user/23439-lutya "View Lutya's Profile")  Replied by *[Lutya](/forum/user/23439-lutya "View Lutya's Profile")* on topic *[Characteristics and Variants with custom pricing](/forum/4-how-to/1238-characteristics-and-variants-with-custom-pricing#123294 "Here is my use case  A customer adds a product (Large Pizza) and needs to add toppings, some are 1.25 and some are 1.50. I need the pizza to have one to many toppings.  I was able to add the product and a characteristic, but I am not able to select many variants to add to the product. Can this be done?")*

Ok, my file now appears the way you have shown and I am still getting the same errors:
Code:

"price_value","product_published","product_code" 130,1,"Rs-12Lg_19_49" 130,1,"Rs-12Lg_19_48"

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEyMzgtY2hhcmFjdGVyaXN0aWNzLWFuZC12YXJpYW50cy13aXRoLWN1c3RvbS1wcmljaW5nP3RtcGw9bWFya2Rvd24=) 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.127 seconds

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