- Posts: 48
- Thank you received: 5
Buyable and non-buyable products in the online store at the same time
2 years 1 week ago #363183
by totama
-- HikaShop version -- : 5.1.1
-- Joomla version -- : 4
-- PHP version -- : 8.2
Dear Hikashop!
How can I solve it so that the products that can be bought (that is, can be put in the cart) and that cannot be bought (that is, cannot be put in the cart) appear at the same time in the web store?
However, for products that cannot be purchased (that is, cannot be added to the cart), I would like to display the inscription instead of "add to cart" so that "you can ask for a price quote".
Thomas
-- Joomla version -- : 4
-- PHP version -- : 8.2
Dear Hikashop!
How can I solve it so that the products that can be bought (that is, can be put in the cart) and that cannot be bought (that is, cannot be put in the cart) appear at the same time in the web store?
However, for products that cannot be purchased (that is, cannot be added to the cart), I would like to display the inscription instead of "add to cart" so that "you can ask for a price quote".
Thomas
Please Log in or Create an account to join the conversation.
2 years 1 week ago #363190
by totama
Replied by totama on topic Buyable and non-buyable products in the online store at the same time
Dear Hikashop!
Thank you for your efforts, but I found the solution: the quantity of the product must be set to 0.
Thank you for your efforts, but I found the solution: the quantity of the product must be set to 0.
Please Log in or Create an account to join the conversation.
2 years 1 week ago #363185
by nicolas
Replied by nicolas on topic Buyable and non-buyable products in the online store at the same time
Hi,
You can either:
- set the stock of these non-buyable products to 0
- set the sale end date of these non-buyable products to the past
- set the sale start date of these non-buyable products to the far futur
This way, instead of displaying the add to cart button, you'll have a text like "no stock" or "not on sale anymore" which you can customize with a translation override:
www.hikashop.com/download/languages.html#modify
And then, if you want to add a button "you can ask for a price quote", there are two ways I can see:
- you could setup a contact page with the Joomla contact component, or with a menu item of the type HikaShop contact page, and then add a link to that page in the translation override I was talking about above since you can have HTML in there.
- you could set the "Display a contact button on the product page" setting of the HikaShop configuration to "On a per product basis". Then, in the non-buyable products, you can activate the "Contact button" setting.
You can either:
- set the stock of these non-buyable products to 0
- set the sale end date of these non-buyable products to the past
- set the sale start date of these non-buyable products to the far futur
This way, instead of displaying the add to cart button, you'll have a text like "no stock" or "not on sale anymore" which you can customize with a translation override:
www.hikashop.com/download/languages.html#modify
And then, if you want to add a button "you can ask for a price quote", there are two ways I can see:
- you could setup a contact page with the Joomla contact component, or with a menu item of the type HikaShop contact page, and then add a link to that page in the translation override I was talking about above since you can have HTML in there.
- you could set the "Display a contact button on the product page" setting of the HikaShop configuration to "On a per product basis". Then, in the non-buyable products, you can activate the "Contact button" setting.
Please Log in or Create an account to join the conversation.
2 years 1 week ago #363200
by totama
Replied by totama on topic Buyable and non-buyable products in the online store at the same time
Thank you very much!
Please Log in or Create an account to join the conversation.
Time to create page: 0.239 seconds