- Posts: 19
- Thank you received: 0
Custom fields item just on product page
13 years 11 months ago #80287
by jodancer
Custom fields item just on product page was created by jodancer
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
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.
13 years 11 months ago #80372
by Xavier
Replied by Xavier on topic Custom fields item just on product page
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.
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.
13 years 11 months ago #80424
by jodancer
Replied by jodancer on topic Custom fields item just on product page
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
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.
13 years 11 months ago #80474
by Xavier
Replied by Xavier on topic Custom fields item just on product page
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.
In the menu/module options, you can disable the "add to cart" button.
Please Log in or Create an account to join the conversation.
13 years 11 months ago #80482
by jodancer
Replied by jodancer on topic Custom fields item just on product page
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
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.
13 years 11 months ago #80557
by nicolas
Replied by nicolas on topic Custom fields item just on product page
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.
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.
13 years 11 months ago #80673
by jodancer
Replied by jodancer on topic Custom fields item just on product page
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.
13 years 11 months ago #80679
by jodancer
Replied by jodancer on topic Custom fields item just on product page
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.
13 years 11 months ago #80705
by Xavier
Replied by Xavier on topic Custom fields item just on product page
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.
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.
13 years 11 months ago #80711
by jodancer
Replied by jodancer on topic Custom fields item just on product page
Thank you.
I have sent a PM with the login details
I have sent a PM with the login details
Please Log in or Create an account to join the conversation.
13 years 11 months ago #80786
by Xavier
Replied by Xavier on topic Custom fields item just on product page
Hi,
Here is the code I edited in the view "product / listing_img_title":
Where '116' is the id of your category.
Here is the code I edited in the view "product / listing_img_title":
Code:
<?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 -->
The following user(s) said Thank You: jodancer
Please Log in or Create an account to join the conversation.
13 years 11 months ago #80830
by jodancer
Replied by jodancer on topic Custom fields item just on product page
Thank you very much
Please Log in or Create an account to join the conversation.
Time to create page: 0.091 seconds