Quantity field without add to cart button

  • Posts: 1100
  • Thank you received: 12
  • Hikashop Business
8 years 4 months ago #259994

-- HikaShop version -- : 3.0.0
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.5

Hello!

I would like some help please to do this:
In one specific category, i want the products to have the quantity option (in products listing page) even if they have no price, and at the bottom of the page there will be one "add to cart" button for all products. The customers will "build" a set of those products and order them.

I found the "Display the quantity field on the product page" that shows the one button for all products but how exactly does it work?
Does it redirect to cart page where you see each product seperatelly?
Also, the "Display the quantity field on the product page" option can be chosen only for some categories?

Thank you in advance

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

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
8 years 4 months ago #260045

Hi,

See "Add to cart on listings".
www.hikashop.com/support/documentation/5...html#display_product

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 1100
  • Thank you received: 12
  • Hikashop Business
8 years 4 months ago #260184

Hi,

ok the option "Add to cart on listings" does the job but what about quantity field without price?
And also this options applys to all categories and i only want it for one or two.

Thank you

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

  • Posts: 83993
  • Thank you received: 13605
  • MODERATOR
8 years 4 months ago #260196

Hi,

As long as the "Display 'add to cart' button for free products" setting is activated in the HikaShop configuration, the quantity field will display regardless of whether the product has a price or not.

There is not such option per category.
You would have to create a custom category field to turn on or off that option per category by editing the file "listing" of the view "product" and adding such code at the top:

<?php $this->config->set('show_quantity_field', $this->element->XXX); ?>
where XXX is the column name of your custom field. The value needs to be 1 (one per product) or 2 (global).

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

Time to create page: 0.062 seconds
Powered by Kunena Forum