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

#   Applying Main Template to Checkout Confirm Page

##

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

Less More

- Posts: 32
- Thank you received: 1
-
-

5 years 7 months ago [\#330583](#330583) by [nickk](/forum/user/59388-nickk "View nickk's Profile")  *[Applying Main Template to Checkout Confirm Page](/forum/4-how-to/902138-applying-main-template-to-checkout-confirm-page#330583 "-- url of the page with the problem -- :   extonbeverage.com/shop-products/checkout/checkout/confirm.html  -- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4.0 -- Browser(s) name and version -- : Firefox 87.0b6 (64-bit) -- Error-message(debug-mod must be tuned on) -- : No error, main website template not applying module css.  The main website template not applying module css to the /checkout/confirm page when the client completes a credit card purchase. How do I get the main template to apply css to the page?  I'm figuring this is an easy one, but couldn't find the answer in the documentation, forum, or my own documentation. Thanks!")* was created by *[nickk](/forum/user/59388-nickk "View nickk's Profile")*

-- url of the page with the problem -- : [ extonbeverage.com/shop-products/checkout/checkout/confirm.html](https://extonbeverage.com/shop-products/checkout/checkout/confirm.html)
-- HikaShop version -- : 4.4.1
-- Joomla version -- : 3.9.25
-- PHP version -- : 7.4.0
-- Browser(s) name and version -- : Firefox 87.0b6 (64-bit)
-- Error-message(debug-mod must be tuned on) -- : No error, main website template not applying module css.

The main website template not applying module css to the /checkout/confirm page when the client completes a credit card purchase. How do I get the main template to apply css to the page?

I'm figuring this is an easy one, but couldn't find the answer in the documentation, forum, or my own documentation. Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzkwMjEzOC1hcHBseWluZy1tYWluLXRlbXBsYXRlLXRvLWNoZWNrb3V0LWNvbmZpcm0tcGFnZT90bXBsPW1hcmtkb3du) 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: 86358
- Thank you received: 14293
-
-

5 years 7 months ago [\#330591](#330591) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Applying Main Template to Checkout Confirm Page](/forum/4-how-to/902138-applying-main-template-to-checkout-confirm-page#330591 "-- url of the page with the problem -- :   extonbeverage.com/shop-products/checkout/checkout/confirm.html  -- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4.0 -- Browser(s) name and version -- : Firefox 87.0b6 (64-bit) -- Error-message(debug-mod must be tuned on) -- : No error, main website template not applying module css.  The main website template not applying module css to the /checkout/confirm page when the client completes a credit card purchase. How do I get the main template to apply css to the page?  I'm figuring this is an easy one, but couldn't find the answer in the documentation, forum, or my own documentation. Thanks!")*

Hi,

The problem comes from your template.
First, you need to check the CSS files in the header of both a normal page and that page:
[ i.imgur.com/RFtAT0a.png](https://i.imgur.com/RFtAT0a.png)
[ i.imgur.com/kdamn09.png](https://i.imgur.com/kdamn09.png)
So for the URL [ extonbeverage.com/shop-products/](https://extonbeverage.com/shop-products/) you can see that your template adds a CSS file [ extonbeverage.com/shop-products/?css\_request=1&amp;diff=2073527235](https://extonbeverage.com/shop-products/?css_request=1&diff=2073527235) to the header, and for the URL [ extonbeverage.com/shop-products/checkout/checkout/confirm.html](https://extonbeverage.com/shop-products/checkout/checkout/confirm.html) it adds a CSS file [ extonbeverage.com/shop-products/checkout...est=1&amp;diff=869499139](https://extonbeverage.com/shop-products/checkout/checkout/confirm.html?css_request=1&diff=869499139) to the header.
So apparently, your template simply takes the current page URL and adds two parameters to it to generate that CSS file link. And then, on every page of your website, your template check if these two parameters are there and if yes, it sends back its CSS code.

However, the [ extonbeverage.com/shop-products/checkout/checkout/confirm.html](https://extonbeverage.com/shop-products/checkout/checkout/confirm.html) URL will trigger the creation of the order and clear the cart. Once that's done, that URL is not valid anymore and thus will redirect the customer to the main products listing of the shop. And that's what you see if you open the CSS file [ extonbeverage.com/shop-products/checkout...est=1&amp;diff=869499139](https://extonbeverage.com/shop-products/checkout/checkout/confirm.html?css_request=1&diff=869499139) instead of getting your template CSS back, like you get when you open [ extonbeverage.com/shop-products/checkout...est=1&amp;diff=869499139](https://extonbeverage.com/shop-products/checkout/checkout/confirm.html?css_request=1&diff=869499139)

The problem comes form the trick used by your template. Instead of using the current URL, it should use the homepage URL to construct its CSS file URL [ extonbeverage.com/index.php?css\_request=1&amp;diff=2073527235](https://extonbeverage.com/index.php?css_request=1&diff=2073527235) regardless of the current URL.

So I would recommend you to forward that information to your template provider.
As a quick fix to circumvent that, you can :
- create a Joomla article with the thank you message you want
- create a link to that article in a hidden menu item via the Joomla menu manager
- edit your credit card payment method in System&gt;Payment methods and enter the URL of that Joomla article in the "return URL" setting.
That way, instead of the default thank you page of HikaShop, it will redirect to that thank you joomla article page and thus that problem won't happen.

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

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

Less More

- Posts: 32
- Thank you received: 1
-
-

5 years 7 months ago [\#330759](#330759) by [nickk](/forum/user/59388-nickk "View nickk's Profile")  Replied by *[nickk](/forum/user/59388-nickk "View nickk's Profile")* on topic *[Applying Main Template to Checkout Confirm Page](/forum/4-how-to/902138-applying-main-template-to-checkout-confirm-page#330759 "-- url of the page with the problem -- :   extonbeverage.com/shop-products/checkout/checkout/confirm.html  -- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4.0 -- Browser(s) name and version -- : Firefox 87.0b6 (64-bit) -- Error-message(debug-mod must be tuned on) -- : No error, main website template not applying module css.  The main website template not applying module css to the /checkout/confirm page when the client completes a credit card purchase. How do I get the main template to apply css to the page?  I'm figuring this is an easy one, but couldn't find the answer in the documentation, forum, or my own documentation. Thanks!")*

The work around worked. Thank you. I think I had to do this way back when, with the original setup. I'll make a note in my site documentation so I don't have to ask this again.

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

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