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

#   how do i control the add to cart landing page?

##

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 5 months ago [\#18338](#18338) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: how do i control the add to cart landing page?](/forum/4-how-to/18047-how-do-i-control-the-add-to-cart-landing-page?start=20#18338 "how do i control the add to cart landing page?  i want to have 3 different pages where someone might land after adding a item to the cart different item different page they will be landing on. how can i make that happen with HikaShop?  example-- 1) normal add to cart page  2) i just added a phone and the landing page is making sure i add a plan.  3) i just added a plan to my cart and the landing page is asking me if i want a phone.  how can i make this happen?  thanks in advance your the best :)")*

Please change the line:
if($row-&gt;type_of_product=='phone') $plan=true;
to:
if($row-&gt;type_of_product=='phone') $phone=true;

Then, make sure that you selected the "type of product" in your product edition screen and saved the product information.

Then, try again.

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

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

Less More

- Posts: 156
- Thank you received: 0
-
-

15 years 5 months ago -  15 years 5 months ago [\#18342](#18342) by [Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")  Replied by *[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")* on topic *[Re: how do i control the add to cart landing page?](/forum/4-how-to/18047-how-do-i-control-the-add-to-cart-landing-page?start=20#18342 "how do i control the add to cart landing page?  i want to have 3 different pages where someone might land after adding a item to the cart different item different page they will be landing on. how can i make that happen with HikaShop?  example-- 1) normal add to cart page  2) i just added a phone and the landing page is making sure i add a plan.  3) i just added a plan to my cart and the landing page is asking me if i want a phone.  how can i make this happen?  thanks in advance your the best :)")*

$phone = $plan = false;
foreach($this-&gt;rows as $i =&gt; $row){
if($row-&gt;type_of_product=='plan') $plan=true;
if($row-&gt;type_of_product=='phone') $phone=true;
}
$app =&amp; JFactory::getApplication();
if($phone &amp;&amp; !$plan){
}elseif(!$phone &amp;&amp; $plan){
$app-&gt;redirect('[ 206.217.193.31/~iqcell/index.php?option=...t&amp;view=article&amp;id=18](http://206.217.193.31/~iqcell/index.php?option=com_content&view=article&id=18)');
}

This is what i am using now. and it's going straight to check out after i click add to cart on the phone page.. Code:

http://206.217.193.31/~iqcell/index.php/phones/product/show/cid-2/name-tour-9630/category_pathway-22

Last edit: 15 years 5 months ago by [Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile").

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 5 months ago [\#18355](#18355) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: how do i control the add to cart landing page?](/forum/4-how-to/18047-how-do-i-control-the-add-to-cart-landing-page?start=20#18355 "how do i control the add to cart landing page?  i want to have 3 different pages where someone might land after adding a item to the cart different item different page they will be landing on. how can i make that happen with HikaShop?  example-- 1) normal add to cart page  2) i just added a phone and the landing page is making sure i add a plan.  3) i just added a plan to my cart and the landing page is asking me if i want a phone.  how can i make this happen?  thanks in advance your the best :)")*

You should also add the line:
$app-&gt;redirect('206.217.193.31/~iqcell/index.php?option=com_content&amp;view=article&amp;id=18');
in the if($phone &amp;&amp; !$plan){
otherwise, if the phone is in the cart but not the plan, it goes straight to the cart...

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

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

Less More

- Posts: 156
- Thank you received: 0
-
-

15 years 5 months ago [\#18365](#18365) by [Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")  Replied by *[Rickhavoc](/forum/user/2766-rickhavoc "View Rickhavoc's Profile")* on topic *[Re: how do i control the add to cart landing page?](/forum/4-how-to/18047-how-do-i-control-the-add-to-cart-landing-page?start=20#18365 "how do i control the add to cart landing page?  i want to have 3 different pages where someone might land after adding a item to the cart different item different page they will be landing on. how can i make that happen with HikaShop?  example-- 1) normal add to cart page  2) i just added a phone and the landing page is making sure i add a plan.  3) i just added a plan to my cart and the landing page is asking me if i want a phone.  how can i make this happen?  thanks in advance your the best :)")*

Perfect ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE4MDQ3LWhvdy1kby1pLWNvbnRyb2wtdGhlLWFkZC10by1jYXJ0LWxhbmRpbmctcGFnZT9zdGFydD0yMCZ0bXBsPW1hcmtkb3du) 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.059 seconds

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