Same product, two prices. - SOLVED

  • Posts: 37
  • Thank you received: 0
12 years 18 hours ago #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 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: 11 years 11 months ago by yellowhousejake.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
12 years 6 hours ago #76890

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 or Create an account to join the conversation.

  • Posts: 37
  • Thank you received: 0
12 years 1 hour ago #76952

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 or Create an account to join the conversation.

  • Posts: 37
  • Thank you received: 0
11 years 11 months ago #77010

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: 11 years 11 months ago by yellowhousejake.

Please Log in or Create an account to join the conversation.

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 11 months ago #77159

Hi,

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

Best regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 37
  • Thank you received: 0
11 years 11 months ago #77489

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.







The div in question looks like this in the beginning.
<div id="hikashop_product_quantity_main" class="hikashop_product_quantity_main" style="float:right">
<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">
</div>

And is replaced with the following.
<div id="hikashop_product_quantity_main" class="hikashop_product_quantity_main" style="float:right">
<div class="hikashop_product_stock">
<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">
<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">
</div>
</div>

DAve

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 11 months ago #77553

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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: yellowhousejake

Please Log in or Create an account to join the conversation.

  • Posts: 37
  • Thank you received: 0
11 years 11 months ago #77562

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

DAve

Please Log in or Create an account to join the conversation.

Time to create page: 0.099 seconds
Powered by Kunena Forum