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

#   pre order

##

- **[Georg](/forum/user/5871-georg "View Georg's Profile")**
- [![Georg's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5871-georg "View Georg's Profile") Topic Author
- [ Offline](/forum/user/5871-georg)

Less More

- Posts: 79
- Thank you received: 1
-
-

13 years 8 months ago -  13 years 8 months ago [\#93375](#93375) by [Georg](/forum/user/5871-georg "View Georg's Profile")  *[pre order](/forum/4-how-to/79045-pre-order#93375 "Hi, I sell a vegetable which is only avilable after harvesting. My customers want to order them at once and I don´t want to lose them bay saying it is not avilable at the moment and they can´t order it. I guess they won´t come back in two weeks....  I would like to make it possible to do an pre order! What is the right way to do so? What I found out is following...  1) Start of selling Problem if I write start of selling date in future the customer does see this information only once at the product site, after ordering there is no further information about time of delivery.  2) Avilability Problem if I write the avilability f.ex. In two weeks the customer does see the information only at the product page  3) ??? Is there any other way to make pre orders possible so that the customer can get good visible informations about the date of delivery in the near future  Hope I could explain it clear. A soloution could be to write the aproximate delivery date to the order confirmation. But unfortunately I can&#96;t do php things like this :-(  Hope someone has a good idea and would be happy to get help greetings from bavaria georg")* was created by *[Georg](/forum/user/5871-georg "View Georg's Profile")*

Hi, I sell a vegetable which is only avilable after harvesting.
My customers want to order them at once and I don´t want to lose them bay saying it is not avilable at the moment and they can´t order it. I guess they won´t come back in two weeks....

I would like to make it possible to do an pre order!
What is the right way to do so? What I found out is following...

1) Start of selling
Problem if I write start of selling date in future the customer does see this information only once at the product site, after ordering there is no further information about time of delivery.

2) Avilability
Problem if I write the avilability f.ex. In two weeks the customer does see the information only at the product page

3) ??? Is there any other way to make pre orders possible so that the customer can get good visible informations about the date of delivery in the near future

Hope I could explain it clear.
A soloution could be to write the aproximate delivery date to the order confirmation. But unfortunately I can&#96;t do php things like this ![:-(](/media/kunena/emoticons/22.png ":-(")

Hope someone has a good idea and would be happy to get help
greetings from bavaria
georg

Last edit: 13 years 8 months ago by [Georg](/forum/user/5871-georg "View Georg's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5MDQ1LXByZS1vcmRlcj9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Away](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 8 months ago [\#93570](#93570) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[pre order](/forum/4-how-to/79045-pre-order#93570 "Hi, I sell a vegetable which is only avilable after harvesting. My customers want to order them at once and I don´t want to lose them bay saying it is not avilable at the moment and they can´t order it. I guess they won´t come back in two weeks....  I would like to make it possible to do an pre order! What is the right way to do so? What I found out is following...  1) Start of selling Problem if I write start of selling date in future the customer does see this information only once at the product site, after ordering there is no further information about time of delivery.  2) Avilability Problem if I write the avilability f.ex. In two weeks the customer does see the information only at the product page  3) ??? Is there any other way to make pre orders possible so that the customer can get good visible informations about the date of delivery in the near future  Hope I could explain it clear. A soloution could be to write the aproximate delivery date to the order confirmation. But unfortunately I can&#96;t do php things like this :-(  Hope someone has a good idea and would be happy to get help greetings from bavaria georg")*

Hi,

Do you want that the customer could buy the product even if it is not in stock ?
Is so, do you want to put some limitation for some kind of "stock of pre order" ?

