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

#   Mass Action Update Product with Multiple Pricing Tiers

##

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

Less More

- Posts: 6
- Thank you received: 0
-
-

4 years 8 months ago [\#340335](#340335) by [kenryanjr](/forum/user/61532-kenryanjr "View kenryanjr's Profile")  *[Mass Action Update Product with Multiple Pricing Tiers](/forum/25-install-update/904159-mass-action-update-product-with-multiple-pricing-tiers#340335 "-- HikaShop version -- : 4.5.0 -- Joomla version -- : 4.1.0 -- PHP version -- : 7.4.28  I have multiple products that are priced at $7.00 and also $3.00 if the customer purchases 25 or more. I would like to do 2 things.  &#42; Update just the 7.00 price to 5.25 on all of the products in that category  &#42; Add an additional price break at 2.50 for 75 or more on all products in that category  I have read how to add to the price or even deduct like this price.price&#95;value/0.75...but it changes both the 3 and 7 dollar pricing structures. How do I just affect the one price value?  Thanks in advance.")* was created by *[kenryanjr](/forum/user/61532-kenryanjr "View kenryanjr's Profile")*

-- HikaShop version -- : 4.5.0
-- Joomla version -- : 4.1.0
-- PHP version -- : 7.4.28

I have multiple products that are priced at $7.00 and also $3.00 if the customer purchases 25 or more. I would like to do 2 things.

- Update just the 7.00 price to 5.25 on all of the products in that category
- Add an additional price break at 2.50 for 75 or more on all products in that category

I have read how to add to the price or even deduct like this price.price_value/0.75...but it changes both the 3 and 7 dollar pricing structures. How do I just affect the one price value?

Thanks in advance.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzkwNDE1OS1tYXNzLWFjdGlvbi11cGRhdGUtcHJvZHVjdC13aXRoLW11bHRpcGxlLXByaWNpbmctdGllcnM/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: 86584
- Thank you received: 14325
-
-

4 years 8 months ago [\#340348](#340348) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Mass Action Update Product with Multiple Pricing Tiers](/forum/25-install-update/904159-mass-action-update-product-with-multiple-pricing-tiers#340348 "-- HikaShop version -- : 4.5.0 -- Joomla version -- : 4.1.0 -- PHP version -- : 7.4.28  I have multiple products that are priced at $7.00 and also $3.00 if the customer purchases 25 or more. I would like to do 2 things.  &#42; Update just the 7.00 price to 5.25 on all of the products in that category  &#42; Add an additional price break at 2.50 for 75 or more on all products in that category  I have read how to add to the price or even deduct like this price.price&#95;value/0.75...but it changes both the 3 and 7 dollar pricing structures. How do I just affect the one price value?  Thanks in advance.")*

Hi,

You can't use an "update the values" action for that since it will target all the prices of the products.
Instead, you want to use a "run MySQL query" action with such a query to update the price: Code:

UPDATE #__hikashop_price as price SET price_value = 5.25 WHERE price_product_id = {product_id} AND price_value = 7;

And another action "run MySQL query" action with such a query to add a new price: Code:

INSERT #__hikashop_price (price_product_id, price_value, price_currency_id, price_min_quantity) VALUES ({product_id}, 2.5, xxx, 75);

where xxx is the id of the currency of your prices.

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

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

4 years 8 months ago -  4 years 8 months ago [\#340353](#340353) by [kenryanjr](/forum/user/61532-kenryanjr "View kenryanjr's Profile")  Replied by *[kenryanjr](/forum/user/61532-kenryanjr "View kenryanjr's Profile")* on topic *[Mass Action Update Product with Multiple Pricing Tiers](/forum/25-install-update/904159-mass-action-update-product-with-multiple-pricing-tiers#340353 "-- HikaShop version -- : 4.5.0 -- Joomla version -- : 4.1.0 -- PHP version -- : 7.4.28  I have multiple products that are priced at $7.00 and also $3.00 if the customer purchases 25 or more. I would like to do 2 things.  &#42; Update just the 7.00 price to 5.25 on all of the products in that category  &#42; Add an additional price break at 2.50 for 75 or more on all products in that category  I have read how to add to the price or even deduct like this price.price&#95;value/0.75...but it changes both the 3 and 7 dollar pricing structures. How do I just affect the one price value?  Thanks in advance.")*

**Please disregard this post. I didn't set the limitations to 1.**

The first one worked perfect. The second added a ton of rows instead of just one. Any idea why it would have done that?
Code:

INSERT #__hikashop_price (price_product_id, price_value, price_currency_id, price_min_quantity) VALUES (709, 2.5, 2, 75);

Last edit: 4 years 8 months ago by [kenryanjr](/forum/user/61532-kenryanjr "View kenryanjr's Profile").

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

4 years 8 months ago -  4 years 8 months ago [\#340358](#340358) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Mass Action Update Product with Multiple Pricing Tiers](/forum/25-install-update/904159-mass-action-update-product-with-multiple-pricing-tiers#340358 "-- HikaShop version -- : 4.5.0 -- Joomla version -- : 4.1.0 -- PHP version -- : 7.4.28  I have multiple products that are priced at $7.00 and also $3.00 if the customer purchases 25 or more. I would like to do 2 things.  &#42; Update just the 7.00 price to 5.25 on all of the products in that category  &#42; Add an additional price break at 2.50 for 75 or more on all products in that category  I have read how to add to the price or even deduct like this price.price&#95;value/0.75...but it changes both the 3 and 7 dollar pricing structures. How do I just affect the one price value?  Thanks in advance.")*

Hello,

You to keep the tag id ("**{product\_id}**"), you just have to replace only the "**xxx**" and this may work.
Hope this will help you.

Regards

Last edit: 4 years 8 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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