Contact Us For More Information Option ....

  • Posts: 54
  • Thank you received: 0
9 years 1 month ago #213546

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5.12

Hello:

I would like to display "Contact Us For For Information" option on some of my products without display another buttons (like Add to Cart etc).

I the attached screen shot, I have, all three buttons (Add to cart/wishlist and Contact Us For More Information). I would like to display only "Contact Us For More Information" Button. Also, no quantity field.



How can I accomplish this?


Thanks,
<<< Ali >>>

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
9 years 1 month ago #213569

Hello Ali,
If you don't want to "directly sell" your products, the solution will probably be to directly set the quantity of your products to 0 and only the "contact us" button will be displayed.
Also, note that if a "out of stock" message is displayed, you'll be able to hide it by using some CSS code, or directly editing your language file via "Hikasop->System->Configuration->Languages".

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

  • Posts: 54
  • Thank you received: 0
9 years 1 month ago #213667

Thanks For the reply ...

I have another idea ....

I published the product with start date in the future and price = 0. This gives me the message that the product will be on sale from date <<Whatever>> and the price is shown as free.

Now, I know that all of my products that I do not want to directly sell is under "MoreInformation" category. In order to suppress the free message for price = 0, i wanted to modify the view listing_price.php so that if the category = "MoreInformation", blank out the message else echo free as price.

The problem is that I can not access the category name in the listing_price.php. I know it is there as we can see from the attached screen shots. But I do not know how to access that. Any help will be appreciated...

I have highlighted the part I would like to access ...



This is the code I used to get the above print out.

.
Thanks,
<<< Ali >>>

Attachments:
Last edit: 9 years 1 month ago by QureshiMo. Reason: Change the order of attachments so that they reflect the message above them.

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

  • Posts: 12953
  • Thank you received: 1778
9 years 1 month ago #213691

Hello Ali,

Note that the first solution that I gave you should do what you want and won't be difficult to do.
If you want to access to your product category, you'll have it through that variable :

$this->categories

Best regards,
Mohamed.

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

  • Posts: 54
  • Thank you received: 0
9 years 1 month ago #213735

Thanks ...

I have two questions:
(1) Can I change the out of stock message on per product basis or it will be a global change. I would like to avoid global change.
(2) I have not looked into the out of stock notification plugin yet, but will the stock being 0 trigger out of stock notice.?
Note: I am building my site on local machine. Unfortunately, cron jobs are not allowed in the local host environment. Therefore, I can not test out of stock notification plugin.

Thanks,
<<< Ali >>>

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

  • Posts: 82725
  • Thank you received: 13338
  • MODERATOR
9 years 1 month ago #213743

1. With a translation override it will be a global change.
But you can create a custom product field in order to set something for each product, and then edit the file "quantity" via the menu Display>Views in order to change the display of the out of stock message by something else based on the that custom product field value stored in $this->row->custom_field_column_name

2. If you configure the plugin to trigger for a stock of 0 or below, that's what it will do.
You can test the cron by manually triggering the cron URL that you can get from the cron tab of the HikaShop configuration by opening it in a browser.

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

  • Posts: 54
  • Thank you received: 0
9 years 1 month ago #213970

But you can create a custom product field in order to set something for each product, and then edit the file "quantity" via the menu Display>Views in order to change the display of the out of stock message by something else based on the that custom product field value stored in $this->row->custom_field_column_name


Which view should I change?
If you configure the plugin to trigger for a stock of 0 or below, that's what it will do.
You can test the cron by manually triggering the cron URL that you can get from the cron tab of the HikaShop configuration by opening it in a browser.

Can we have out of notification cron job on per product basis? For example, the threshold for Product "A" when notification is send is 10 but for product "B", it is set to 5.

Thanks,
<<< Ali >>>

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

  • Posts: 82725
  • Thank you received: 13338
  • MODERATOR
9 years 1 month ago #213983

1. As I said in my previous message, it's the view file "quantity" that you want to change. There is only one view file named like that.

2. There is no option to have a different threshold for different products. That would require heavy customization of the plugin, but it's doable if you're a developer.

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

  • Posts: 54
  • Thank you received: 0
9 years 1 month ago #214074

Hello:

1. As I said in my previous message, it's the view file "quantity" that you want to change. There is only one view file named like that.

My apologies. I missed the "Quantity".
2. There is no option to have a different threshold for different products. That would require heavy customization of the plugin, but it's doable if you're a developer.

Ok. Thanks ....

Thank,
<<< Ali >>>

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

Time to create page: 0.106 seconds
Powered by Kunena Forum