Skip to main content

Cart Question

More
13 years 6 months ago #93175 by aheng5
Cart Question was created by aheng5
Just installed Business version.

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

Thanks
aheng

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

More
13 years 6 months ago #93241 by Mohamed Thelji
Replied by Mohamed Thelji on topic Cart Question
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.

More
13 years 6 months ago #93296 by aheng5
Replied by aheng5 on topic Cart Question
Hi, I added this to the frontend CSS as well as my own template css and the custom fields still appear. Please advise. Thanks

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

More
13 years 6 months ago #93383 by Xavier
Replied by Xavier on topic Cart Question
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.

More
13 years 6 months ago #93434 by aheng5
Replied by aheng5 on topic Cart Question
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.

More
13 years 6 months ago #93672 by aheng5
Replied by aheng5 on topic Cart Question
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

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

More
13 years 6 months ago #93859 by Xavier
Replied by Xavier on topic Cart Question
By default it should be displayed on cart of the checkout thanks to this code:
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:
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.228 seconds
Powered by Kunena Forum