- Posts: 966
- Thank you received: 11
Characteristics Size Not Adding To Cart
What I need to know is if I have a product that has 2 small, 2 medium and 2 large sizes, I add the quantity (2) of each size in the characteristics but what quantity do I put on the main product? Do I put the total quantity (6) of all products or leave it blank?
I keep adding a different size to the cart but it keeps adding the amount to one size, the first size that I add. So for example, the first size I add to the cart was "large". I then went back to the product and add 1 medium and 1 small but it's showing 3 large, instead of 1 small, 1 medium and 1 large. So I must have missed a step.
Thank you!!
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
Can you show me how did you configured your product page and the product's variants that you are adding to your cart through some screenshots ?
It would help me to understand what your problem really is
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I PM the link. Thank you!
Please Log in or Create an account to join the conversation.
<input type="hidden" name="return_url" value="<?php echo urlencode(base64_encode(urldecode($this->redirect_url)));?>"/>
or something like that.
So it comes from the customization that you made on the show view file or one of its sub views.
Because of that, it is always the id of the last variant which is used as it is the last one defined and because the variants data is inside the form where it should be outside.
Please Log in or Create an account to join the conversation.
What I need to know is if I have a product that has 2 small, 2 medium and 2 large sizes, I add the quantity (2) of each size in the characteristics but what quantity do I put on the main product? Do I put the total quantity (6) of all products or leave it blank?
What is the proper way to do the above please? Thank you!
Please Log in or Create an account to join the conversation.
I found the line of code you mentioned in product > listing_div but the <form> is below it, unless I'm misunderstanding what you mean. This is how it looks:
Here is the code in product > listing_div. I would forever be greatful if you can tell me what's messed up...
Please Log in or Create an account to join the conversation.
The modifications which cause that issue are either in the show or the show_default or other show_* view files, not in listing view files.
Please Log in or Create an account to join the conversation.
I don't think it's something I did then because the files below are the ONLY files that I edited in the product view. And there is only one other file with the "show" name (order > show) and it does not have the code you mentioned.
In addition, out of those files the product > listing_div is the only one that have the code you mentioned.
product > listing_div
product > quantity
product > show_block_img
product > show_default
Thanks!!
Please Log in or Create an account to join the conversation.
I however mentioned the show file, and I can assure you that there is the line I talked about in it.
Please Log in or Create an account to join the conversation.
When I look in the backend it shows me which files I edited by displaying the "remove customization" icon. There are no other files with the word "show" in them that I edited asides from the ones listed above.
I guess I just have to replace the files and start over then to get this working but it makes no sense if I did not edit it/them
Please Log in or Create an account to join the conversation.
You say that you changed the show_default, quantity and show_block_img view files. All these view files are called by the product page display and depending on how you altered them, it could produce such result.
I'm sorry but I can't tell precisely what code is wrong and where, but I don't know what you changed... All I can say is that I see that the HTML has been moved around compared to the default display and that is what is causing the problem.
Please Log in or Create an account to join the conversation.
First, I just want you to know that I REALLY appreciate your help and patience. I'm sure the mix up is due to my ignorance with php/code.
I will get the original files and replace them with the files in my template that I'm using and try to do a process of elimination and hopefully sort this out asap. Oddly enough this is one of the things that I have to get working so I have to figure it out.
Thanks again...
Please Log in or Create an account to join the conversation.
I know I asked this a couple times but I still didn't get a reply.
...If I have a product that has 2 small, 2 medium and 2 large sizes, I add the quantity (2) for each size in the characteristics - correct? And what quantity do I put on the main product? Do I put the total quantity (6) of all products or leave it blank?
Thank you!!
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
Please Log in or Create an account to join the conversation.
If I ONLY put the total amount (6) on the main product, will it know how many of each size is available for each characteristic? For example, if the 2 smalls are sold out will it know? or if one medium is sold out and one is left will it know?
I was thinking that I should put the total amount of all the products (6) on the main product and then the quantity for each product size (2) in the characteristics? Is that not how it should work?
I am trying to get from you the proper way to do this so that it works correctly.
Thank you!!
Please Log in or Create an account to join the conversation.
You can also leave it unlimited.
If you fill the quantity for each variant, it doesn't matter. If you set the total quantity, the system will update it. If you don't then it won't do it. But that has no influence on the product availability since it's the variants quantity which is used.
Please Log in or Create an account to join the conversation.