Custom fields item just on product page

  • Posts: 19
  • Thank you received: 0
11 years 11 months ago #80287

I have a category selling gift cards and would like to add a few fields like "Name of the person for the gift card" "their email" "Your Name" " Message to the person" etc. via the custom fields item.

All this at the moment also displays in the products listing in the category which makes it look very messy.
Is there a way to only have these fields on the product page and if add to cart is selected they must go to the product page to fill in these details?

Thanks

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

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

Hi,

You can disable the option "Display custom item fields" in your content menu/module in HikaShop > Display > content menu/module.
And set the field to require in your custom field options.

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

  • Posts: 19
  • Thank you received: 0
11 years 11 months ago #80424

Thank you Xavier, I had found the option to disable the Display custom item fields but if you do that you can add the gift card to the cart and it doesn't prompt to fill out any required fields and you can buy it without filling in the required information.

The other way round is to turn off the add to cart just in this category (if this is possible???) so they HAVE to go to the product page.
Any ideas?

Thanks

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

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

Yes you will have to disable the "add to cart" button for this listing, it's possible if you have set a menu or a module to display that.
In the menu/module options, you can disable the "add to cart" button.

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

  • Posts: 19
  • Thank you received: 0
11 years 11 months ago #80482

Thank you for your reply.

I am using maximenu and although I created another menu/module for this category it still shows the add to cart as it seems to be taking everything from the maximenu.

I'm not sure how to achieve this

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

  • Posts: 82818
  • Thank you received: 13360
  • MODERATOR
11 years 11 months ago #80557

The option to hide/display the add to cart buttons on the listing will be in a product listing menu/module options screen.
You can see them via the menus Display->Content menus/modules in HikaShop. Please edit each one and make sure that this option is turned off and that will remove the add to cart buttons on the listings on your website.

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

  • Posts: 19
  • Thank you received: 0
11 years 11 months ago #80673

I have done this but it doesn't turn off the cart option for this category

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

  • Posts: 19
  • Thank you received: 0
11 years 11 months ago #80679

Failing this is there a way to change to add to cart button to go to product page instead of adding to cart on all products and I can then change the text to VIEW?

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

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

Hi,

Can you give us a backend access and tell us which category must not have the add to cart button ?

Else you can remove all the add to cart button by editing the view "product / listing_img_title" in HikaShop > Display > Views.

The following user(s) said Thank You: jodancer

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

  • Posts: 19
  • Thank you received: 0
11 years 11 months ago #80711

Thank you.

I have sent a PM with the login details

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

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

Hi,

Here is the code I edited in the view "product / listing_img_title":

<?php
$prodClass = hikashop_get('class.product');
$prodCats = $prodClass->getCategories($this->row->product_id);
$hide = 0;
foreach($prodCats as $prodCat){
    if($prodCat == '116') $hide = 1;
}
?>
<!-- ADD TO CART BUTTON AREA -->
<?php if($hide == 0){
if($this->params->get('add_to_cart') || $this->params->get('add_to_wishlist')){
  $this->setLayout('add_to_cart_listing');
  echo $this->loadTemplate();
} }?>
<!-- EO ADD TO CART BUTTON AREA -->
Where '116' is the id of your category.

The following user(s) said Thank You: jodancer

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

  • Posts: 19
  • Thank you received: 0
11 years 11 months ago #80830

Thank you very much

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

Time to create page: 0.085 seconds
Powered by Kunena Forum