- Posts: 14
- Thank you received: 0
Quantity Box on Front page
- Khalid Al Hassan
-
Topic Author
- Offline
Less
More
13 years 1 month ago #122022
by Khalid Al Hassan
Quantity Box on Front page was created by Khalid Al Hassan
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
$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.
13 years 1 month ago #122027
by nicolas
Replied by nicolas on topic Quantity Box on Front page
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.
- Khalid Al Hassan
-
Topic Author
- Offline
Less
More
- Posts: 14
- Thank you received: 0
13 years 1 month ago #122039
by Khalid Al Hassan
Replied by Khalid Al Hassan on topic Quantity Box on Front page
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
Photo below and link
theflavorvapor.com/index.php/site-map/advanced-vapors
Please Log in or Create an account to join the conversation.
13 years 1 month ago #122043
by nicolas
Replied by nicolas on topic Quantity Box on Front page
You can add such CSS for that on your website:
.hikashop_products .hikashop_product_stock table{ margin-left:40%; }
.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.
- Khalid Al Hassan
-
Topic Author
- Offline
Less
More
- Posts: 14
- Thank you received: 0
13 years 1 month ago #122047
by Khalid Al Hassan
Replied by Khalid Al Hassan on topic Quantity Box on Front page
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.117 seconds