- Posts: 79
- Thank you received: 1
pre order
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`t do php things like this
Hope someone has a good idea and would be happy to get help
greetings from bavaria
georg
Please Log in or Create an account to join the conversation.
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 & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
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 or Create an account to join the conversation.
to:
Please Log in or Create an account to join the conversation.
- Posts: 256
- Thank you received: 2
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 or Create an account to join the conversation.
The line:
echo '<span class="hikashop_product_stock_count">'.JText::sprintf('X_ITEMS_IN_STOCK',$this->row->product_quantity).'</span><br/>';
Is now:
echo '<span class="hikashop_product_stock_count">'.$text.'<br/></span>';
So similarily, you can replace it with :
if($this->row->product_quantity>100){
echo '<span class="hikashop_product_stock_count">'.$text.'</span><br/>';
}else{
echo 'The product is out of stock. However, you can pre-order it';
}
and replace the lines:
if($this->row->product_quantity == 1 && JText::_('X_ITEM_IN_STOCK') != 'X_ITEM_IN_STOCK')
$text = JText::sprintf('X_ITEM_IN_STOCK', $this->row->product_quantity);
else
$text = JText::sprintf('X_ITEMS_IN_STOCK', $this->row->product_quantity);
with:
if($this->row->product_quantity == 1 && JText::_('X_ITEM_IN_STOCK') != 'X_ITEM_IN_STOCK')
$text = JText::sprintf('X_ITEM_IN_STOCK', $this->row->product_quantity-100);
else
$text = JText::sprintf('X_ITEMS_IN_STOCK', $this->row->product_quantity-100);
Please Log in or Create an account to join the conversation.
- Posts: 256
- Thank you received: 2
Please Log in or Create an account to join the conversation.
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
Please Log in or Create an account to join the conversation.
OK, here is my solution to my situation with pre-order.
I added a Custom Field: pre_order
I added two language strings to /language/overrides/en-GB.override.ini:
I made a View Override of quantity.php and added:
For the add-to-cart button I check if it's pre-order or normal buy:
Feel free to correct me if I missed something. But it seems to be working.
Regards,
Henrik
From commit:
.ninja { color: black; visibility: hidden; }
In case of fire:
1. git commit
2. git push
3. exit building
Please Log in or Create an account to join the conversation.
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
Please Log in or Create an account to join the conversation.
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 or Create an account to join the conversation.
You'll have to modify the file administrator/components/com_hikashop/classes/cart.php and remove that code:
Please Log in or Create an account to join the conversation.
Then code will still work, if $start_sale_date is in future and pre_order is not set.
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
Please Log in or Create an account to join the conversation.
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?
My suggestion and will this work?
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 or Create an account to join the conversation.
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 & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
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 or Create an account to join the conversation.
With HikaShop 3.x, you'll have to change/remove the lines:
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 or Create an account to join the conversation.
nicolas wrote: Hi,
The line:
echo '<span class="hikashop_product_stock_count">'.JText::sprintf('X_ITEMS_IN_STOCK',$this->row->product_quantity).'</span><br/>';
Is now:
echo '<span class="hikashop_product_stock_count">'.$text.'<br/></span>';
So similarily, you can replace it with :
if($this->row->product_quantity>100){
echo '<span class="hikashop_product_stock_count">'.$text.'</span><br/>';
}else{
echo 'The product is out of stock. However, you can pre-order it';
}
and replace the lines:
if($this->row->product_quantity == 1 && JText::_('X_ITEM_IN_STOCK') != 'X_ITEM_IN_STOCK')
$text = JText::sprintf('X_ITEM_IN_STOCK', $this->row->product_quantity);
else
$text = JText::sprintf('X_ITEMS_IN_STOCK', $this->row->product_quantity);
with:
if($this->row->product_quantity == 1 && JText::_('X_ITEM_IN_STOCK') != 'X_ITEM_IN_STOCK')
$text = JText::sprintf('X_ITEM_IN_STOCK', $this->row->product_quantity-100);
else
$text = JText::sprintf('X_ITEMS_IN_STOCK', $this->row->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->row->product_quantity<9000){
echo '<span class="hikashop_product_stock_count">'.$text.'</span><br/>';
}else{
echo '<h4 style="text-align: center;"><span style="color: #3366ff;"><strong>В данный момент товар доступен только по предзаказу!</strong></span></h4>';
}
Please Log in or Create an account to join the conversation.
Is this plugin new?
www.hikashop.com/marketplace/product/109...rder-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 or Create an account to join the conversation.