- Posts: 18
- Thank you received: 3
Is there an easier way to fill values fo variants?
Based on the above link, it sounds like I don't have to go through each variant applying the same minimum quantity and pricing per minimum quantity as in the main product, but it doesn't appear to work for me. I ran across this post where someone mentions the same situation I am facing except the prices are different for the products, so copying a previous product will not help.
Any suggestions beyond what I am currently doing--i.e. editing each variant and replicating the minimum quantity and pricing per minimum quantity?
Many thanks.
Please Log in or Create an account to join the conversation.
You don't need to enter the price for each variant if it's the same as the main product.
Just enter it in the main product and that will work.
If it doesn't seem to work for you, it must be because something is not configured properly. Could you do screenshots of your main product edition page so that we could see how you set the prices of the main product when the variants don't have prices and that it doesn't work ?
Please Log in or Create an account to join the conversation.
Hope this helps nicolas.
Please Log in or Create an account to join the conversation.
It's fixed on our end for next release as it has been reported by other users.
You can replace the file components/com_hikashop/views/product/tmpl/quantity.php and administrator/components/com_hikashop/classes/cart.php by these ones to fix the problems.
Please Log in or Create an account to join the conversation.
NOTE: The "Limit reached. Quantity reduced for product: Set Up Charge" message seen in the attached is correct. The set up charge is a quantity of 1 per order. Since I'm adding a quantity of 400, it's just letting me know it could not add a quantity of 400 for that 'product'. I'll remove the display of the message before the site goes live as testers have already commented on seeing the message and thinking there was a problem.
Thanks again.
Please Log in or Create an account to join the conversation.
Can you give a link to that product page so that we can see that ?
And maybe a backend and FTP access ?
Please Log in or Create an account to join the conversation.
Thanks again
Please Log in or Create an account to join the conversation.
Can you change the line:
if($parentProduct->product_min_per_order>1 && $quantity_for_same_main_product<$parentProduct->product_min_per_order-$quantity){
to:
if($parentProduct->product_min_per_order>1 && $quantity_for_same_main_product<$parentProduct->product_min_per_order){
in the administrator/components/com_hikashop/classes/cart.php file ? That should fix the problem.
Please Log in or Create an account to join the conversation.
Here is the code where I applied the fix, just to confirm this was the correct location.
if(!empty($parentProduct->product_min_per_order)){
$quantity_for_same_main_product =& $this->_getGlobalQuantityOfVariants($cartContent,$product);
if($parentProduct->product_min_per_order>1 && $quantity_for_same_main_product<$parentProduct->product_min_per_order){
$quantity = 0;
}
}
Please Log in or Create an account to join the conversation.
It's the other way around.
You need to replace that line by:
if($parentProduct->product_min_per_order>1 && $quantity_for_same_main_product<$parentProduct->product_min_per_order-$quantity){
That should be better
Please Log in or Create an account to join the conversation.
Thanks, that did the trick.
Please Log in or Create an account to join the conversation.
we have the Business edition of hikacart Current is this updated with these fixes?.. I looked through the code but it seems different to what is posted above and because this is 3 months old Iam not sure.. if it is wise to fiddle just yet.
the problems Iam having is a new user comes to website.. they order a product, and then proceed to checkout.
they fill in their details and are told that;
although the product is set to unlimited. (some products also have variants)Limit reached. You can't add the product:
ok.. continued..
afterwards the Registration Page is presented with details as if filled in incorrectly.. but
the user registration has been accepted and they have been logged in.
now they can go back to the cart and add items as per usual.
however they can't log out.!?!?!?
Iam not sure what Iam doing wrong .. something presumably.
I also tried various Registration configurations. but each one has it quirks.
for example , checkout > Registered (Joomla Registration)
if I enable this method, then .. the registration page resets losing all information if they don't first scroll down to bottom and tick (terms and conditions) box, why?
I thought... ok I will move the 'Terms & Conditions' box to the top so its the first thing they do before filling in data with the following workflow;
terms_login_address_shipping_payment_confirm_coupon_cart_status_fields,end
it appeared to work.. yet didn't.
sorry for having so many problems , I know you guys work really hard to maintain and support hikashop. and you do a fantastic job.
Cheers.
you Guys are Awesome and have excellent Support! Keep up the great Work!.
Please Log in or Create an account to join the conversation.
You can look at the file and you'll see the line I'm talking about in my previous message:
if($parentProduct->product_min_per_order>1 && $quantity_for_same_main_product<$parentProduct->product_min_per_order-$quantity){
There has been no other reports on that as far as I know since the release. I also tried on your website and didn't had the message.
I tried on my end and I'm able to register even though the terms and condition view is on the same step of the checkout as the login and registration view.
I also tried on your website and it's working fine.
PS: when you move forward on issues, try to put all your posts in the same place and reply to the same thread. Otherwise, other users can't follow what you're saying.
Please Log in or Create an account to join the conversation.