Skip to main content

Add extra field in Checkout Cart View

More
12 years 7 months ago #148144 by tuttoweb
Hi to all
I reverse engineered a bit the view Cart Checkout and I found this
Code:
if(hikashop_level(2) && !empty($this->extraFields['item'])){
in row 358.

I would like to add some extra field in this view and I was wondering to know how to do this.
In addition, maybe it is in some configuration page, how can I hide quantity field form in the cart?


Thank you in advance

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

More
12 years 7 months ago #148146 by Jerome
Hi,

Please explain what you want to do.
We can't understand what you are trying to achieve.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

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

More
12 years 7 months ago #148255 by tuttoweb
Basically, in the cart I want to add e custom field to allow user to choose a custom option. Then I want to get those data in the plugin I'm developing.

To achieve that, I though that that extraField property was what I needed to do so. Is it so or I need to do something else?

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

More
12 years 7 months ago #148266 by Jerome
Hi,

To create "item custom fields", you first need HikaShop Business.
After that, in your plugin, you can "simply" load the cart ( $cartClass->loadFullCart() ) which will contains the products and their item custom fields.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

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

Time to create page: 0.193 seconds
Powered by Kunena Forum