Discount per product

  • Posts: 11
  • Thank you received: 1
12 years 1 week ago #74999

Hello,

I've recently bought an essential license of Hikashop and am trying to figure things out.
First of all, the webshop is a very great software!
But setting up my webshop, I have been struggling with various issues.
It's the following scenario:

We are trying to create a printshop, selling various types of cards.
Variants in a large amount.

What we want is to give the customer options to buy any quantity of cards.
For example: 1 card costs €1,50 each
The client will be able to get options of printing in variants of black/white or full color €0,10 or €0,20 each respectivly.
So 1 card with black/white print costs €1,60 and 1 card with full color print costs €1,70.
These are added as options and work fine.

But when any of the print options are added, I want to add a start tarrif to the price.
For example €25,- for starters.
But if I add this €25,- as option, it would multiply for each cards I buy.
The sum would become: (1,50 + 0,10 + 25) x quantity.
So this is not an option.


Using coupons only works once, which is great.
But not if the customer would buy 2 variants of cards.
Because the €25 would only be added once in the total sum of the shoppingcart instead of each variant card.
I want it to be added to each product variant. So Card1 should have €25,- added and so does card2.
It's not an option to use coupons either.


Using discount comes to the closest of what I am looking for.
It adds the asked €25,- to each product of the same categoy and works fine.
But what I want to add is the ability to change the amount of added value by the quantity of cards chosen.
For example buying 1 card would be : 1 x €1,50 + €25,- = €26,50
Example 2, buying 10 cards: 10 x €1,50 + 20,- = €35,-
The discount options is unable to use the 'Minimum number of products' restrictions,
neither does it work on various products, only on a set product or category.


forcing a fixed amount as product variant is not an option either.
This would mean that I have to add a a lot of items in my shop as the following:
number of'fixed quantity' x 'print options' (3) x number of 'variant cards'
So if I would give 10 quantity options and have 1000 cards, it would mean that I have to add 10 x 3 x 1000 = 30000 items or even more.


To sum my wish up:

I would like to make it possible to sell 'card' + 'print options' x 'quantity'
while a startup value is added to each product based on the quantity chosen and not each product each category.
The 'added costs' should be based on the quantity of each product.
So it would become :

'card 1' + 'print options' x '1' + 25 (added costs) = price 1
'card 2' + 'print options' x '10' + 20 (added costs) = price 2


total = sum



How can I solve this or would it be possible for you to make this feature?
Thanks in advance!



With kind regards,



Billy Ho
Deurenberg media

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

  • Posts: 12953
  • Thank you received: 1778
12 years 1 week ago #75028

Hi,

1. My solution would be to :

- Create an unpublished category

- Create a new product named "print options" for example
- Set the category of this product to your unpublished category

- Edit your cards product page
- Set your "print options" product as an option

2. I didn't really understood what you really wanted to do with your "added costs", can you explain it to me :) ?

The following user(s) said Thank You: deurenberg

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

  • Posts: 11
  • Thank you received: 1
12 years 1 week ago #75051

Thank you for your response.

I am already using the 'print options' using the options function.
It works fine.


What I need is to add a price/cost to each of my items in my shoppingcart,
just like how discount would work when the values is set to negative.
For example: If I buy 1 card of Card-A, it should add €25,- to the product price, as like a reversed discount (which would substract a sum).


This can be done, but I want the discount to be variable on the quantity of each item.
But I can't apply discounts on a minimum quantity in cart.
And next to that, I want it to be for each separate item of the category 'Cards',
but with the amount of cards I've got, it would be a lot of work to add the same discount for each item I have.


Adding this cost as an option, would multiply the costs, so it's not what I am looking for.
Using 'coupon' works on the entire cart, and counts the number of items in cart instead of the quantity of one item.
I am sorry if it sounds too complicated.

I'll try to sum it up again.


When I buy a 'card' with an 'print option', the item should get an extra value added to the sum.
So for example: Card-A costs 1,50 each and print in full color would add 0,20 each.
This means that each Card-A would cost €1,70 each in total.

What I want to do is to add €25,- too the total of each type of card that is in the shoppingcart.
So:

'Card-A' = '(1,50 + 0,20) = 1,70 x 'quantity' + 'added value' = subtotal
'Card-B' = '(1,20 + 0,20) = 1,40 x 'quantity' + 'added value' = subtotal
'Card-C' = '(1,10 + 0,20) = 1,30 x 'quantity' + 'added value' = subtotal



The 'added value' should change according to the different 'quantity' of the item.
If I have a 'quantity' of 1 for 'Card-A' , then 'added value' would be €25,-
But if I have a 'quantity' of 10 for 'Card-A', then 'added value' would be €20,- instead.

While the 'added value' changes for 'Card-A',
the same 'added value'should not be influenced for 'Card-B', 'Card-C' or anyother item in my shoppingcart

So basically it would be a negative discount for each different item based on quantity.
Almost like the 'Minimum number of products' restriction in coupon.

I hope it's more clear this time.
Because it sounds complicated, while it's quite simple in theory.
(Of course it would still be a lot of complicated work for programming)


Anywways, thanks in advance!

Last edit: 12 years 1 week ago by deurenberg.

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

  • Posts: 82818
  • Thank you received: 13361
  • MODERATOR
12 years 6 days ago #75357

Hi,

The options in HikaShop won't allow you to do it directly.
You would need to create a custom quantity price calculation plugin to add the €25/€20 value manually (programatically) to the products.
It's not really complex if you're a developer, but if you're not, you would have to find you to help you on that.

You can find more information on such plugin here:
www.hikashop.com/en/support/documentatio...tation.html#override

The following user(s) said Thank You: deurenberg

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

  • Posts: 11
  • Thank you received: 1
12 years 6 days ago #75371

Hello Nicolas,

thank you for your response.

I am not a developer, but I am able to script in a certain, let's say beginner level.
Could you please explain a bit more about it?

I am curious and hope to be able to solve my issue and anyone else who might struggle with it.
I will take a look at the documentation and I hope to get some guidance whenever I'll need it.


Thanks in advance and with kind regards,



Billy Ho
Deurenberg media

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

  • Posts: 82818
  • Thank you received: 13361
  • MODERATOR
12 years 5 days ago #75613

The documentation along with the code present in the donation plugin which uses exactly that trigger and that you can find here ( demo.hikashop.com/index.php?option=com_h...show&cid=214&lang=en ) should allow you to understand how it works.


Let us know, if you have specific questions about the implementation.

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

  • Posts: 11
  • Thank you received: 1
11 years 11 months ago #77877

Hello,

I wans't able to create the plugin due to inexperience with php-script.
If it's not too much of a bother,
I would like to ask the staff member to create it for me.

If not, I'll see if I'll try again later.

Thanks in advance and with kind regards,



Billy Ho
Deurenberg media

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

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

Hi,

You can use our contact form ( www.hikashop.com/en/support/contact-us.html ) for a quote.

Thanks,


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: deurenberg

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

  • Posts: 11
  • Thank you received: 1
11 years 11 months ago #77955

Thank you,

I have already contacted the team for this matter.

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

Time to create page: 0.073 seconds
Powered by Kunena Forum