Hi,
1. So there are two things then:
- You can edit the view files displaying the add to cart buttons. For example product/quantity.php for the product page.
There, you'll want to change the code displaying the add to cart button:
if($add_to_cart) {
?>
<a class="<?php echo $css_button . ' ' . $css_button_cart; ?>" href="<?php echo hikashop_completeLink('product&task=updatecart&add=1'); ?>" onclick="if(window.hikashop.addToCart) { return window.hikashop.addToCart(this); }" data-addTo-div="<?php echo $this->row->formName; ?>" data-addToCart="list" data-addTo-class="add_in_progress"><span><?php
echo JText::_('ADD_TO_CART');
?></span></a>
<?php
}
You'll have to get the cart and loop through the products in it to check if the product is already in there. If no, then you can display the normal add to cart link, and if yes, you can display a link to the checkout. That way when you display a page with that product on it, and the product in already in the cart, you'll get the "proceed to checkout" button instead.
www.hikashop.com/forum/wishlist/897446-c...n-status.html#306467
- If you want the link to dynamically change after clicking on it (without any full page reload), it will require also having some javascript added to the onclick of the add to cart link to change its text, its onclick and its href to point to the checkout page.
2. Hard to say for now. We're still in the middle of the development phase for the next release. Ideally, I would like to release it before August. It won't be in the next 2 weeks.