[Skip to main content](#vessel-content)

#   Add to wishlist function for coming soon products

##

- **[shiva](/forum/user/8394-shiva "View shiva's Profile")**
- [![shiva's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8394-shiva "View shiva's Profile") Topic Author
- [ Offline](/forum/user/8394-shiva)

Less More

- Posts: 15
- Thank you received: 0
-
-

14 years 2 months ago [\#65128](#65128) by [shiva](/forum/user/8394-shiva "View shiva's Profile")  *[Add to wishlist function for coming soon products](/forum/9-commercial-jobs/65128-add-to-wishlist-function-for-coming-soon-products#65128 "We have a products group called &quot;coming soon&quot; All products from this group are without selling price. We like to have &quot;add to wishlist&quot; function for these products but without &quot;add to cart&quot; function.")* was created by *[shiva](/forum/user/8394-shiva "View shiva's Profile")*

We have a products group called "coming soon"
All products from this group are without selling price.
We like to have "add to wishlist" function for these products but without "add to cart" function.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzktY29tbWVyY2lhbC1qb2JzLzY1MTI4LWFkZC10by13aXNobGlzdC1mdW5jdGlvbi1mb3ItY29taW5nLXNvb24tcHJvZHVjdHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 1 month ago [\#65776](#65776) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Add to wishlist function for coming soon products](/forum/9-commercial-jobs/65128-add-to-wishlist-function-for-coming-soon-products#65776 "We have a products group called &quot;coming soon&quot; All products from this group are without selling price. We like to have &quot;add to wishlist&quot; function for these products but without &quot;add to cart&quot; function.")*

Hi shiva,

I think that you can edit the view "product / quantity" and add a control for the "add to cart" display conditions, like: Code:

$this-&gt;element-&gt;category_id != 13

Example: Code:

if($this-&gt;params-&gt;get('add_to_cart') &amp;&amp; $this-&gt;element-&gt;category_id != 13){ echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_CART'),'add',$this-&gt;params,$url,$this-&gt;ajax,'',$max,$min); $btnType = 'wish'; }

You can replace the number "13" by the id of your category.

Hope this will help you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzktY29tbWVyY2lhbC1qb2JzLzY1MTI4LWFkZC10by13aXNobGlzdC1mdW5jdGlvbi1mb3ItY29taW5nLXNvb24tcHJvZHVjdHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[shiva](/forum/user/8394-shiva "View shiva's Profile")**
- [![shiva's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8394-shiva "View shiva's Profile") Topic Author
- [ Offline](/forum/user/8394-shiva)

Less More

- Posts: 15
- Thank you received: 0
-
-

14 years 1 month ago [\#65813](#65813) by [shiva](/forum/user/8394-shiva "View shiva's Profile")  Replied by *[shiva](/forum/user/8394-shiva "View shiva's Profile")* on topic *[Re: Add to wishlist function for coming soon products](/forum/9-commercial-jobs/65128-add-to-wishlist-function-for-coming-soon-products#65813 "We have a products group called &quot;coming soon&quot; All products from this group are without selling price. We like to have &quot;add to wishlist&quot; function for these products but without &quot;add to cart&quot; function.")*

Yes, after I edit codes, It's display "Add to Wishlist" button.
But, when click "Show the wishlist" still display price "0.00" and still can process "Add to cart" function.
Of course, we don't allow showing "zero" price and we don't allow process "add to cart" function for this product group.
We only allow users can add products to their wishlist.
When product and price ready, we will move this product to selling products group, then users can process add to cart function.

[ ![Untitled3.jpg](/forum/attachment/5783) ](/forum/attachment/5783 "Untitled3.jpg")

- [ ![Untitled3.jpg](/forum/attachment/5783) ](/forum/attachment/5783 "Untitled3.jpg") [ ](/forum/attachment/5783?download=1 "Untitled3.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzktY29tbWVyY2lhbC1qb2JzLzY1MTI4LWFkZC10by13aXNobGlzdC1mdW5jdGlvbi1mb3ItY29taW5nLXNvb24tcHJvZHVjdHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 1 month ago [\#65825](#65825) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Add to wishlist function for coming soon products](/forum/9-commercial-jobs/65128-add-to-wishlist-function-for-coming-soon-products#65825 "We have a products group called &quot;coming soon&quot; All products from this group are without selling price. We like to have &quot;add to wishlist&quot; function for these products but without &quot;add to cart&quot; function.")*

Hi again,

Maybe you can add a if/else in the "cart / showcart" view to hide the checkboxes when the price value is "0" ?

You can replace the line: Code:

&lt;input type="checkbox" name="data[products][&lt;?php echo $cart-&gt;product_id;?&gt;][checked]" value="1"/&gt;

By: Code:

&lt;?php if((int)$cart-&gt;prices[0]-&gt;price_value != 0){ ?&gt; &lt;input type="checkbox" name="data[products][&lt;?php echo $cart-&gt;product_id;?&gt;][checked]" value="1"/&gt; &lt;?php } ?&gt;

The following user(s) said Thank You: [shiva](/forum/user/8394-shiva "View shiva's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzktY29tbWVyY2lhbC1qb2JzLzY1MTI4LWFkZC10by13aXNobGlzdC1mdW5jdGlvbi1mb3ItY29taW5nLXNvb24tcHJvZHVjdHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.045 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
