Skip to main content

when items in stock are unlimited...

12 years 11 months ago #134724 by sandra1964
Hi,
i need to displayed in the cart page a message like "product delivery will take place in 2 weeks" when the quantity of the product is "unlimited"... is it possible?

my version of Hikashop is Business 2.2.2
Joomla version 2.5.16

thank you
Sandra

Please Log in or Create an account to join the conversation.

12 years 11 months ago #134756 by Mohamed Thelji
Hi,
Can you show me some screenshots of where do you exactly want to add this message ?

Please Log in or Create an account to join the conversation.

12 years 11 months ago #134762 by sandra1964
Yes,
here it is!

Please Log in or Create an account to join the conversation.

12 years 11 months ago #134789 by Mohamed Thelji
Ok,
Can you give me a link to that page, so that I can tell you what file you'll have to edit to do that ?

Please Log in or Create an account to join the conversation.

12 years 11 months ago #134793 by sandra1964

Please Log in or Create an account to join the conversation.

12 years 11 months ago - 12 years 11 months ago #134823 by Mohamed Thelji
I just wanted to make sure that you were talking about a product page :) , the solution will probably be to edit the "quantity" file of the "product" view of your front-end template through "Hikashop->Display->Views" and change these lines :
Code:
if($this->row->product_quantity==-1){ ?> <div class="hikashop_product_stock"> <?php if($this->params->get('add_to_cart',1)){ echo $this->cart->displayButton(JText::_('ADD_TO_CART'),'add',$this->params,$url,$this->ajax,'',$max,$min); $btnType = 'wish'; } if(hikashop_level(1) && $this->params->get('add_to_wishlist') && $wishlistEnabled && !$hideForGuest && $this->config->get('display_add_to_wishlist_for_free_products','1')){ echo '<div id="hikashop_add_wishlist">'; echo $this->cart->displayButton(JText::_('ADD_TO_WISHLIST'),$btnType,$this->params,$url,$wishlistAjax,'',$max,$min,'',false); echo '</div>'; }
By :
Code:
if($this->row->product_quantity==-1){ ?> <div class="hikashop_product_stock"> <?php echo 'product delivery will take place in 2 weeks'; if($this->params->get('add_to_cart',1)){ echo $this->cart->displayButton(JText::_('ADD_TO_CART'),'add',$this->params,$url,$this->ajax,'',$max,$min); $btnType = 'wish'; } if(hikashop_level(1) && $this->params->get('add_to_wishlist') && $wishlistEnabled && !$hideForGuest && $this->config->get('display_add_to_wishlist_for_free_products','1')){ echo '<div id="hikashop_add_wishlist">'; echo $this->cart->displayButton(JText::_('ADD_TO_WISHLIST'),$btnType,$this->params,$url,$wishlistAjax,'',$max,$min,'',false); echo '</div>'; }
Last edit: 12 years 11 months ago by Mohamed Thelji.

Please Log in or Create an account to join the conversation.

12 years 11 months ago #134846 by sandra1964
Thank's, tomorrow i will try...

Please Log in or Create an account to join the conversation.

12 years 10 months ago #135721 by sandra1964
Hi,
I tried and it works but now my client has another question :( :
is it possible to have the cart active even if the product is out of stock and then order the product even if its quantity is 0?

thank's

Please Log in or Create an account to join the conversation.

12 years 10 months ago #135734 by Mohamed Thelji
Hi,
You can't purchase a product which don't have stock, but you can add it to your wishlist or use the "notify me when available" button ( waitlist )

Please Log in or Create an account to join the conversation.

12 years 10 months ago #135757 by sandra1964
Yes, but my client would like to active the cart and not the wish or the waitlist for products out of stock ... do you think it's possible?

Please Log in or Create an account to join the conversation.

12 years 10 months ago #135762 by Mohamed Thelji
I don't think that you'll be able to do that without some code customization which will require development skills.

Please Log in or Create an account to join the conversation.

Time to create page: 0.087 seconds
Powered by Kunena Forum