Characteristics/Variants Not Applied in Cart
I'm sure this was working correctly before 1.4.4, but after the update, if I select a Variant, the price on the product detail page is updated, but when I click Add to Cart, the default Product/Characteristic/Price is added, not the selected Variant. Also, after the product is added to the cart, the product page reverts to the default Characteristic setting, but maybe that is normal.
I also have the problem reported in another thread where the Characteristic does not properly get added to the Product name when the Characteristic/Variant is changed on the Product page. The page initially loads with the default Characteristic added to the name but it does not change. This issue was present before the upgrade to 1.4.4 and I suspect it is related to the template I'm using as your demo site does not have this problem.
Regards,
Ed
Please Log in or Create an account to join the conversation.
There is indeed a problem in the new version on characteristics selection.
You need to replace the code:
We'll release a new version with the fix asap
Please Log in or Create an account to join the conversation.
Since I still have the problem of Characteristics/Variants, when changed, not being appended to the Product Name on the Product page, would it be possible to NOT have ANY Characteristic appended to the name there, but still be included with the Product name in the Cart, because that part is working OK. That would be better than the way it is working now, at least with the template I'm using.
I tried turning off the option in Configuration/Display, but that turns if off for both the Product Page and Cart.
Regards,
Ed
Please Log in or Create an account to join the conversation.
$variant->$field.=' '.$val->characteristic_value;
to:
if(!(JRequest::getVar('ctrl')=='product'&&JRequest::getVar('task')=='show')){
$variant->$field.=' '.$val->characteristic_value;
}
But please note that this will be removed if you update hikashop.
Please Log in or Create an account to join the conversation.
I guess I should know by now not to ask if something is possible, as just about anything is possible with this component it seems, provided you know which file to alter and how to alter it.
Ed
Please Log in or Create an account to join the conversation.
Ed
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
You can always edit the file administrator/components/com_hikashop/classes.php and change the code below:
$variant->$field.=' '.$val->characteristic_value;
to:
if(!(JRequest::getVar('ctrl')=='product'&&JRequest::getVar('task')=='show')){
$variant->$field.=' '.$val->characteristic_value;
}
But please note that this will be removed if you update hikashop.
The line you said to replace does not exist in the same form in the latest release. The closest I can find is:
$variant->$field.=$separator.$val->characteristic_value;
Should I replace that line with the code supplied above or does it need to be modified?
Thanks,
Ed
Please Log in or Create an account to join the conversation.
if(!(JRequest::getVar('ctrl')=='product'&&JRequest::getVar('task')=='show')){
$variant->$field.=$separator.$val->characteristic_value;
}
Please Log in or Create an account to join the conversation.
Upgraded to 1.4.7 and still occurs.
It seems to be working OK on demo site?? Any thoughts?
Please Log in or Create an account to join the conversation.
Could you give a link to the product where you have the problem so that we can check it ?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Sorry to bring this up again, but after updating to 1.4.8 this morning, I again need to modify administrator/components/com_hikashop/classes/product.php to get around the problem with my template not updating variant labels properly. Could you please point me to the code that needs to be changed as the previous code does not exist in the same form now.nicolas wrote:
You can always edit the file administrator/components/com_hikashop/classes.php and change the code below:
$variant->$field.=' '.$val->characteristic_value;
to:
if(!(JRequest::getVar('ctrl')=='product'&&JRequest::getVar('task')=='show')){
$variant->$field.=' '.$val->characteristic_value;
}
But please note that this will be removed if you update hikashop.
The line you said to replace does not exist in the same form in the latest release. The closest I can find is:
$variant->$field.=$separator.$val->characteristic_value;
Should I replace that line with the code supplied above or does it need to be modified?
Thanks,
Ed
Thanks,
Ed
Please Log in or Create an account to join the conversation.
$variant->$field.=$separator.$val->characteristic_value;
to:
if(!(JRequest::getVar('ctrl')=='product'&&JRequest::getVar('task')=='show')){
$variant->$field.=$separator.$val->characteristic_value;
}
We did not change it since then.
Please Log in or Create an account to join the conversation.
I searched for that line but didn't find it so thought it had changed again. Must have had a typo in my search request.
Sorry for wasting your time on this.
Ed
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.