- Posts: 107
- Thank you received: 0
about the characteristics showing in the cart ...
15 years 6 months ago #9710
by seb
about the characteristics showing in the cart ... was created by seb
This is about the characteristics showing in the cart and the final cart, I'd like to customized a bit the way it shows up ... when you've got a few characteristics it might be a bit messy .. I'd like to add </br> or "'" in which file is it made .. in which file is it made ?
Please Log in or Create an account to join the conversation.
15 years 6 months ago #9729
by nicolas
Replied by nicolas on topic Re: about the characteristics showing in the cart ...
We actually started to add an option for that.
If you use a really recent version, you can just go in phpmyadmin and in the hikashop_config table add an entry with the namekey being characteristics_values_separator and the value being the separator you would like.
If you use a really recent version, you can just go in phpmyadmin and in the hikashop_config table add an entry with the namekey being characteristics_values_separator and the value being the separator you would like.
Please Log in or Create an account to join the conversation.
15 years 6 months ago #9798
by seb
Replied by seb on topic Re: about the characteristics showing in the cart ...
yep working fine ... but ... there is always a 'but' it also adds my separators in title in the product/show.php ... I'd like to avoid that ... but still want it in my cart ... how can I do that ????
Please Log in or Create an account to join the conversation.
15 years 6 months ago #9818
by nicolas
Replied by nicolas on topic Re: about the characteristics showing in the cart ...
You would have to edit the file show of the view product and change the code to use the main product name instead of the variant name.
So replace:
echo $this->element->product_name;
by:
if(!empty($this->element->main->product_name)){
echo $this->element->main->product_name;
}else{
$this->element->product_name;
}
and:
echo $variant->product_name;
by:
echo $this->element->main->product_name;
So replace:
echo $this->element->product_name;
by:
if(!empty($this->element->main->product_name)){
echo $this->element->main->product_name;
}else{
$this->element->product_name;
}
and:
echo $variant->product_name;
by:
echo $this->element->main->product_name;
Please Log in or Create an account to join the conversation.
15 years 6 months ago #9928
by seb
Replied by seb on topic Re: about the characteristics showing in the cart ...
fantastic
Please Log in or Create an account to join the conversation.
Time to create page: 0.230 seconds