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

#  Profile for IanH

##

[![IanH's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32772-ianh "View IanH's Profile")

**[ Offline](/forum/user/32772-ianh)**

- **User Type:** User

- **Register Date:** 25 May 2014
- **Last login:** 10 years 9 months ago
- **Time Zone:**  UTC +0:00
- **Local Time:** 08:41

- **Posts:** 4
- **Profile views:** 17

- **Gender:** Unknown
- **Birthdate:** Unknown

- Posts

#  IanH's recent posts  (4 messages )

All Since last visit 4 Hours 8 Hours 12 Hours 24 Hours 48 Hours Week Month Year     All Since last visit 4 Hours 8 Hours 12 Hours 24 Hours 48 Hours Week Month Year

| <a id="forumtop"> </a> [  ](#forumbottom) | Subject | Replies / Views | Last Post | <a id="forumbottom"> </a> [   ](#forumtop) |
|---|---|---|---|---|
| [](/forum/27-checkout/875556-remove-a-product-automatically#194304) | [Remove a product automatically](/forum/27-checkout/875556-remove-a-product-automatically#194304 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.31  Hi,  I would like to check if there is just one product left in the cart and if it is a particular product id, remove it automatically.  I have tried using &quot;onBeforeCartUpdate()&quot; to inspect the cart but both the cart and cartClass parameters always have zero products in them regardless of the cart contents. Anyone know of any example code other than that on the developer documentation section of the help pages that could point me in the right direction ?  many thanks, I")        Category: [Checkout](/forum/27-checkout "Everything about the checkout process in Hikashop")     Topic started 11 years 7 months ago, by [IanH](/forum/user/32772-ianh "View IanH's Profile")       [Last Post](/forum/27-checkout/875556-remove-a-product-automatically#194304 "Thank you - that worked perfectly.") 11 years 7 months ago     by [IanH](/forum/user/32772-ianh "View IanH's Profile") | Replies:2  Views:357 | [Last Post](/forum/27-checkout/875556-remove-a-product-automatically#194304 "Thank you - that worked perfectly.") by [IanH](/forum/user/32772-ianh "View IanH's Profile")      11 years 7 months ago |
| [](/forum/27-checkout/875556-remove-a-product-automatically#194034) | [Remove a product automatically](/forum/27-checkout/875556-remove-a-product-automatically#194034 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.31  Hi,  I would like to check if there is just one product left in the cart and if it is a particular product id, remove it automatically.  I have tried using &quot;onBeforeCartUpdate()&quot; to inspect the cart but both the cart and cartClass parameters always have zero products in them regardless of the cart contents. Anyone know of any example code other than that on the developer documentation section of the help pages that could point me in the right direction ?  many thanks, I")        Category: [Checkout](/forum/27-checkout "Everything about the checkout process in Hikashop")     Topic started 11 years 7 months ago, by [IanH](/forum/user/32772-ianh "View IanH's Profile")       [Last Post](/forum/27-checkout/875556-remove-a-product-automatically#194304 "Thank you - that worked perfectly.") 11 years 7 months ago     by [IanH](/forum/user/32772-ianh "View IanH's Profile") | Replies:2  Views:357 | [Last Post](/forum/27-checkout/875556-remove-a-product-automatically#194304 "Thank you - that worked perfectly.") by [IanH](/forum/user/32772-ianh "View IanH's Profile")      11 years 7 months ago |
| [](/forum/27-checkout/871820-redirecting-from-end-php#173388) | [Redirecting from end.php](/forum/27-checkout/871820-redirecting-from-end-php#173388 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4.31 -- Browser(s) name and version -- : N/A  Hi I have a cart workflow that can either go via PayPal or use a voucher in which case no payment is necessary. At the end of checkout i am redirecting to an order summary page to give the user information, a serial and download link. This works fine for PayPal when i redirect from after&#95;end.php and the payment process completes, however for the voucher the process seems to go to end.php and never gets to after&#95;end.php.  If i put a redirect in end.php, things are OK for the voucher but when Paypal is selected as a payment method the process redirects before it gets to go to PayPal so no payment is taken.  Ideally i'd like to check for the payment method in end.php and conditionally redirect but not sure how to do this. Maybe there is a better way ?  TIA, Ian")        Category: [Checkout](/forum/27-checkout "Everything about the checkout process in Hikashop")     Topic started 12 years 1 month ago, by [IanH](/forum/user/32772-ianh "View IanH's Profile")       [Last Post](/forum/27-checkout/871820-redirecting-from-end-php#173388 "That did the trick. Many thanks") 12 years 1 month ago     by [IanH](/forum/user/32772-ianh "View IanH's Profile") | Replies:2  Views:456 | [Last Post](/forum/27-checkout/871820-redirecting-from-end-php#173388 "That did the trick. Many thanks") by [IanH](/forum/user/32772-ianh "View IanH's Profile")      12 years 1 month ago |
| [](/forum/27-checkout/871820-redirecting-from-end-php#172778) | [Redirecting from end.php](/forum/27-checkout/871820-redirecting-from-end-php#172778 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4.31 -- Browser(s) name and version -- : N/A  Hi I have a cart workflow that can either go via PayPal or use a voucher in which case no payment is necessary. At the end of checkout i am redirecting to an order summary page to give the user information, a serial and download link. This works fine for PayPal when i redirect from after&#95;end.php and the payment process completes, however for the voucher the process seems to go to end.php and never gets to after&#95;end.php.  If i put a redirect in end.php, things are OK for the voucher but when Paypal is selected as a payment method the process redirects before it gets to go to PayPal so no payment is taken.  Ideally i'd like to check for the payment method in end.php and conditionally redirect but not sure how to do this. Maybe there is a better way ?  TIA, Ian")        Category: [Checkout](/forum/27-checkout "Everything about the checkout process in Hikashop")     Topic started 12 years 1 month ago, by [IanH](/forum/user/32772-ianh "View IanH's Profile")       [Last Post](/forum/27-checkout/871820-redirecting-from-end-php#173388 "That did the trick. Many thanks") 12 years 1 month ago     by [IanH](/forum/user/32772-ianh "View IanH's Profile") | Replies:2  Views:456 | [Last Post](/forum/27-checkout/871820-redirecting-from-end-php#173388 "That did the trick. Many thanks") by [IanH](/forum/user/32772-ianh "View IanH's Profile")      12 years 1 month ago |

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

Time to create page: 0.110 seconds

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

[](#top)
