[Skip to main content](#vessel-content)

#  Profile for pbleiman

##

[![pbleiman's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37789-pbleiman "View pbleiman's Profile")

**[ Offline](/forum/user/37789-pbleiman)**

- **User Type:** User

- **Register Date:** 26 Jun 2015
- **Last login:** 4 years 5 months ago
- **Time Zone:**  UTC +0:00
- **Local Time:** 15:48

- **Posts:** 5
- **Profile views:** 58
- **Thank you received:** 1

- **Gender:** Unknown
- **Birthdate:** Unknown

- Posts

#  pbleiman's recent posts  (5 messages )

All Since last visit 4 Hours 8 Hours 12 Hours 24 Hours 48 Hours Week Month Year     All Since last visit 4 Hours 8 Hours 12 Hours 24 Hours 48 Hours Week Month Year

| <a id="forumtop"> </a> [  ](#forumbottom) | Subject | Replies / Views | Last Post | <a id="forumbottom"> </a> [   ](#forumtop) |
|---|---|---|---|---|
| [](/forum/26-product-category-display/899987-multiple-quantities-not-working#319817) | [Multiple quantities not working](/forum/26-product-category-display/899987-multiple-quantities-not-working#319817 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.14 -- PHP version -- : 7.2.1 -- Browser(s) name and version -- : multiple -- Error-message(debug-mod must be tuned on) -- : none  On our Wine shop, we want to have different options for the quantity input.  For most products, we want the quantity to default to 6 bottles, but customers can buy in smaller increments. Some products are sold per piece. Others are sold per x pieces.  For the products sold per x, we use the min&#95;quantity field combined with the show&#95;select view For the first case, we wrote a small customisation below in show&#95;quantity.php using a custom field dflt&#95;qty  This worked fine until recently, but since the latest updates: - the system no longer seems to read our dflt&#95;qty field (it defaults all products to 6 pieces even if dflt&#95;qty &gt; 0). - when setting min&#95;quantity the initial quantity is set, but the increment remains 1. For instance: if min&#95;quantity is set to 4 and I hit the &quot;+&quot; button, the quantity will jump to 5 instead of 8.  When adding the field &quot;dflt&#95;qty&quot; to the front end the value in the database displays correctly so nothing wrong there.  Any idea what is wrong?  Customisation in show&#95;quantity.php: $min&#95;quantity =$this-&gt;params-&gt;get('min&#95;quantity'); $max&#95;quantity =$this-&gt;params-&gt;get('max&#95;quantity'); $html =$this-&gt;params-&gt;get('html'); $salesqty =''; if ($min&#95;quantity &gt; 1){ $salesqty = $min&#95;quantity; }else{ if ($this-&gt;element-&gt;dflt&#95;qty &gt; 0){ $salesqty = $this-&gt;element-&gt;dflt&#95;qty; }else{ $salesqty = 6;} }")         Category: [Product &amp; Category Display](/forum/26-product-category-display "Questions about product and category display. You can't find how to make Hikashop looks incredible? The answer is here!")     Topic started 6 years 5 months ago, by [pbleiman](/forum/user/37789-pbleiman "View pbleiman's Profile")       [Last Post](/forum/26-product-category-display/899987-multiple-quantities-not-working#319841 "Hi,  I'm not able to reproduce any problem with the selection of the product page layout on my end. But let's not drift and focus on your issue. Does your product has variants ? If yes, then $this-&gt;element-&gt;dflt&#95;qty is the value of the custom field in the default variant. And the value you want (from the main product) is in $this-&gt;element-&gt;main-&gt;dflt&#95;qty Maybe that's why it doesn't work like you want ? Besides that, I don't see the reason why the custom field value wouldn't in there.") 6 years 5 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:3  Views:433 | [Last Post](/forum/26-product-category-display/899987-multiple-quantities-not-working#319841 "Hi,  I'm not able to reproduce any problem with the selection of the product page layout on my end. But let's not drift and focus on your issue. Does your product has variants ? If yes, then $this-&gt;element-&gt;dflt&#95;qty is the value of the custom field in the default variant. And the value you want (from the main product) is in $this-&gt;element-&gt;main-&gt;dflt&#95;qty Maybe that's why it doesn't work like you want ? Besides that, I don't see the reason why the custom field value wouldn't in there.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      6 years 5 months ago |
| [](/forum/26-product-category-display/899987-multiple-quantities-not-working#319750) | [Multiple quantities not working](/forum/26-product-category-display/899987-multiple-quantities-not-working#319750 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.14 -- PHP version -- : 7.2.1 -- Browser(s) name and version -- : multiple -- Error-message(debug-mod must be tuned on) -- : none  On our Wine shop, we want to have different options for the quantity input.  For most products, we want the quantity to default to 6 bottles, but customers can buy in smaller increments. Some products are sold per piece. Others are sold per x pieces.  For the products sold per x, we use the min&#95;quantity field combined with the show&#95;select view For the first case, we wrote a small customisation below in show&#95;quantity.php using a custom field dflt&#95;qty  This worked fine until recently, but since the latest updates: - the system no longer seems to read our dflt&#95;qty field (it defaults all products to 6 pieces even if dflt&#95;qty &gt; 0). - when setting min&#95;quantity the initial quantity is set, but the increment remains 1. For instance: if min&#95;quantity is set to 4 and I hit the &quot;+&quot; button, the quantity will jump to 5 instead of 8.  When adding the field &quot;dflt&#95;qty&quot; to the front end the value in the database displays correctly so nothing wrong there.  Any idea what is wrong?  Customisation in show&#95;quantity.php: $min&#95;quantity =$this-&gt;params-&gt;get('min&#95;quantity'); $max&#95;quantity =$this-&gt;params-&gt;get('max&#95;quantity'); $html =$this-&gt;params-&gt;get('html'); $salesqty =''; if ($min&#95;quantity &gt; 1){ $salesqty = $min&#95;quantity; }else{ if ($this-&gt;element-&gt;dflt&#95;qty &gt; 0){ $salesqty = $this-&gt;element-&gt;dflt&#95;qty; }else{ $salesqty = 6;} }")         Category: [Product &amp; Category Display](/forum/26-product-category-display "Questions about product and category display. You can't find how to make Hikashop looks incredible? The answer is here!")     Topic started 6 years 5 months ago, by [pbleiman](/forum/user/37789-pbleiman "View pbleiman's Profile")       [Last Post](/forum/26-product-category-display/899987-multiple-quantities-not-working#319841 "Hi,  I'm not able to reproduce any problem with the selection of the product page layout on my end. But let's not drift and focus on your issue. Does your product has variants ? If yes, then $this-&gt;element-&gt;dflt&#95;qty is the value of the custom field in the default variant. And the value you want (from the main product) is in $this-&gt;element-&gt;main-&gt;dflt&#95;qty Maybe that's why it doesn't work like you want ? Besides that, I don't see the reason why the custom field value wouldn't in there.") 6 years 5 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:3  Views:433 | [Last Post](/forum/26-product-category-display/899987-multiple-quantities-not-working#319841 "Hi,  I'm not able to reproduce any problem with the selection of the product page layout on my end. But let's not drift and focus on your issue. Does your product has variants ? If yes, then $this-&gt;element-&gt;dflt&#95;qty is the value of the custom field in the default variant. And the value you want (from the main product) is in $this-&gt;element-&gt;main-&gt;dflt&#95;qty Maybe that's why it doesn't work like you want ? Besides that, I don't see the reason why the custom field value wouldn't in there.") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      6 years 5 months ago |
| [](/forum/26-product-category-display/879239-default-quantity#214003) | [Default quantity](/forum/26-product-category-display/879239-default-quantity#214003 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.27 -- Browser(s) name and version -- : Safari 8.0.7 (OS X)  Is it possible to set a default quantity in the &quot;add to cart&quot; field on the product page ? We have products which we like to sell per 6 by default. It must be possible to order less than 6 units, but we'd like to stimulate the customers to order by 6 (or another multiple). Therefore, in the add to cart box by default the quantity should be set to 6 instead of 1.  I found a thread to set the minimum value to 0 and also manage to set this to 6 (either through minimum order quantity or by modifying the PHP directly), but in that case I cannot input a lower value anymore.")        Category: [Product &amp; Category Display](/forum/26-product-category-display "Questions about product and category display. You can't find how to make Hikashop looks incredible? The answer is here!")     Topic started 11 years 1 month ago, by [pbleiman](/forum/user/37789-pbleiman "View pbleiman's Profile")       [Last Post](/forum/26-product-category-display/879239-default-quantity#329008 "Hi,  It's still possible but the code to change has evolved. Now, in that same view file show&#95;quantity.php, you need to change the line: $current&#95;quantity = hikaInput::get()-&gt;getInt('quantity', $min&#95;quantity); to: $current&#95;quantity = 6;") 5 years 9 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:4  Views:1020 | [Last Post](/forum/26-product-category-display/879239-default-quantity#329008 "Hi,  It's still possible but the code to change has evolved. Now, in that same view file show&#95;quantity.php, you need to change the line: $current&#95;quantity = hikaInput::get()-&gt;getInt('quantity', $min&#95;quantity); to: $current&#95;quantity = 6;") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      5 years 9 months ago |
| [](/forum/26-product-category-display/879239-default-quantity#213955) | [Default quantity](/forum/26-product-category-display/879239-default-quantity#213955 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.27 -- Browser(s) name and version -- : Safari 8.0.7 (OS X)  Is it possible to set a default quantity in the &quot;add to cart&quot; field on the product page ? We have products which we like to sell per 6 by default. It must be possible to order less than 6 units, but we'd like to stimulate the customers to order by 6 (or another multiple). Therefore, in the add to cart box by default the quantity should be set to 6 instead of 1.  I found a thread to set the minimum value to 0 and also manage to set this to 6 (either through minimum order quantity or by modifying the PHP directly), but in that case I cannot input a lower value anymore.")        Category: [Product &amp; Category Display](/forum/26-product-category-display "Questions about product and category display. You can't find how to make Hikashop looks incredible? The answer is here!")     Topic started 11 years 1 month ago, by [pbleiman](/forum/user/37789-pbleiman "View pbleiman's Profile")       [Last Post](/forum/26-product-category-display/879239-default-quantity#329008 "Hi,  It's still possible but the code to change has evolved. Now, in that same view file show&#95;quantity.php, you need to change the line: $current&#95;quantity = hikaInput::get()-&gt;getInt('quantity', $min&#95;quantity); to: $current&#95;quantity = 6;") 5 years 9 months ago     by [nicolas](/forum/user/63-nicolas "View nicolas's Profile") | Replies:4  Views:1020 | [Last Post](/forum/26-product-category-display/879239-default-quantity#329008 "Hi,  It's still possible but the code to change has evolved. Now, in that same view file show&#95;quantity.php, you need to change the line: $current&#95;quantity = hikaInput::get()-&gt;getInt('quantity', $min&#95;quantity); to: $current&#95;quantity = 6;") by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")      5 years 9 months ago |
| [](/forum/37-import-export-csv-xls/876449-importing-products-with-accented-names#208038) | [Importing Products with accented names](/forum/37-import-export-csv-xls/876449-importing-products-with-accented-names#208038 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.4.38  I'm importing products that come from various regions. A good portion of the names include accented text. The accents show in the CSV file, but they are removed when imported.")        Category: [Import &amp; Export (CSV, XLS…)](/forum/37-import-export-csv-xls "Questions about import and export will find an answer here")     Topic started 11 years 6 months ago, by [cpctw](/forum/user/36693-cpctw "View cpctw's Profile")       [Last Post](/forum/37-import-export-csv-xls/876449-importing-products-with-accented-names#208038 "I experienced the same issue when creating the CSV file directly from Excel (Mac OS version 2011). The issue can easily be solved by exporting the file as &quot;Windows Comma Separated (.csv)&quot;. Other...") 11 years 4 months ago     by [pbleiman](/forum/user/37789-pbleiman "View pbleiman's Profile") | Replies:6  Views:1401 | [Last Post](/forum/37-import-export-csv-xls/876449-importing-products-with-accented-names#208038 "I experienced the same issue when creating the CSV file directly from Excel (Mac OS version 2011). The issue can easily be solved by exporting the file as &quot;Windows Comma Separated (.csv)&quot;. Other...") by [pbleiman](/forum/user/37789-pbleiman "View pbleiman's Profile")      11 years 4 months ago |

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.047 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
