Skip to main content

Add to wishlist function for coming soon products

More
14 years 2 weeks ago #65128 by shiva
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 or Create an account to join the conversation.

More
14 years 1 week ago #65776 by Xavier
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->element->category_id != 13
Example:
Code:
if($this->params->get('add_to_cart') && $this->element->category_id != 13){ echo $this->cart->displayButton(JText::_('ADD_TO_CART'),'add',$this->params,$url,$this->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 or Create an account to join the conversation.

More
14 years 1 week ago #65813 by shiva
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.


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

More
14 years 1 week ago #65825 by Xavier
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:
<input type="checkbox" name="data[products][<?php echo $cart->product_id;?>][checked]" value="1"/>
By:
Code:
<?php if((int)$cart->prices[0]->price_value != 0){ ?> <input type="checkbox" name="data[products][<?php echo $cart->product_id;?>][checked]" value="1"/> <?php } ?>
The following user(s) said Thank You: shiva

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

Time to create page: 0.203 seconds
Powered by Kunena Forum