- Posts: 69
- Thank you received: 1
Manage Variant Error
Plus when I copy a product to use for a new one, the variants that were also copied will include a price that was not in the original copied product. In fact there was no price for the original copied variant.
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
I think that you'll maybe find some solutions there :
Hope this will help you.I would say that this comes from the fact that you have the register globals option of your php turned on, which you shouldn't. Because of that, the option variable we use in our view overwrites the option variable that joomla uses on it end and thus you can that error.
Three solutions:
1. you change that line by:
$option = preg_replace('/[^A-Z0-9_\.-]/i', '', JRequest::getString('option'));
2. You edit the file option of the view product via the menu Display->Views and you change the variable $option by $optionElement to avoid the conflict.
3. You deactivate that php option, supposing that you have access to your php.ini
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.
Please Log in or Create an account to join the conversation.
We cannot reproduce the problem.
If you can add the line:
if(is_object($value)) return $value;
before:
$value = is_array($value) ? array_map(array('JRequest', '_stripSlashesRecursive'), $value) : stripslashes($value);
in the file:
/home/basket/public_html/libraries/joomla/environment/request.php
that will remove the error.
It would be great if you could use the line:
if(is_object($value)) var_dump(debug_backtrace());
instead at the same place before the fix and give us the debug trace that you get on the screen when you do that.
That would help us understand what's going on.
Please Log in or Create an account to join the conversation.
You can see this at my account. I will send login. Go to Gifts > Mini Box > Roasted California Almonds (Unsalted) - Mini > Manage Variants > Roasted California Almonds (Unsalted) - Mini_5 and change the code to GW2RE then save and error comes. This code was used on the previous product.
Please Log in or Create an account to join the conversation.
You can indeed have variants without a name as the name is then the concatenation of the main product and the characteristics values.
We've added some checks to avoid that and display an error message instead for next release of HikaShop.
Thank you for your feedback.
Please Log in or Create an account to join the conversation.