Displaying quantity input boxes

  • Posts: 22
  • Thank you received: 0
13 years 6 months ago #15585

fundraisingspices.org I would like have a quantity input box with all views. Any ideas?

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

  • Posts: 82728
  • Thank you received: 13343
  • MODERATOR
13 years 6 months ago #15586

You can go in the menu Display->Views and edit the view file listing_table. There you can change the code:
$this->params->set('show_quantity_field', 2);
to:
$this->params->set('show_quantity_field', 1);

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

  • Posts: 22
  • Thank you received: 0
13 years 6 months ago #15621

I went to Display/Views/edit listing_table on the template that I use for the frontend (j51_awaken) and the display is of the general template preferences. Then I tried clicking on the listing_table for atomic and found the php code you mentioned. Looks like I may have to go into the php of my template to make the edit. Any idea of what file I need?

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

  • Posts: 82728
  • Thank you received: 13343
  • MODERATOR
13 years 6 months ago #15625

You didn't click on the file name but on the template name. That's why you didn't see the code of the view but the template preferences.

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

  • Posts: 22
  • Thank you received: 0
13 years 6 months ago #15626

Thanks! That did the trick! I simply changed the '2' to a '1' and the quantity box appeared next to each product.

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

  • Posts: 7
  • Thank you received: 0
13 years 3 weeks ago #27199

I have the same problem, and I tried to change the code from 2 to 1 and didnt work

www.sinaisharm.com/index.php/hair

can you help me please

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

  • Posts: 82728
  • Thank you received: 13343
  • MODERATOR
13 years 3 weeks ago #27200

Maybe it's because you didn't do the change for the correct template ?

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

  • Posts: 7
  • Thank you received: 0
13 years 3 weeks ago #27202

Sorry, it was saving problem, now it is so fine.

Thank you so much. I really like this extension so much

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

  • Posts: 7
  • Thank you received: 0
13 years 3 weeks ago #27203

another question please,
How to align the input area to be vertical align with the + and - signs?

the same link
www.sinaisharm.com/index.php/hair

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

  • Posts: 82728
  • Thank you received: 13343
  • MODERATOR
13 years 3 weeks ago #27205

You should use CSS to tweak that.

For example, you could try to add something like that:
.hikashop_product_stock td{
vertical-align: top !important;
}

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

  • Posts: 7
  • Thank you received: 0
13 years 3 weeks ago #27207

thanks for your help.
I did it align middle instead of top. now it works so fine
.hikashop_product_stock td{
vertical-align: middle !important;
}


Thanks

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

  • Posts: 1
  • Thank you received: 0
11 years 1 month ago #123959

i checked my own listing_table file but did not find any matching statements to this:
$this->params->set('show_quantity_field', 2);

please help

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

  • Posts: 13201
  • Thank you received: 2322
11 years 1 month ago #123992

Hi,

The previous topic has more than 1 year, so many things have probably changed.
Thanks to explain what is your problem or what you need.

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

  • Posts: 15
  • Thank you received: 0
11 years 3 weeks ago #127324

Hi,

I just updated to latest version and quantity input field box disappeared.
I quess before it was version 2.1.3. and now its 2.2.1

I have products displayed via joomla articles and add to cart button is displayed via hikashop plugin.
Please how to show quantity input box again ?

Thank you

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

  • Posts: 12953
  • Thank you received: 1778
11 years 3 weeks ago #127358

Hi,
And does your product have variants ?

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

  • Posts: 15
  • Thank you received: 0
11 years 3 weeks ago #127371

Nope

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

  • Posts: 82728
  • Thank you received: 13343
  • MODERATOR
11 years 3 weeks ago #127451

You're probably missing the tag attribute to hide/display the quantity fields in your product tags.
I would recommend to edit your articles and check the tags so that they have the correct attributes.

The following user(s) said Thank You: Hátle

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

Time to create page: 0.126 seconds
Powered by Kunena Forum