How to show quantity on product listing?

  • Posts: 82726
  • Thank you received: 13342
  • MODERATOR
12 years 7 months ago #42122

Ah yes that's also a solution.
If it didn't work in listing_img_title it's probably that you are using another item box layout than "image and title" which is the default one.

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

  • Posts: 59
  • Thank you received: 2
12 years 5 days ago #73190

Sorry for posting to a 1 year old thread, but I was directed here to add the quantity to product listing pages. This css edit did what it was supposed to do also, but I'm looking for a little bit different edit. How would I center the quantity box, + -, and Add to Cart button directly inline with the image, title, price, etc. Thanks, Eric.

nicolas wrote: To put more spacing, you can try to add some CSS code in the front end CSS file that you can edit via the Display tab of the configuration:
.hikashop_product_stock table td{ padding-right: 10px; }

Last edit: 12 years 4 days ago by d2dpcs.

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

  • Posts: 182
  • Thank you received: 15
12 years 4 days ago #73302

Add this to your template.css (or any other CSS that you have)

.hikashop_product_stock table { margin-left: auto; margin-right: auto;}

That'll do it!


Jan

The following user(s) said Thank You: nicolas, d2dpcs

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

  • Posts: 59
  • Thank you received: 2
12 years 4 days ago #73366

Worked like a charm! Thank you!

jansuhr wrote: Add this to your template.css (or any other CSS that you have)

.hikashop_product_stock table { margin-left: auto; margin-right: auto;}

That'll do it!


Jan

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

  • Posts: 93
  • Thank you received: 5
11 years 11 months ago #77395

sorted below;


you Guys are Awesome and have excellent Support! Keep up the great Work!.
Last edit: 11 years 11 months ago by reace.

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

  • Posts: 93
  • Thank you received: 5
11 years 11 months ago #77400

Sorted thanks , for table view QTY I have done the following in both template views for 'table_list' View ;

<?php if($this->params->get('add_to_cart')){ ?>
						<td class="hikashop_product_add_to_cart_row">
							<?php
								$this->params->set('show_quantity_field', 1);
                                                                $this->setLayout('add_to_cart_listing');
								echo $this->loadTemplate();
							?>
						</td>
					<?php } ?>

Worked a treat.

Cheers.


you Guys are Awesome and have excellent Support! Keep up the great Work!.
Last edit: 11 years 11 months ago by reace.
The following user(s) said Thank You: djundi

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

  • Posts: 2
  • Thank you received: 0
10 years 14 hours ago #178085

-- HikaShop version -- : 2.2.2
-- Joomla version -- : 2.5.20 and 3
-- PHP version -- : 5.3.9
- Template GK fronstore
-- Browser(s) name and version -- : Firefox,Chrome,IE11

i have create all caregories and have begin to create the menu.this all going fine and good.
but now i have add one testproduct for look www.thaionlinemarkt.com/neu/de/gesundhei...t/1-testprodukt.html
but the problem i cant see the quantity.

we can do does show it and their in wich name of script exactly must change does can show later the quantity?

the option for "Display the quantity field on the product page" is set to "Ajax Input" in the configuration of HikaShop..

i want not move to other shopsystem eg Virtuemart.

thx and hope for fast respond

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

  • Posts: 13201
  • Thank you received: 2322
10 years 1 hour ago #178128

Hi,

You have to add this kind of css property in your css file:

.hikashop_product_quantity_field{
 width: 50px !important;
}
hikashop.com/support/support/documentati...ize-the-display.html

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

Time to create page: 0.109 seconds
Powered by Kunena Forum