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

#   Same product, two prices. - SOLVED

##

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

Less More

- Posts: 37
- Thank you received: 0
-
-

13 years 11 months ago -  13 years 11 months ago [\#76803](#76803) by [yellowhousejake](/forum/user/4221-yellowhousejake "View yellowhousejake's Profile")  *[Same product, two prices. - SOLVED](/forum/4-how-to/75837-same-product-two-prices-solved#76803 "I am being asked if we can create a product that has one stock level, but two prices. For instance we have ten books, the books are all identical but if purchased by an adult cost $5, if purchased by...")* was created by *[yellowhousejake](/forum/user/4221-yellowhousejake "View yellowhousejake's Profile")*

I am being asked if we can create a product that has one stock level, but two prices. For instance we have ten books, the books are all identical but if purchased by an adult cost $5, if purchased by a child cost $2.50. Either way, the stock level is decreased regardless of which price was paid.

I am unable to figure this one out. We are using 1.5.6 business version.

Thanks,

Dave

Last edit: 13 years 11 months ago by [yellowhousejake](/forum/user/4221-yellowhousejake "View yellowhousejake's Profile").

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 11 months ago [\#76890](#76890) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Same product, two prices.](/forum/4-how-to/75837-same-product-two-prices-solved#76890 "I am being asked if we can create a product that has one stock level, but two prices. For instance we have ten books, the books are all identical but if purchased by an adult cost $5, if purchased by...")*

Hi,

Yes it's possible with the business edition of HikaShop, in the product edition page, you can add as much prices as you want.
You can restrict them to a user group, or a currency.

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

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

Less More

- Posts: 37
- Thank you received: 0
-
-

13 years 11 months ago [\#76952](#76952) by [yellowhousejake](/forum/user/4221-yellowhousejake "View yellowhousejake's Profile")  Replied by *[yellowhousejake](/forum/user/4221-yellowhousejake "View yellowhousejake's Profile")* on topic *[Same product, two prices.](/forum/4-how-to/75837-same-product-two-prices-solved#76952 "I am being asked if we can create a product that has one stock level, but two prices. For instance we have ten books, the books are all identical but if purchased by an adult cost $5, if purchased by...")*

Yes, but I would need to create a child user group or something like it. I need to be able to have a customer adult and get a book at one price, select child and get the same book at another price. I don't think I can do that.

DAve

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

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

Less More

- Posts: 37
- Thank you received: 0
-
-

13 years 11 months ago -  13 years 11 months ago [\#77010](#77010) by [yellowhousejake](/forum/user/4221-yellowhousejake "View yellowhousejake's Profile")  Replied by *[yellowhousejake](/forum/user/4221-yellowhousejake "View yellowhousejake's Profile")* on topic *[Same product, two prices.](/forum/4-how-to/75837-same-product-two-prices-solved#77010 "I am being asked if we can create a product that has one stock level, but two prices. For instance we have ten books, the books are all identical but if purchased by an adult cost $5, if purchased by...")*

I did get it to work! Once it thought about it differently the answer was pretty simple. I used characteristics to create two prices, and it works. Unfortunately it breaks the "Continue Shopping" button by replacing it with a second add to cart button.

DAve

Last edit: 13 years 11 months ago by [yellowhousejake](/forum/user/4221-yellowhousejake "View yellowhousejake's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc1ODM3LXNhbWUtcHJvZHVjdC10d28tcHJpY2VzLXNvbHZlZD90bXBsPW1hcmtkb3du) 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: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#77159](#77159) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Same product, two prices.](/forum/4-how-to/75837-same-product-two-prices-solved#77159 "I am being asked if we can create a product that has one stock level, but two prices. For instance we have ten books, the books are all identical but if purchased by an adult cost $5, if purchased by...")*

Hi,

It breaks the "continue shopping" ?
Can you give us a screenshot ?

Best regards,

---

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

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

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

Less More

- Posts: 37
- Thank you received: 0
-
-

13 years 11 months ago [\#77489](#77489) by [yellowhousejake](/forum/user/4221-yellowhousejake "View yellowhousejake's Profile")  Replied by *[yellowhousejake](/forum/user/4221-yellowhousejake "View yellowhousejake's Profile")* on topic *[Same product, two prices.](/forum/4-how-to/75837-same-product-two-prices-solved#77489 "I am being asked if we can create a product that has one stock level, but two prices. For instance we have ten books, the books are all identical but if purchased by an adult cost $5, if purchased by...")*

Sure, the first screen shot is the default that loads as the product comes up, Adult. The second one is the result of choosing the youth ticket or characteristic. You can see where the "Continue Shopping" button is replaced with a second "Add to Cart" selector.

[ ![Adult&#95;Characteristic.png](/forum/attachment/7048) ](/forum/attachment/7048 "...acteristic.png")

[ ![Youth&#95;Characteristic.png](/forum/attachment/7049) ](/forum/attachment/7049 "...acteristic.png")

The div in question looks like this in the beginning.
&lt;div id="hikashop_product_quantity_main" class="hikashop_product_quantity_main" style="float:right"&gt;
&lt;input id="hikashop_checkout_shopping_button" class="button hikashop_cart_input_button" type="submit" onclick="var field=document.getElementById('hikashop_product_quantity_field_4');history.back();return false;" value="Continue shopping" name="continue_shopping"&gt;
&lt;/div&gt;

And is replaced with the following.
&lt;div id="hikashop_product_quantity_main" class="hikashop_product_quantity_main" style="float:right"&gt;
&lt;div class="hikashop_product_stock"&gt;
&lt;input id="hikashop_product_quantity_field_2" class="hikashop_product_quantity_field" type="text" onchange="hikashopCheckQuantityChange('hikashop_product_quantity_field_2',0,1);" name="quantity" value="1"&gt;
&lt;input class="button hikashop_cart_input_button" type="submit" onclick="var field=document.getElementById('hikashop_product_quantity_field_2');if(hikashopCheckChangeForm('item','hikashop_product_form')){ return hikashopModifyQuantity('229',field,1,'hikashop_product_form'); } else { return false; }" value="Add to cart" name="add"&gt;
&lt;/div&gt;
&lt;/div&gt;

DAve

- [ ![Adult&#95;Characteristic.png](/forum/attachment/7048) ](/forum/attachment/7048 "...acteristic.png") [ ](/forum/attachment/7048?download=1 "...acteristic.png")
- [ ![Youth&#95;Characteristic.png](/forum/attachment/7049) ](/forum/attachment/7049 "...acteristic.png") [ ](/forum/attachment/7049?download=1 "...acteristic.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc1ODM3LXNhbWUtcHJvZHVjdC10d28tcHJpY2VzLXNvbHZlZD90bXBsPW1hcmtkb3du) 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: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#77553](#77553) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Same product, two prices.](/forum/4-how-to/75837-same-product-two-prices-solved#77553 "I am being asked if we can create a product that has one stock level, but two prices. For instance we have ten books, the books are all identical but if purchased by an adult cost $5, if purchased by...")*

Hi,

You should use the id "hikashop_product_quantity_main" for your template custmization.
Please change it with another (unique) id and the javascript won't update the div anymore.

Regards,

---

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

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

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

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

Less More

- Posts: 37
- Thank you received: 0
-
-

13 years 11 months ago [\#77562](#77562) by [yellowhousejake](/forum/user/4221-yellowhousejake "View yellowhousejake's Profile")  Replied by *[yellowhousejake](/forum/user/4221-yellowhousejake "View yellowhousejake's Profile")* on topic *[Same product, two prices.](/forum/4-how-to/75837-same-product-two-prices-solved#77562 "I am being asked if we can create a product that has one stock level, but two prices. For instance we have ten books, the books are all identical but if purchased by an adult cost $5, if purchased by...")*

Well....... dang it. I changed it and everything is working. Thank you.

DAve

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

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

[](#top)
