when items in stock are unlimited...

  • Posts: 23
  • Thank you received: 0
11 years 3 weeks ago #134724

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.

  • Posts: 12953
  • Thank you received: 1778
11 years 3 weeks ago #134756

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.

  • Posts: 23
  • Thank you received: 0
11 years 3 weeks ago #134762

Yes,
here it is!

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
11 years 3 weeks ago #134789

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.

  • Posts: 23
  • Thank you received: 0
11 years 3 weeks ago #134793

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

  • Posts: 12953
  • Thank you received: 1778
11 years 3 weeks ago #134823

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 :

  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 :
  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: 11 years 3 weeks ago by Mohamed Thelji.

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

  • Posts: 23
  • Thank you received: 0
11 years 3 weeks ago #134846

Thank's, tomorrow i will try...

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

  • Posts: 23
  • Thank you received: 0
11 years 2 weeks ago #135721

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.

  • Posts: 12953
  • Thank you received: 1778
11 years 2 weeks ago #135734

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.

  • Posts: 23
  • Thank you received: 0
11 years 2 weeks ago #135757

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.

  • Posts: 12953
  • Thank you received: 1778
11 years 2 weeks ago #135762

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.141 seconds
Powered by Kunena Forum