Quantity Box on Front page

  • Posts: 14
  • Thank you received: 0
11 years 3 months ago #122022

Is it possible to add a quantity box to main view as well as the detailed view of products. Currently I have the quantity function set up on the detailed view using the following code.



$this->params->set('show_quantity_field', 1);


Is there a way to activate this function for the list view of products?

Here is my website www.theflavorvapor.com


-- url of the page with the problem -- : mywebsite.com/mypage
-- HikaShop version -- : x.x.x
-- Joomla version -- : x.x
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
11 years 3 months ago #122027

You can use the same code in the listing file of the product view via the menu Display>views.

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

  • Posts: 14
  • Thank you received: 0
11 years 3 months ago #122039

Thanks for your help, I have gotten the quantity box to appear but it isn't centered, Do I need to edit the code in the listing file to center the add to cart button?

Photo below and link
theflavorvapor.com/index.php/site-map/advanced-vapors

Attachments:

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
11 years 3 months ago #122043

You can add such CSS for that on your website:
.hikashop_products .hikashop_product_stock table{ margin-left:40%; }

The following user(s) said Thank You: Khalid Al Hassan

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

  • Posts: 14
  • Thank you received: 0
11 years 3 months ago #122047

Thank you for that CSS code, everything works great now!

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

Time to create page: 0.052 seconds
Powered by Kunena Forum