I see some HikaShop users make some modification in order to trick the product stock.
HikaShop would display the stock -100. This 100 extra items are for "pre order". It means that when the product is less or equal to 100, some text are displayed differently in the front-end (due to the modifications by view override).
So the user could still buy the product and he knows that it is "pre order".

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5MDQ1LXByZS1vcmRlcj9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Georg](/forum/user/5871-georg "View Georg's Profile")**
- [![Georg's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5871-georg "View Georg's Profile") Topic Author
- [ Offline](/forum/user/5871-georg)

Less More

- Posts: 79
- Thank you received: 1
-
-

13 years 8 months ago [\#93931](#93931) by [Georg](/forum/user/5871-georg "View Georg's Profile")  Replied by *[Georg](/forum/user/5871-georg "View Georg's Profile")* on topic *[pre order](/forum/4-how-to/79045-pre-order#93931 "Hi, I sell a vegetable which is only avilable after harvesting. My customers want to order them at once and I don´t want to lose them bay saying it is not avilable at the moment and they can´t order it. I guess they won´t come back in two weeks....  I would like to make it possible to do an pre order! What is the right way to do so? What I found out is following...  1) Start of selling Problem if I write start of selling date in future the customer does see this information only once at the product site, after ordering there is no further information about time of delivery.  2) Avilability Problem if I write the avilability f.ex. In two weeks the customer does see the information only at the product page  3) ??? Is there any other way to make pre orders possible so that the customer can get good visible informations about the date of delivery in the near future  Hope I could explain it clear. A soloution could be to write the aproximate delivery date to the order confirmation. But unfortunately I can&#96;t do php things like this :-(  Hope someone has a good idea and would be happy to get help greetings from bavaria georg")*

Thanks for your help. Seems to be the thing that would suit my needs.
But how do I do this
*It means that when the product is less or equal to 100, some text are displayed differently in the front-end (due to the modifications by view override).*
Where can I arrange that a text is displayed. That would be a realy good solution.
Regards
Georg

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5MDQ1LXByZS1vcmRlcj9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

13 years 8 months ago [\#94031](#94031) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[pre order](/forum/4-how-to/79045-pre-order#94031 "Hi, I sell a vegetable which is only avilable after harvesting. My customers want to order them at once and I don´t want to lose them bay saying it is not avilable at the moment and they can´t order it. I guess they won´t come back in two weeks....  I would like to make it possible to do an pre order! What is the right way to do so? What I found out is following...  1) Start of selling Problem if I write start of selling date in future the customer does see this information only once at the product site, after ordering there is no further information about time of delivery.  2) Avilability Problem if I write the avilability f.ex. In two weeks the customer does see the information only at the product page  3) ??? Is there any other way to make pre orders possible so that the customer can get good visible informations about the date of delivery in the near future  Hope I could explain it clear. A soloution could be to write the aproximate delivery date to the order confirmation. But unfortunately I can&#96;t do php things like this :-(  Hope someone has a good idea and would be happy to get help greetings from bavaria georg")*

A good start would be to edit the file "quantity" of the view "product" via the menu Display&gt;Views and change: Code:

echo '&lt;span class="hikashop_product_stock_count"&gt;'.JText::sprintf('X_ITEMS_IN_STOCK',$this-&gt;row-&gt;product_quantity).'&lt;/span&gt;&lt;br/&gt;';

to: Code:

if($this-&gt;row-&gt;product_quantity&gt;100){ echo '&lt;span class="hikashop_product_stock_count"&gt;'.JText::sprintf('X_ITEMS_IN_STOCK',$this-&gt;row-&gt;product_quantity-100).'&lt;/span&gt;&lt;br/&gt;'; }else{ echo 'The product is out of stock. However, you can pre-order it'; }

and change : Code:

echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_CART'),'add',$this-&gt;params,$url,$this-&gt;ajax,'',$max,$min);

to: Code:

if($this-&gt;row-&gt;product_quantity&gt;100){ echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_CART'),'add',$this-&gt;params,$url,$this-&gt;ajax,'',$max,$min); }else{ echo $this-&gt;cart-&gt;displayButton('Pre order','add',$this-&gt;params,$url,$this-&gt;ajax,'',$max,$min); }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5MDQ1LXByZS1vcmRlcj9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 256
- Thank you received: 2
-
-

10 years 10 months ago [\#226192](#226192) by [dancingkazzaf](/forum/user/31984-dancingkazzaf "View dancingkazzaf's Profile")  Replied by *[dancingkazzaf](/forum/user/31984-dancingkazzaf "View dancingkazzaf's Profile")* on topic *[pre order](/forum/4-how-to/79045-pre-order#226192 "Hi, I sell a vegetable which is only avilable after harvesting. My customers want to order them at once and I don´t want to lose them bay saying it is not avilable at the moment and they can´t order it. I guess they won´t come back in two weeks....  I would like to make it possible to do an pre order! What is the right way to do so? What I found out is following...  1) Start of selling Problem if I write start of selling date in future the customer does see this information only once at the product site, after ordering there is no further information about time of delivery.  2) Avilability Problem if I write the avilability f.ex. In two weeks the customer does see the information only at the product page  3) ??? Is there any other way to make pre orders possible so that the customer can get good visible informations about the date of delivery in the near future  Hope I could explain it clear. A soloution could be to write the aproximate delivery date to the order confirmation. But unfortunately I can&#96;t do php things like this :-(  Hope someone has a good idea and would be happy to get help greetings from bavaria georg")*

Hi Nicolas,

Would you happen to know how to do this on HikaShop 2.5.0 or 2.6.0? The view file has changed and I couldn't make these edits.

Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5MDQ1LXByZS1vcmRlcj9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

10 years 10 months ago [\#226215](#226215) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[pre order](/forum/4-how-to/79045-pre-order#226215 "Hi, I sell a vegetable which is only avilable after harvesting. My customers want to order them at once and I don´t want to lose them bay saying it is not avilable at the moment and they can´t order it. I guess they won´t come back in two weeks....  I would like to make it possible to do an pre order! What is the right way to do so? What I found out is following...  1) Start of selling Problem if I write start of selling date in future the customer does see this information only once at the product site, after ordering there is no further information about time of delivery.  2) Avilability Problem if I write the avilability f.ex. In two weeks the customer does see the information only at the product page  3) ??? Is there any other way to make pre orders possible so that the customer can get good visible informations about the date of delivery in the near future  Hope I could explain it clear. A soloution could be to write the aproximate delivery date to the order confirmation. But unfortunately I can&#96;t do php things like this :-(  Hope someone has a good idea and would be happy to get help greetings from bavaria georg")*

Hi,

The line:
echo '&lt;span class="hikashop_product_stock_count"&gt;'.JText::sprintf('X_ITEMS_IN_STOCK',$this-&gt;row-&gt;product_quantity).'&lt;/span&gt;&lt;br/&gt;';

Is now:
echo '&lt;span class="hikashop_product_stock_count"&gt;'.$text.'&lt;br/&gt;&lt;/span&gt;';

So similarily, you can replace it with :
if($this-&gt;row-&gt;product_quantity&gt;100){
echo '&lt;span class="hikashop_product_stock_count"&gt;'.$text.'&lt;/span&gt;&lt;br/&gt;';
}else{
echo 'The product is out of stock. However, you can pre-order it';
}

and replace the lines:
if($this-&gt;row-&gt;product_quantity == 1 &amp;&amp; JText::_('X_ITEM_IN_STOCK') != 'X_ITEM_IN_STOCK')
$text = JText::sprintf('X_ITEM_IN_STOCK', $this-&gt;row-&gt;product_quantity);
else
$text = JText::sprintf('X_ITEMS_IN_STOCK', $this-&gt;row-&gt;product_quantity);

with:
if($this-&gt;row-&gt;product_quantity == 1 &amp;&amp; JText::_('X_ITEM_IN_STOCK') != 'X_ITEM_IN_STOCK')
$text = JText::sprintf('X_ITEM_IN_STOCK', $this-&gt;row-&gt;product_quantity-100);
else
$text = JText::sprintf('X_ITEMS_IN_STOCK', $this-&gt;row-&gt;product_quantity-100);

The following user(s) said Thank You: [dancingkazzaf](/forum/user/31984-dancingkazzaf "View dancingkazzaf's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5MDQ1LXByZS1vcmRlcj9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 256
- Thank you received: 2
-
-

10 years 10 months ago [\#226306](#226306) by [dancingkazzaf](/forum/user/31984-dancingkazzaf "View dancingkazzaf's Profile")  Replied by *[dancingkazzaf](/forum/user/31984-dancingkazzaf "View dancingkazzaf's Profile")* on topic *[pre order](/forum/4-how-to/79045-pre-order#226306 "Hi, I sell a vegetable which is only avilable after harvesting. My customers want to order them at once and I don´t want to lose them bay saying it is not avilable at the moment and they can´t order it. I guess they won´t come back in two weeks....  I would like to make it possible to do an pre order! What is the right way to do so? What I found out is following...  1) Start of selling Problem if I write start of selling date in future the customer does see this information only once at the product site, after ordering there is no further information about time of delivery.  2) Avilability Problem if I write the avilability f.ex. In two weeks the customer does see the information only at the product page  3) ??? Is there any other way to make pre orders possible so that the customer can get good visible informations about the date of delivery in the near future  Hope I could explain it clear. A soloution could be to write the aproximate delivery date to the order confirmation. But unfortunately I can&#96;t do php things like this :-(  Hope someone has a good idea and would be happy to get help greetings from bavaria georg")*

Thank you for your help, this has worked perfectly!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5MDQ1LXByZS1vcmRlcj9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[flexsus](/forum/user/39807-flexsus "View flexsus's Profile")**
- [![flexsus's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar39807.jpg)](/forum/user/39807-flexsus "View flexsus's Profile")
- [ Offline](/forum/user/39807-flexsus)

Less More

- Posts: 136
- Thank you received: 7
-
-
-

10 years 2 weeks ago -  10 years 2 weeks ago [\#254450](#254450) by [flexsus](/forum/user/39807-flexsus "View flexsus's Profile")  Replied by *[flexsus](/forum/user/39807-flexsus "View flexsus's Profile")* on topic *[pre order](/forum/4-how-to/79045-pre-order#254450 "Hi, I sell a vegetable which is only avilable after harvesting. My customers want to order them at once and I don´t want to lose them bay saying it is not avilable at the moment and they can´t order it. I guess they won´t come back in two weeks....  I would like to make it possible to do an pre order! What is the right way to do so? What I found out is following...  1) Start of selling Problem if I write start of selling date in future the customer does see this information only once at the product site, after ordering there is no further information about time of delivery.  2) Avilability Problem if I write the avilability f.ex. In two weeks the customer does see the information only at the product page  3) ??? Is there any other way to make pre orders possible so that the customer can get good visible informations about the date of delivery in the near future  Hope I could explain it clear. A soloution could be to write the aproximate delivery date to the order confirmation. But unfortunately I can&#96;t do php things like this :-(  Hope someone has a good idea and would be happy to get help greetings from bavaria georg")*

Hi

I'm in the exact same situation. Lets say I'm selling ducks and turkeys for Christmas. They will be slaughtered :evil: on the 20th of December and after this date, customers can come and pick them up at my store. I have a 75 walking around, so I will use Product Quantity for this.

It's and old threat - is it still current? Can we expect any new feature on this issue in next version of HikaShop?

I don't quit follow the quantity -100 or, if Quantity is less than...
Would it not be a better approach to add ta Custom Field (checkbox): Pre-order
And then check be if this is set or not, and then do they below trick to show ADD_TO_CART-button even if Available From is set to 20th of December and do trick to show Quantity of 75 too if this is set? And show the Available From date, so that customer know it's a pre-order and Ducks and Turkeys will be ready on this date. And every time 1 is sold, Quantity will be calculated to 1 less?

Regards,
Henrik

---

.ninja { color: black; visibility: hidden; }
In case of fire:
1. git commit
2. git push
3. exit building

Last edit: 10 years 2 weeks ago by [flexsus](/forum/user/39807-flexsus "View flexsus's Profile"). Reason: type

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5MDQ1LXByZS1vcmRlcj9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[flexsus](/forum/user/39807-flexsus "View flexsus's Profile")**
- [![flexsus's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar39807.jpg)](/forum/user/39807-flexsus "View flexsus's Profile")
- [ Offline](/forum/user/39807-flexsus)

Less More

- Posts: 136
- Thank you received: 7
-
-
-

10 years 2 weeks ago -  10 years 2 weeks ago [\#254486](#254486) by [flexsus](/forum/user/39807-flexsus "View flexsus's Profile")  Replied by *[flexsus](/forum/user/39807-flexsus "View flexsus's Profile")* on topic *[pre order](/forum/4-how-to/79045-pre-order#254486 "Hi, I sell a vegetable which is only avilable after harvesting. My customers want to order them at once and I don´t want to lose them bay saying it is not avilable at the moment and they can´t order it. I guess they won´t come back in two weeks....  I would like to make it possible to do an pre order! What is the right way to do so? What I found out is following...  1) Start of selling Problem if I write start of selling date in future the customer does see this information only once at the product site, after ordering there is no further information about time of delivery.  2) Avilability Problem if I write the avilability f.ex. In two weeks the customer does see the information only at the product page  3) ??? Is there any other way to make pre orders possible so that the customer can get good visible informations about the date of delivery in the near future  Hope I could explain it clear. A soloution could be to write the aproximate delivery date to the order confirmation. But unfortunately I can&#96;t do php things like this :-(  Hope someone has a good idea and would be happy to get help greetings from bavaria georg")*

Hi
OK, here is my solution to my situation with pre-order.

I added a Custom Field: pre_order
[ ![custom-field-product-pre-order&#95;2016-11-04.png](/forum/attachment/34451) ](/forum/attachment/34451 "...2016-11-04.png")

I added two language strings to /language/overrides/en-GB.override.ini: Code:

ITEM_PRE_ORDER_DATE="&lt;div class="hikashop_product_pre_order"&gt;&lt;span&gt;Pre-Order!&lt;/span&gt; This item will be available on %s&lt;/div&gt;" PRE_ORDER_ADD_TO_CARD="Pre-Order and add to cart"

I made a View Override of quantity.php and added: Code:

} elseif($start_date &amp;&amp; $start_date &gt; time() &amp;&amp; empty($this-&gt;row-&gt;pre_order)) { ?&gt; &lt;span class="hikashop_product_sale_start"&gt;&lt;?php echo JText::sprintf('ITEM_SOLD_ON_DATE', hikashop_getDate($start_date, $this-&gt;params-&gt;get('date_format','%d %B %Y'))); ?&gt;&lt;/span&gt; &lt;?php } elseif(!$this-&gt;params-&gt;get('catalogue') &amp;&amp; ($this-&gt;config-&gt;get('display_add_to_cart_for_free_products') &#124;&#124; !empty($this-&gt;row-&gt;prices))) { if($start_date &amp;&amp; $start_date &gt; time() &amp;&amp; !empty($this-&gt;row-&gt;pre_order)) { echo JText::sprintf('ITEM_PRE_ORDER_DATE', hikashop_getDate($start_date, $this-&gt;params-&gt;get('date_format','%d %B %Y'))); }

This will show $start_date if pre-order is not set and it will not show add-to-cart button. If pre-order is set then it will move on to normal hikashop flow. Here I then show the pre-order text.

For the add-to-cart button I check if it's pre-order or normal buy: Code:

if($this-&gt;params-&gt;get('add_to_cart', 1) &amp;&amp; $start_date &amp;&amp; $start_date &gt; time() &amp;&amp; !empty($this-&gt;row-&gt;pre_order)) { echo $this-&gt;cart-&gt;displayButton(JText::_('PRE_ORDER_ADD_TO_CARD'), 'add', $this-&gt;params, $url, $this-&gt;ajax, '', $max, $min); } else { echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_CART'), 'add', $this-&gt;params, $url, $this-&gt;ajax, '', $max, $min); $btnType = 'wish'; }

Feel free to correct me if I missed something. But it seems to be working.

Regards,
Henrik

From commit:
[ ![bb.png](/forum/attachment/34452) ](/forum/attachment/34452 "bb.png")

---

.ninja { color: black; visibility: hidden; }
In case of fire:
1. git commit
2. git push
3. exit building

- [ ![custom-field-product-pre-order&#95;2016-11-04.png](/forum/attachment/34451) ](/forum/attachment/34451 "...2016-11-04.png") [ ](/forum/attachment/34451?download=1 "...2016-11-04.png")
- [ ![bb.png](/forum/attachment/34452) ](/forum/attachment/34452 "bb.png") [ ](/forum/attachment/34452?download=1 "bb.png")

Last edit: 10 years 2 weeks ago by [flexsus](/forum/user/39807-flexsus "View flexsus's Profile"). Reason: add repository commit

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5MDQ1LXByZS1vcmRlcj9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

10 years 2 weeks ago [\#254500](#254500) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[pre order](/forum/4-how-to/79045-pre-order#254500 "Hi, I sell a vegetable which is only avilable after harvesting. My customers want to order them at once and I don´t want to lose them bay saying it is not avilable at the moment and they can´t order it. I guess they won´t come back in two weeks....  I would like to make it possible to do an pre order! What is the right way to do so? What I found out is following...  1) Start of selling Problem if I write start of selling date in future the customer does see this information only once at the product site, after ordering there is no further information about time of delivery.  2) Avilability Problem if I write the avilability f.ex. In two weeks the customer does see the information only at the product page  3) ??? Is there any other way to make pre orders possible so that the customer can get good visible informations about the date of delivery in the near future  Hope I could explain it clear. A soloution could be to write the aproximate delivery date to the order confirmation. But unfortunately I can&#96;t do php things like this :-(  Hope someone has a good idea and would be happy to get help greetings from bavaria georg")*

Hi,

That looks good to me for what you want to do.

The following user(s) said Thank You: [flexsus](/forum/user/39807-flexsus "View flexsus's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5MDQ1LXByZS1vcmRlcj9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[flexsus](/forum/user/39807-flexsus "View flexsus's Profile")**
- [![flexsus's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar39807.jpg)](/forum/user/39807-flexsus "View flexsus's Profile")
- [ Offline](/forum/user/39807-flexsus)

Less More

- Posts: 136
- Thank you received: 7
-
-
-

10 years 2 weeks ago [\#254516](#254516) by [flexsus](/forum/user/39807-flexsus "View flexsus's Profile")  Replied by *[flexsus](/forum/user/39807-flexsus "View flexsus's Profile")* on topic *[pre order](/forum/4-how-to/79045-pre-order#254516 "Hi, I sell a vegetable which is only avilable after harvesting. My customers want to order them at once and I don´t want to lose them bay saying it is not avilable at the moment and they can´t order it. I guess they won´t come back in two weeks....  I would like to make it possible to do an pre order! What is the right way to do so? What I found out is following...  1) Start of selling Problem if I write start of selling date in future the customer does see this information only once at the product site, after ordering there is no further information about time of delivery.  2) Avilability Problem if I write the avilability f.ex. In two weeks the customer does see the information only at the product page  3) ??? Is there any other way to make pre orders possible so that the customer can get good visible informations about the date of delivery in the near future  Hope I could explain it clear. A soloution could be to write the aproximate delivery date to the order confirmation. But unfortunately I can&#96;t do php things like this :-(  Hope someone has a good idea and would be happy to get help greetings from bavaria georg")*

Small correction, if product is sold out, then don't show Pre-Order text. Instead show the NO_STOCK text.
[ ![custom-field-product-pre-order-no-stock.png](/forum/attachment/34460) ](/forum/attachment/34460 "...r-no-stock.png")

It's working exactly as I would like it :woohoo:

I hope others can use it.

---

.ninja { color: black; visibility: hidden; }
In case of fire:
1. git commit
2. git push
3. exit building

- [ ![custom-field-product-pre-order-no-stock.png](/forum/attachment/34460) ](/forum/attachment/34460 "...r-no-stock.png") [ ](/forum/attachment/34460?download=1 "...r-no-stock.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5MDQ1LXByZS1vcmRlcj9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[flexsus](/forum/user/39807-flexsus "View flexsus's Profile")**
- [![flexsus's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar39807.jpg)](/forum/user/39807-flexsus "View flexsus's Profile")
- [ Offline](/forum/user/39807-flexsus)

Less More

- Posts: 136
- Thank you received: 7
-
-
-

10 years 2 weeks ago [\#254534](#254534) by [flexsus](/forum/user/39807-flexsus "View flexsus's Profile")  Replied by *[flexsus](/forum/user/39807-flexsus "View flexsus's Profile")* on topic *[pre order](/forum/4-how-to/79045-pre-order#254534 "Hi, I sell a vegetable which is only avilable after harvesting. My customers want to order them at once and I don´t want to lose them bay saying it is not avilable at the moment and they can´t order it. I guess they won´t come back in two weeks....  I would like to make it possible to do an pre order! What is the right way to do so? What I found out is following...  1) Start of selling Problem if I write start of selling date in future the customer does see this information only once at the product site, after ordering there is no further information about time of delivery.  2) Avilability Problem if I write the avilability f.ex. In two weeks the customer does see the information only at the product page  3) ??? Is there any other way to make pre orders possible so that the customer can get good visible informations about the date of delivery in the near future  Hope I could explain it clear. A soloution could be to write the aproximate delivery date to the order confirmation. But unfortunately I can&#96;t do php things like this :-(  Hope someone has a good idea and would be happy to get help greetings from bavaria georg")*

![:(](/media/kunena/emoticons/22.png ":(")
Cart will allow product with ITEM_SOLD_ON_DATE, but checkout will not.
I need to find out where to get pass checkout, when product has $start_date set.
Any suggestions is welcome.

---

.ninja { color: black; visibility: hidden; }
In case of fire:
1. git commit
2. git push
3. exit building

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5MDQ1LXByZS1vcmRlcj9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

10 years 2 weeks ago [\#254550](#254550) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[pre order](/forum/4-how-to/79045-pre-order#254550 "Hi, I sell a vegetable which is only avilable after harvesting. My customers want to order them at once and I don´t want to lose them bay saying it is not avilable at the moment and they can´t order it. I guess they won´t come back in two weeks....  I would like to make it possible to do an pre order! What is the right way to do so? What I found out is following...  1) Start of selling Problem if I write start of selling date in future the customer does see this information only once at the product site, after ordering there is no further information about time of delivery.  2) Avilability Problem if I write the avilability f.ex. In two weeks the customer does see the information only at the product page  3) ??? Is there any other way to make pre orders possible so that the customer can get good visible informations about the date of delivery in the near future  Hope I could explain it clear. A soloution could be to write the aproximate delivery date to the order confirmation. But unfortunately I can&#96;t do php things like this :-(  Hope someone has a good idea and would be happy to get help greetings from bavaria georg")*

Hi,

You'll have to modify the file administrator/components/com_hikashop/classes/cart.php and remove that code: Code:

if($product-&gt;product_sale_start&gt;time()){ $notUsable[$product-&gt;cart_product_id]=0; $app-&gt;enqueueMessage(JText::sprintf('PRODUCT_NOT_YET_ON_SALE',$product-&gt;product_name),'notice'); continue; }

The following user(s) said Thank You: [flexsus](/forum/user/39807-flexsus "View flexsus's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5MDQ1LXByZS1vcmRlcj9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[flexsus](/forum/user/39807-flexsus "View flexsus's Profile")**
- [![flexsus's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar39807.jpg)](/forum/user/39807-flexsus "View flexsus's Profile")
- [ Offline](/forum/user/39807-flexsus)

Less More

- Posts: 136
- Thank you received: 7
-
-
-

10 years 2 weeks ago [\#254587](#254587) by [flexsus](/forum/user/39807-flexsus "View flexsus's Profile")  Replied by *[flexsus](/forum/user/39807-flexsus "View flexsus's Profile")* on topic *[pre order](/forum/4-how-to/79045-pre-order#254587 "Hi, I sell a vegetable which is only avilable after harvesting. My customers want to order them at once and I don´t want to lose them bay saying it is not avilable at the moment and they can´t order it. I guess they won´t come back in two weeks....  I would like to make it possible to do an pre order! What is the right way to do so? What I found out is following...  1) Start of selling Problem if I write start of selling date in future the customer does see this information only once at the product site, after ordering there is no further information about time of delivery.  2) Avilability Problem if I write the avilability f.ex. In two weeks the customer does see the information only at the product page  3) ??? Is there any other way to make pre orders possible so that the customer can get good visible informations about the date of delivery in the near future  Hope I could explain it clear. A soloution could be to write the aproximate delivery date to the order confirmation. But unfortunately I can&#96;t do php things like this :-(  Hope someone has a good idea and would be happy to get help greetings from bavaria georg")*

Instead of deleting code, I added check if product_pre_order is set or not.
Then code will still work, if $start_sale_date is in future and pre_order is not set.
[ ![skipchecks.png](/forum/attachment/34475) ](/forum/attachment/34475 "skipchecks.png")

If pre_order is set and date is not involved, it will continue.
If pre_order is set and date is in future, it will continue.

So it seems to work the way I would like, that you can pre-order products, but customers is informed that this is a pre-order buy.

---

.ninja { color: black; visibility: hidden; }
In case of fire:
1. git commit
2. git push
3. exit building

- [ ![skipchecks.png](/forum/attachment/34475) ](/forum/attachment/34475 "skipchecks.png") [ ](/forum/attachment/34475?download=1 "skipchecks.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5MDQ1LXByZS1vcmRlcj9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[flexsus](/forum/user/39807-flexsus "View flexsus's Profile")**
- [![flexsus's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar39807.jpg)](/forum/user/39807-flexsus "View flexsus's Profile")
- [ Offline](/forum/user/39807-flexsus)

Less More

- Posts: 136
- Thank you received: 7
-
-
-

9 years 4 weeks ago [\#281307](#281307) by [flexsus](/forum/user/39807-flexsus "View flexsus's Profile")  Replied by *[flexsus](/forum/user/39807-flexsus "View flexsus's Profile")* on topic *[pre order](/forum/4-how-to/79045-pre-order#281307 "Hi, I sell a vegetable which is only avilable after harvesting. My customers want to order them at once and I don´t want to lose them bay saying it is not avilable at the moment and they can´t order it. I guess they won´t come back in two weeks....  I would like to make it possible to do an pre order! What is the right way to do so? What I found out is following...  1) Start of selling Problem if I write start of selling date in future the customer does see this information only once at the product site, after ordering there is no further information about time of delivery.  2) Avilability Problem if I write the avilability f.ex. In two weeks the customer does see the information only at the product page  3) ??? Is there any other way to make pre orders possible so that the customer can get good visible informations about the date of delivery in the near future  Hope I could explain it clear. A soloution could be to write the aproximate delivery date to the order confirmation. But unfortunately I can&#96;t do php things like this :-(  Hope someone has a good idea and would be happy to get help greetings from bavaria georg")*

Hi Nicolas

All this about Pre Order I did was working fine before 3.0, but this has changed now. So I will have to re-add my customizations and override quantity.php.

I don't use legacy cart, so could you help me out where to edit, to allow checkout to continue?

I guess this line should be edit? Code:

if(empty($product-&gt;product_sale_start) &amp;&amp; (int)$parent_product-&gt;product_sale_start &gt; 0 &amp;&amp; (int)$parent_product-&gt;product_sale_start &gt; time()) {

My suggestion and will this work? Code:

if(empty($product-&gt;product_sale_start) &amp;&amp; (int)$parent_product-&gt;product_sale_start &gt; 0 &amp;&amp; (int)$parent_product-&gt;product_sale_start &gt; time() &amp;&amp; empty($product-&gt;product_pre_order)) {

Or did I miss that you have added Pre Order function to Hikashop?

Best regards,
Henrik

---

.ninja { color: black; visibility: hidden; }
In case of fire:
1. git commit
2. git push
3. exit building

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5MDQ1LXByZS1vcmRlcj9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Away](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

9 years 3 weeks ago [\#281328](#281328) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[pre order](/forum/4-how-to/79045-pre-order#281328 "Hi, I sell a vegetable which is only avilable after harvesting. My customers want to order them at once and I don´t want to lose them bay saying it is not avilable at the moment and they can´t order it. I guess they won´t come back in two weeks....  I would like to make it possible to do an pre order! What is the right way to do so? What I found out is following...  1) Start of selling Problem if I write start of selling date in future the customer does see this information only once at the product site, after ordering there is no further information about time of delivery.  2) Avilability Problem if I write the avilability f.ex. In two weeks the customer does see the information only at the product page  3) ??? Is there any other way to make pre orders possible so that the customer can get good visible informations about the date of delivery in the near future  Hope I could explain it clear. A soloution could be to write the aproximate delivery date to the order confirmation. But unfortunately I can&#96;t do php things like this :-(  Hope someone has a good idea and would be happy to get help greetings from bavaria georg")*

Hello,

What file are you talking about and which version are you using ?
Because the line you mentioned is not in the "product / quantity" view.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5MDQ1LXByZS1vcmRlcj9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[flexsus](/forum/user/39807-flexsus "View flexsus's Profile")**
- [![flexsus's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar39807.jpg)](/forum/user/39807-flexsus "View flexsus's Profile")
- [ Offline](/forum/user/39807-flexsus)

Less More

- Posts: 136
- Thank you received: 7
-
-
-

9 years 3 weeks ago [\#281342](#281342) by [flexsus](/forum/user/39807-flexsus "View flexsus's Profile")  Replied by *[flexsus](/forum/user/39807-flexsus "View flexsus's Profile")* on topic *[pre order](/forum/4-how-to/79045-pre-order#281342 "Hi, I sell a vegetable which is only avilable after harvesting. My customers want to order them at once and I don´t want to lose them bay saying it is not avilable at the moment and they can´t order it. I guess they won´t come back in two weeks....  I would like to make it possible to do an pre order! What is the right way to do so? What I found out is following...  1) Start of selling Problem if I write start of selling date in future the customer does see this information only once at the product site, after ordering there is no further information about time of delivery.  2) Avilability Problem if I write the avilability f.ex. In two weeks the customer does see the information only at the product page  3) ??? Is there any other way to make pre orders possible so that the customer can get good visible informations about the date of delivery in the near future  Hope I could explain it clear. A soloution could be to write the aproximate delivery date to the order confirmation. But unfortunately I can&#96;t do php things like this :-(  Hope someone has a good idea and would be happy to get help greetings from bavaria georg")*

Hi Jerome
Sorry, no it's not in the product/quantity view. I was referring to Nicolas post #254550 where he told me to change core Hikashop file: administrator/components/com_hikashop/classes/cart.php

I got everything working but found out that I could not pass checkout. Nicolas helped me with that.

I think I know how to edit the new 3.2.1 quantity view. Even thought the code is all new and good looking.

Regards,
Henrik

---

.ninja { color: black; visibility: hidden; }
In case of fire:
1. git commit
2. git push
3. exit building

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5MDQ1LXByZS1vcmRlcj9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

9 years 3 weeks ago [\#281355](#281355) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[pre order](/forum/4-how-to/79045-pre-order#281355 "Hi, I sell a vegetable which is only avilable after harvesting. My customers want to order them at once and I don´t want to lose them bay saying it is not avilable at the moment and they can´t order it. I guess they won´t come back in two weeks....  I would like to make it possible to do an pre order! What is the right way to do so? What I found out is following...  1) Start of selling Problem if I write start of selling date in future the customer does see this information only once at the product site, after ordering there is no further information about time of delivery.  2) Avilability Problem if I write the avilability f.ex. In two weeks the customer does see the information only at the product page  3) ??? Is there any other way to make pre orders possible so that the customer can get good visible informations about the date of delivery in the near future  Hope I could explain it clear. A soloution could be to write the aproximate delivery date to the order confirmation. But unfortunately I can&#96;t do php things like this :-(  Hope someone has a good idea and would be happy to get help greetings from bavaria georg")*

Hi,

With HikaShop 3.x, you'll have to change/remove the lines: Code:

if(!$wishlist &amp;&amp; empty($msg) &amp;&amp; $product['data']-&gt;product_sale_start &gt; $now) { $msg = JText::sprintf('PRODUCT_NOT_YET_ON_SALE', $product['data']-&gt;product_name); }

and: Code:

if(!$wishlist &amp;&amp; empty($msg) &amp;&amp; (empty($product['data']-&gt;product_sale_start) &amp;&amp; $product['data']-&gt;parent_product_sale_start &gt; 0 &amp;&amp; (int)$product['data']-&gt;parent_product_sale_start &gt; $now)) { $msg = JText::sprintf('PRODUCT_NOT_YET_ON_SALE', $product['data']-&gt;product_name); }

and: Code:

if(!$wishlist &amp;&amp; !empty($product-&gt;product_sale_start) &amp;&amp; (int)$product-&gt;product_sale_start &gt; time()) { $notUsable[$cart_product_id] = array('id' =&gt; $cart_product_id, 'qty' =&gt; 0); $cart-&gt;messages[] = array('msg' =&gt; JText::sprintf('PRODUCT_NOT_YET_ON_SALE', $errorMessagesProductNames[$cart_product_id]), 'product_id' =&gt; $product-&gt;product_id, 'type' =&gt; 'notice'); continue; }

and: Code:

if(empty($product-&gt;product_sale_start) &amp;&amp; (int)$parent_product-&gt;product_sale_start &gt; 0 &amp;&amp; (int)$parent_product-&gt;product_sale_start &gt; time()) { $notUsable[$cart_product_id] = array('id' =&gt; $cart_product_id, 'qty' =&gt; 0); $cart-&gt;messages[] = array('msg' =&gt; JText::sprintf('PRODUCT_NOT_YET_ON_SALE', $errorMessagesProductNames[$cart_product_id]), 'product_id' =&gt; $product-&gt;product_id, 'type' =&gt; 'notice'); continue; }

in that classes/cart.php file.
2 of them are for products without variants (when the product is added to the cart, and when the cart is loaded), and 2 are for products with variants (when the product is added to the cart and when the cart is loaded).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5MDQ1LXByZS1vcmRlcj9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Kugata](/forum/user/45049-kugata "View Kugata's Profile")**
- [![Kugata's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar45049.jpg)](/forum/user/45049-kugata "View Kugata's Profile")
- [ Offline](/forum/user/45049-kugata)

Less More

- Posts: 38
- Thank you received: 0
-
-

9 years 5 days ago -  9 years 5 days ago [\#282762](#282762) by [Kugata](/forum/user/45049-kugata "View Kugata's Profile")  Replied by *[Kugata](/forum/user/45049-kugata "View Kugata's Profile")* on topic *[pre order](/forum/4-how-to/79045-pre-order#282762 "Hi, I sell a vegetable which is only avilable after harvesting. My customers want to order them at once and I don´t want to lose them bay saying it is not avilable at the moment and they can´t order it. I guess they won´t come back in two weeks....  I would like to make it possible to do an pre order! What is the right way to do so? What I found out is following...  1) Start of selling Problem if I write start of selling date in future the customer does see this information only once at the product site, after ordering there is no further information about time of delivery.  2) Avilability Problem if I write the avilability f.ex. In two weeks the customer does see the information only at the product page  3) ??? Is there any other way to make pre orders possible so that the customer can get good visible informations about the date of delivery in the near future  Hope I could explain it clear. A soloution could be to write the aproximate delivery date to the order confirmation. But unfortunately I can&#96;t do php things like this :-(  Hope someone has a good idea and would be happy to get help greetings from bavaria georg")*

> nicolas wrote: Hi,
>
> The line:
> echo '&lt;span class="hikashop\_product\_stock\_count"&gt;'.JText::sprintf('X\_ITEMS\_IN\_STOCK',$this-&gt;row-&gt;product\_quantity).'&lt;/span&gt;&lt;br/&gt;';
>
> Is now:
> echo '&lt;span class="hikashop\_product\_stock\_count"&gt;'.$text.'&lt;br/&gt;&lt;/span&gt;';
>
> So similarily, you can replace it with :
> if($this-&gt;row-&gt;product\_quantity&gt;100){
> echo '&lt;span class="hikashop\_product\_stock\_count"&gt;'.$text.'&lt;/span&gt;&lt;br/&gt;';
> }else{
> echo 'The product is out of stock. However, you can pre-order it';
> }
>
> and replace the lines:
> if($this-&gt;row-&gt;product\_quantity == 1 &amp;&amp; JText::\_('X\_ITEM\_IN\_STOCK') != 'X\_ITEM\_IN\_STOCK')
> $text = JText::sprintf('X\_ITEM\_IN\_STOCK', $this-&gt;row-&gt;product\_quantity);
> else
> $text = JText::sprintf('X\_ITEMS\_IN\_STOCK', $this-&gt;row-&gt;product\_quantity);
>
> with:
> if($this-&gt;row-&gt;product\_quantity == 1 &amp;&amp; JText::\_('X\_ITEM\_IN\_STOCK') != 'X\_ITEM\_IN\_STOCK')
> $text = JText::sprintf('X\_ITEM\_IN\_STOCK', $this-&gt;row-&gt;product\_quantity-100);
> else
> $text = JText::sprintf('X\_ITEMS\_IN\_STOCK', $this-&gt;row-&gt;product\_quantity-100);

What if i need product quantity more then 100 not less or equal 100 to be changed?
How i need change the code?

nwm
made it work

if($this-&gt;row-&gt;product_quantity&lt;9000){
echo '&lt;span class="hikashop_product_stock_count"&gt;'.$text.'&lt;/span&gt;&lt;br/&gt;';
}else{
echo '&lt;h4 style="text-align: center;"&gt;&lt;span style="color: #3366ff;"&gt;&lt;strong&gt;В данный момент товар доступен только по предзаказу!&lt;/strong&gt;&lt;/span&gt;&lt;/h4&gt;';
}

Last edit: 9 years 5 days ago by [Kugata](/forum/user/45049-kugata "View Kugata's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5MDQ1LXByZS1vcmRlcj9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[flexsus](/forum/user/39807-flexsus "View flexsus's Profile")**
- [![flexsus's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar39807.jpg)](/forum/user/39807-flexsus "View flexsus's Profile")
- [ Offline](/forum/user/39807-flexsus)

Less More

- Posts: 136
- Thank you received: 7
-
-
-

8 years 7 months ago [\#291061](#291061) by [flexsus](/forum/user/39807-flexsus "View flexsus's Profile")  Replied by *[flexsus](/forum/user/39807-flexsus "View flexsus's Profile")* on topic *[pre order](/forum/4-how-to/79045-pre-order#291061 "Hi, I sell a vegetable which is only avilable after harvesting. My customers want to order them at once and I don´t want to lose them bay saying it is not avilable at the moment and they can´t order it. I guess they won´t come back in two weeks....  I would like to make it possible to do an pre order! What is the right way to do so? What I found out is following...  1) Start of selling Problem if I write start of selling date in future the customer does see this information only once at the product site, after ordering there is no further information about time of delivery.  2) Avilability Problem if I write the avilability f.ex. In two weeks the customer does see the information only at the product page  3) ??? Is there any other way to make pre orders possible so that the customer can get good visible informations about the date of delivery in the near future  Hope I could explain it clear. A soloution could be to write the aproximate delivery date to the order confirmation. But unfortunately I can&#96;t do php things like this :-(  Hope someone has a good idea and would be happy to get help greetings from bavaria georg")*

Hi Nicolas

Is this plugin new?
[ www.hikashop.com/marketplace/product/109...rder-by-obsidev.html](https://www.hikashop.com/marketplace/product/109-integration-productpreorder-by-obsidev.html)

Will it solve my need for allowing my users to preorder a product in Hikashop/Hikamarket and can I then drop the custom field and all the code we have done in this thread?

Regards,
Henrik

---

.ninja { color: black; visibility: hidden; }
In case of fire:
1. git commit
2. git push
3. exit building

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5MDQ1LXByZS1vcmRlcj9zdGFydD0wJnRtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

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

Time to create page: 0.129 seconds

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