Good morning to all.
I want to know if it possible to a redirect the user to a my custom page after the user clik to addtocart buttosn on product page.
For example:
1. User click on addtocart button
2. the product goes to the cart
3. the user redirect to an a joomla article with a form
4. after the submit form the user is redirect to the cart page.
Thank's for all and sorry for my english :)
Regards
Ps: I have Joomla 2.5 and VM 2.0.26
That's a nifty idea. I can definitely see some potential in proposing an upsell to the customer right after he decided to add a product to his cart. I'd also like to know how to do this. If I find out how, I'll be sure to post it here.
_________________________________________
google sniper (http://googlesniperw.com)
how to get rid of love handles (http://howtogetridoflovehandlesw.com/)
google sniper review (http://googlesniperrevieww.com/)
Thank you ethelfxm.
I tried to modify the default_addtocart.php in views.
I think the solution in in that part of code:
Quote
// Display the add to cart button ?>
<span class="addtocart-button">
<?php echo shopFunctionsF::getAddToCartButton ($this->product->orderable);
// Display the add to cart button END ?>
</span>
<input type="hidden" class="pname" value="<?php echo htmlentities($this->product->product_name, ENT_QUOTES, 'utf-8') ?>"/>
<input type="hidden" name="view" value="cart"/>
<noscript><input type="hidden" name="task" value="add"/></noscript>
<input type="hidden" name="virtuemart_product_id[]" value="<?php echo $this->product->virtuemart_product_id ?>"/>
<?php
}
?>
<?php
}
?>
<div class="clear"></div>
</div>
<?php
}
?>
<input type="hidden" name="option" value="com_virtuemart"/>
I don't know how to create the code that after submit redirect to customize page.
If i insert a simple redirect in php or javascritpt, at the end of the code, the product page skip directly to the custom page.
Any idea is appreciated.
Regard.