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

#   Append URL variable in cart

##

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

Less More

- Posts: 5
- Thank you received: 0
-
-

8 years 11 months ago [\#283529](#283529) by [BrentC](/forum/user/36570-brentc "View BrentC's Profile")  *[Append URL variable in cart](/forum/27-checkout/892981-append-url-variable-in-cart#283529 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2 -- PHP version -- : 5.6.30  Short question: I need to append a variable to the SEF URLs in the cart, like ?rol=no.  Longer explanation: We have a membership site that uses PayPlans. We use Redirect on Login to redirect all users to their member dashboard after logging in. Unfortunately this means that if they initiate a purchase in HikaShop while they're not logged in, they get redirected to the dashboard once they login during their purchase, which obviously pulls them out of their checkout and puts them on the PayPlans dashboard.  Redirect on Login has the ability to bypass the redirect by appending rol=no to the URL. How can I do this either for the cart only, or for all HikaShop pages? Another variable, we're using SH404SEF on this site as well, but I haven't been able to find a way in there to append this without editing every URL manually.")* was created by *[BrentC](/forum/user/36570-brentc "View BrentC's Profile")*

-- HikaShop version -- : 3.2.1
-- Joomla version -- : 3.8.2
-- PHP version -- : 5.6.30

Short question: I need to append a variable to the SEF URLs in the cart, like ?rol=no.

Longer explanation: We have a membership site that uses PayPlans. We use Redirect on Login to redirect all users to their member dashboard after logging in. Unfortunately this means that if they initiate a purchase in HikaShop while they're not logged in, they get redirected to the dashboard once they login during their purchase, which obviously pulls them out of their checkout and puts them on the PayPlans dashboard.

Redirect on Login has the ability to bypass the redirect by appending rol=no to the URL. How can I do this either for the cart only, or for all HikaShop pages? Another variable, we're using SH404SEF on this site as well, but I haven't been able to find a way in there to append this without editing every URL manually.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5Mjk4MS1hcHBlbmQtdXJsLXZhcmlhYmxlLWluLWNhcnQ/dG1wbD1tYXJrZG93bg==) 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: 86586
- Thank you received: 14325
-
-

8 years 11 months ago [\#283561](#283561) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Append URL variable in cart](/forum/27-checkout/892981-append-url-variable-in-cart#283561 "-- HikaShop version -- : 3.2.1 -- Joomla version -- : 3.8.2 -- PHP version -- : 5.6.30  Short question: I need to append a variable to the SEF URLs in the cart, like ?rol=no.  Longer explanation: We have a membership site that uses PayPlans. We use Redirect on Login to redirect all users to their member dashboard after logging in. Unfortunately this means that if they initiate a purchase in HikaShop while they're not logged in, they get redirected to the dashboard once they login during their purchase, which obviously pulls them out of their checkout and puts them on the PayPlans dashboard.  Redirect on Login has the ability to bypass the redirect by appending rol=no to the URL. How can I do this either for the cart only, or for all HikaShop pages? Another variable, we're using SH404SEF on this site as well, but I haven't been able to find a way in there to append this without editing every URL manually.")*

Hi,

From what I understand, the best would be to add that parameter on the checkout and not on the cart or on all the pages.
What I would recommend to do is to take the URL of your checkout and create a menu item of the type "external URL" with that URL with the parameter rol=no added to it.
Then, in the "force menu on checkout" setting of the HikaShop configuration, select that menu item.
That way, when you arrive on the checkout from somewhere else, you'll have that parameter in the URL.
However, if you have a checkout on several pages, you'll have to also add that parameter in the form URL of the checkout page in the file "show" of the view "checkout" via the menu Display&gt;Views.

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

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