Skip to main content

Displaying quantity input boxes

More
15 years 5 months ago #15585 by Bob53207
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.

More
15 years 5 months ago #15586 by nicolas
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.

More
15 years 5 months ago #15621 by Bob53207
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.

More
15 years 5 months ago #15625 by nicolas
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.

More
15 years 5 months ago #15626 by Bob53207
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.

More
15 years 2 weeks ago #27199 by momo55
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.

More
15 years 2 weeks ago #27200 by nicolas
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.

More
15 years 2 weeks ago #27202 by momo55
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.

More
15 years 2 weeks ago #27203 by momo55
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.

More
15 years 2 weeks ago #27205 by nicolas
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.

More
15 years 2 weeks ago #27207 by momo55
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.

More
13 years 1 month ago #123959 by bjpumps
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.

More
13 years 1 month ago #123992 by Xavier
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.

More
13 years 2 weeks ago #127324 by Hátle
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.

More
13 years 2 weeks ago #127358 by Mohamed Thelji
Hi,
And does your product have variants ?

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

More
13 years 2 weeks ago #127371 by Hátle
Nope

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

More
13 years 2 weeks ago #127451 by nicolas
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.140 seconds
Powered by Kunena Forum