- Posts: 40
- Thank you received: 0
Quantity on Product Listing Page or Product Page
- DShapiroNaples
-
Topic Author
- Offline
Less
More
15 years 7 months ago #7874
by DShapiroNaples
Quantity on Product Listing Page or Product Page was created by DShapiroNaples
Is there a way to add a quantity input to show on the product listing page and the product detail page?
Please Log in or Create an account to join the conversation.
15 years 7 months ago #7880
by nicolas
Replied by nicolas on topic Re: Quantity on Product Listing Page or Product Page
You can change the option "Display the quantity field on the product page" to "ajax input" instead of "no display". The default should already be "no display".
For the listing you can see the solution on that post: www.hikashop.com/en/support/forum/4-how-...ome-advice.html#7386
For the listing you can see the solution on that post: www.hikashop.com/en/support/forum/4-how-...ome-advice.html#7386
Please Log in or Create an account to join the conversation.
- DShapiroNaples
-
Topic Author
- Offline
Less
More
- Posts: 40
- Thank you received: 0
15 years 7 months ago - 15 years 7 months ago #7907
by DShapiroNaples
Replied by DShapiroNaples on topic Re: Quantity on Product Listing Page or Product Page
The quantity only appears on the product page when you set the input to ajax. If it is set to normal it does not appear. It never appears on the product listing page. Any way to display on the product listing page?
www.fitsolutionsnaples.com/index.php?opt...l-training&Itemid=72
www.fitsolutionsnaples.com/index.php?opt...l-training&Itemid=72
Last edit: 15 years 7 months ago by DShapiroNaples. Reason: Added addl info
Please Log in or Create an account to join the conversation.
15 years 7 months ago #7908
by nicolas
Replied by nicolas on topic Re: Quantity on Product Listing Page or Product Page
For the listing you can see the solution on that post:
www.hikashop.com/en/support/forum/4-how-...ome-advice.html#7386
Please Log in or Create an account to join the conversation.
- DShapiroNaples
-
Topic Author
- Offline
Less
More
- Posts: 40
- Thank you received: 0
15 years 7 months ago #7909
by DShapiroNaples
Replied by DShapiroNaples on topic Re: Quantity on Product Listing Page or Product Page
Thanks. That added an ajax style quantity to the product listing page but I have set the style to normal and it does not appear on the product page at all unless I set the style to ajax.
Can I have a normal style appear on both the product page and product listing page?
Can I have a normal style appear on both the product page and product listing page?
Please Log in or Create an account to join the conversation.
15 years 7 months ago #7910
by nicolas
Replied by nicolas on topic Re: Quantity on Product Listing Page or Product Page
You can use that code instead of the one in the other thread to display the quantity box in normal:
$this->params->set('show_quantity_field',-1);
For the product page, the option in the config should do the job.
$this->params->set('show_quantity_field',-1);
For the product page, the option in the config should do the job.
Please Log in or Create an account to join the conversation.
- DShapiroNaples
-
Topic Author
- Offline
Less
More
- Posts: 40
- Thank you received: 0
15 years 7 months ago #7911
by DShapiroNaples
Replied by DShapiroNaples on topic Re: Quantity on Product Listing Page or Product Page
I changed the code and the option is set to normal. Now quantity does not appear on the product listing or product page.
www.fitsolutionsnaples.com/index.php?opt...e=fit-camp&Itemid=72
www.fitsolutionsnaples.com/index.php?opt...&category_pathway=10
www.fitsolutionsnaples.com/index.php?opt...e=fit-camp&Itemid=72
www.fitsolutionsnaples.com/index.php?opt...&category_pathway=10
Please Log in or Create an account to join the conversation.
15 years 7 months ago #7913
by nicolas
Replied by nicolas on topic Re: Quantity on Product Listing Page or Product Page
Please edit the file administrator/components/com_hikashop/helpers/cart.php and change the line:
}elseif($params->get('show_quantity_field',0)!=-1){
to:
}elseif($params->get('show_quantity_field',0)!=0){
It seems that normal and no display are reverted at the moment.
}elseif($params->get('show_quantity_field',0)!=-1){
to:
}elseif($params->get('show_quantity_field',0)!=0){
It seems that normal and no display are reverted at the moment.
Please Log in or Create an account to join the conversation.
- DShapiroNaples
-
Topic Author
- Offline
Less
More
- Posts: 40
- Thank you received: 0
15 years 7 months ago #7916
by DShapiroNaples
Replied by DShapiroNaples on topic Re: Quantity on Product Listing Page or Product Page
Code changed:
}elseif($params->get('show_quantity_field',0)!=0){
$html.='<input id="hikashop_product_quantity_field_'.$i.'" type="hidden" value="'.$min_quantity.'" class="hikashop_product_quantity_field" name="quantity" />';
}
return $html;
}
Parameter set to normal....
No quantity on product listing or product page
}elseif($params->get('show_quantity_field',0)!=0){
$html.='<input id="hikashop_product_quantity_field_'.$i.'" type="hidden" value="'.$min_quantity.'" class="hikashop_product_quantity_field" name="quantity" />';
}
return $html;
}
Parameter set to normal....
No quantity on product listing or product page
Please Log in or Create an account to join the conversation.
- DShapiroNaples
-
Topic Author
- Offline
Less
More
- Posts: 40
- Thank you received: 0
15 years 7 months ago #7919
by DShapiroNaples
Replied by DShapiroNaples on topic Re: Quantity on Product Listing Page or Product Page
This is the code I have in the product/listing.php view
<div id="<?php echo $this->params->get('main_div_name');?>" class="hikashop_category_information">
<?php
/** DBS
* Added option to force quantity on
**/
$this->params->set('show_quantity_field',-1);
$title = 'show_page_title';
if($this->module){
$title = 'showtitle';
<div id="<?php echo $this->params->get('main_div_name');?>" class="hikashop_category_information">
<?php
/** DBS
* Added option to force quantity on
**/
$this->params->set('show_quantity_field',-1);
$title = 'show_page_title';
if($this->module){
$title = 'showtitle';
Please Log in or Create an account to join the conversation.
15 years 7 months ago #7920
by nicolas
Replied by nicolas on topic Re: Quantity on Product Listing Page or Product Page
We've upload a new package of hikashop to fix the problem. Please download it for our website and install over and that should work.
Please Log in or Create an account to join the conversation.
- DShapiroNaples
-
Topic Author
- Offline
Less
More
- Posts: 40
- Thank you received: 0
15 years 7 months ago #7921
by DShapiroNaples
Replied by DShapiroNaples on topic Re: Quantity on Product Listing Page or Product Page
That worked... Once agin I am so thankful for your amazingly fast response!!!
Please Log in or Create an account to join the conversation.
Time to create page: 0.203 seconds