- Posts: 10
- Thank you received: 0
Extra required product when selecting an item
- hanterkeurs
-
Topic Author
- Offline
first of all; the great compliments of building such a great shopping cart! It is really well thought. Keep going on
now my question; I am building a webshop for a mudflap company where they can sell mudflaps (see www.beuze.com/_A/spatlappen )
Now here is the thing: When someone orders one or more mudflaps a 115euro a piece, there have to be set up costs to design the mudflaps: This is a standard amount of 30 euro per design (no matter whether they order 1, 10 or 1000 mudflaps). Is there an option that there will automatically be an item 'graphic design mudflap' of 30 euro's put in the shopping cart per order of mudflaps?
I could not find the option in the documentation..
hope to hear from you,
kind regards,
Han
Please Log in or Create an account to join the conversation.
Maybe you could use a shipping method as graphic design mudflap ?
The shipping method would be added to the order automatically with a 30euros price tag. Now, if you also need to handle shipping, that method won't be possible.
In that case, you would have to automatically add a product to the cart using some custom code in the file cart of the view checkout.
Please Log in or Create an account to join the conversation.
- hanterkeurs
-
Topic Author
- Offline
- Posts: 10
- Thank you received: 0
thanks for your reply. I guess we also handle the shipping, so it will be the last option. Can you tell me exactly how to put a extra product at the checkout like you said?
regards!
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- hanterkeurs
-
Topic Author
- Offline
- Posts: 10
- Thank you received: 0
for example: the product 'graphical_setup' will only be adjusted only when someone orders a product from the mudflap category.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- hanterkeurs
-
Topic Author
- Offline
- Posts: 10
- Thank you received: 0
thanks for you reply!
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- hanterkeurs
-
Topic Author
- Offline
- Posts: 10
- Thank you received: 0
This is what I added after the first <?php
with replacing
one time: 'extra_product' with the code 'setup' of the extra product
one time: 'YY' with '12' as the category ID of the mudflap category
one time: 'XX' with '106' as the product id of the extra product 'setup'.
what do i miss?
thanks for your reply.
Please Log in or Create an account to join the conversation.
if(!$already && !empty($entry)){
and not:
if(!$already && !empty($result)){
I've fixed it in the code of my message.
Please Log in or Create an account to join the conversation.
- hanterkeurs
-
Topic Author
- Offline
- Posts: 10
- Thank you received: 0
for example:
One top-category mudflaps = 12
2 lower level categories under top-category mudflaps (12):
mudflaps for trucks = 13
mudflaps for trailers = 14
I want the extra product shown for products both in categories 13 en 14 for example.
Please Log in or Create an account to join the conversation.
In that case you need to change:
category_id=12
to:
category_id IN (13,14)
Please Log in or Create an account to join the conversation.
- hanterkeurs
-
Topic Author
- Offline
- Posts: 10
- Thank you received: 0
ok, latest question
so 1 piece of a mudflap for a trailer (= 1 setup product)
and 1 (or 2 or 3) pieces of a mudflap for a car (= so that will make 2 setup products; one for every item on the cart).
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- hanterkeurs
-
Topic Author
- Offline
- Posts: 10
- Thank you received: 0
regards!
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- hanterkeurs
-
Topic Author
- Offline
- Posts: 10
- Thank you received: 0
main website: www.beuze.com/_A/
Category 15: www.beuze.com/_A/spatlappen/Voor%20bumpers
Category 16: www.beuze.com/_A/spatlappen/Voor%20wielkasten
extra product: www.beuze.com/_A/spatlappen/Voor%20bumpe...p/category_pathway-0
regards!
Please Log in or Create an account to join the conversation.
You can edit your php.ini file and search for the string parameter display_errors.
This parameter should be turned On : display_errors = On.
If it's not the case, please edit your php.ini file, modify this line, save your file and try again.
If you don't know where your php.ini is, you should ask your hosting company.
Most of the time, they allow you to have your own php.ini at the root of your website.
Please Log in or Create an account to join the conversation.
- hanterkeurs
-
Topic Author
- Offline
- Posts: 10
- Thank you received: 0
ok, I don't know how to do that with the php.ini, so i decide that I'll try it with the latest working solution. When this is not suffient anymore, I'll come back on this topic.
thanks for all the help!
regards,
Han
Please Log in or Create an account to join the conversation.