Sales and Category mode in same screen

  • Posts: 16
  • Thank you received: 0
10 years 9 months ago #167894

-- HikaShop version -- : business
-- Joomla version -- : 2.5

Hi,

I have been trying to figure out a definitive answer to this question, but cannot find a solution that works from other threads in the forum.

I am trying to have Hikashop run in sales mode with the 'add to cart button' for some categories while other categories (in the same menu) remaining in catalogue mode without the 'add to cart button'.

I have attached a screenshot photo to show you what I mean. In the photo I want the category 'current seasonal items' to run in sales mode so people can add the products in the cart, however the category 'molded items' I want to be in catalogue mode so it looks the same layout wise, but people cannot add the products to their shopping cart.

I hope this makes sense.

Attachments:

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

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
10 years 9 months ago #167896

Hi,

What you can do is this:
Have the "Display add to cart button for free products" option of the configuration turned off and don't set the price for the products for which you don't want the add to cart button.
You can always display the price within the description of the product or via a custom product field if you need to for the products without the add to cart buttons.
An alternative could be to create a copy of the show_default view file via the menu Display>Views and remove the display of the quantity layout from it and then select different layouts in your products based on whether they need to add to cart button or not.

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

  • Posts: 16
  • Thank you received: 0
10 years 9 months ago #168028

Thanks for your response.
Right now I have some products that don't have prices but you can still 'add to cart' which I want to keep, so the other way you mentioned was to create a copy of the show_default file and taking out the quantity. Can you explain this more? How would it get rid of the 'add to cart' button and how do I apply this to certain products/categories?

Thanks again!

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

  • Posts: 83933
  • Thank you received: 13588
  • MODERATOR
10 years 9 months ago #168034

Hi,

Taking out the add to cart button from the show_default view file can be done by just removing the code:
$this->setLayout('quantity');
echo $this->loadTemplate();

make sure that you change the name of the file when you edit it in order to get the modification in a copy of the view file.
Then, in your categories/products you'll be able to select the layout you want with the "layout on product page" option.

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

Time to create page: 0.071 seconds
Powered by Kunena Forum