Prevent module displaying on ALL pages after checkout process!

  • Posts: 139
  • Thank you received: 10
6 years 10 months ago #286504

-- HikaShop version -- : 3.2.2
-- Joomla version -- : 3.8.3
-- PHP version -- : php 7.17
-- Browser(s) name and version -- : Firefox
-- Error-message(debug-mod must be tuned on) -- : N/A

Hi HS Team,

With the help of Peter from Regular Labs.

I was able to get the "Hikashop Cart Module"

www.regularlabs.com/forum/advancedmodule...ing-checkout-process

To display on pages ONLY that are not part of the check out process.

The thing is that coming back from my checkout process from Fast Spring...

i.e. after checking out I still see this button.

Is there a way to remove it after check out?

From Peter at Regualr Labs...

That is down to what HikaShop sends as url/form parameters to that results page.
If the url is different, you could use the URL assignment to exclude that page.
Otherwise it would have to be done via the custom PHP assignment. And you would have to know what data (task/whatever) is used by HikaShop to know it is the results page.


Can you give me any tips to get this to work?

thanks

Paul

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
6 years 10 months ago #286506

Hi,

Well, it's not really down to HikaShop but to how your payment method is made and how it is configured.
If it's done properly, it should have a "return URL" setting. If you enter something in that setting of the payment method, then it's that URL that you want to exclude with Advanced Modules Manager.
If you don't enter anything in it, then it's probably the default return URL of HikaShop and you could exclude it with the keyword "after_end".
But it's also possible that the payment plugin does it's own thing and redirect to another URL in which case you'll have to check with the payment plugin provider.

Please Log in or Create an account to join the conversation.

  • Posts: 139
  • Thank you received: 10
6 years 10 months ago #286569

Hi Nicolas

thank you for your detailed reply.
In my case this is the link I get on returning.
I am asking Peter from "NoNumber" if he can help.

www.mywebsite/store/checkout/confirm/cart_id-456

best
Paul

Please Log in or Create an account to join the conversation.

  • Posts: 139
  • Thank you received: 10
6 years 10 months ago #286583

Hi Hika Folks

This seems to be the solution if you have advanced module manager:

1) the module only displays if some thing is in the shopping cart. (HikaShop take care of this)
Leave it as it is

2) the module displays on all pages if there is something in the shopping cart
Switch to ignore

3) The module DOES NOT displays if some thing is in the shopping cart and you are in the shopping cart on your way to pay.
a) HikaShop Page types = Exclude
b) Selection has "checkout" entered.

eg:

www.mywebsite.com/store/checkout/task-show/cid-2
www.mywebsite.com/store/checkout/task-show/cid-3

4) The module DOES NOT displays after a purchase has been confirmed
a) URL
b) Make sure that "Exclude" is selected.
c) enter "checkout/confirm" in the "URL matches" box.
d) No need to set the Regular Expressions option on.

I am not an expert but this seems to be working for me thanks to Peter from Regular Labs.

best

Paul

Please Log in or Create an account to join the conversation.

Time to create page: 0.066 seconds
Powered by Kunena Forum