Cart Question

  • Posts: 73
  • Thank you received: 2
11 years 8 months ago #93175

Just installed Business version.

I created custom fields and was wondering how to NOT have them appear in the shopping cart module.

Thanks
aheng

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 8 months ago #93241

Hi aheng,

I think that you'll probably find your answer there :

If you want to remove the display of the custom fields on the cart during the checkout you will need to add that CSS:

.hikashop_cart_product_custom_item_fields{ display : none; }


Hope this will help you.

Please Log in or Create an account to join the conversation.

  • Posts: 73
  • Thank you received: 2
11 years 8 months ago #93296

Hi, I added this to the frontend CSS as well as my own template css and the custom fields still appear. Please advise. Thanks

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #93383

Hi,

You can edit the view "product / cart" and comment/remove the parts concerning the custom_main and custom_item.

Please Log in or Create an account to join the conversation.

  • Posts: 73
  • Thank you received: 2
11 years 8 months ago #93434

Ok so I discovered I had to add each custom field name created to "no display" to the css file to make it work. No need to edit the PHP display file mentioned above.

The following user(s) said Thank You: Xavier

Please Log in or Create an account to join the conversation.

  • Posts: 73
  • Thank you received: 2
11 years 8 months ago #93672

Hi, another question. Can the custom fields also appear on the checkout cart page under each of the products? See attached.
Also how to show the custom fields in the confirmation email sent to customers.
Thanks

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #93859

By default it should be displayed on cart of the checkout thanks to this code:

								if(hikashop_level(2) && !empty($this->extraFields['item'])){
									foreach($this->extraFields['item'] as $field){
										$namekey = $field->field_namekey;
										if(empty($row->$namekey)) continue;
										echo '<p class="hikashop_cart_item_'.$namekey.'">'.$this->fieldsClass->getFieldName($field).': '.$this->fieldsClass->show($field,$row->$namekey).'</p>';
									}
								}
In the view "checkout / cart".

And in the email thanks to this code:
                    if(!empty($itemFields)){
                      foreach($itemFields as $field){
                        $namekey = $field->field_namekey;
                        if(empty($item->$namekey)) continue;
                        echo '<p>'.$fieldsClass->getFieldName($field).': '.$fieldsClass->show($field,$item->$namekey).'</p>';
                      }
                    }

The following user(s) said Thank You: aheng5

Please Log in or Create an account to join the conversation.

Time to create page: 0.087 seconds
Powered by Kunena Forum