Advanced Module Manager

Prevent module displaying on ALL pages after checkout process!

6 months 3 weeks ago #77582

Paul Murray's Avatar Paul Murray

hi Peter

This is related to this here:
www.regularlabs.com/forum/advancedmodule...ing-checkout-process
I have my check out process working 100%
And of course now notice that after I return from my reseller (Fast Spring/Pay Pal) the above module still displays.
i.e. after purchase “Continue to Check Out” is still there.
Is there a way to remove it after purchase?
e.g. add some kind of rule if order is confirmed in Hika Shop then do not display?
If so kindly advise what the rule would be and where it needs to?

thanks
Paul

6 months 3 weeks ago #77586

Peter van Westen's Avatar Peter van Westen Admin

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.

6 months 3 weeks ago #77587

Paul Murray's Avatar Paul Murray

Hi Peter
I will ask them.
Please leave this ticket open...
thanks
Paul

6 months 3 weeks ago #77623

Paul Murray's Avatar Paul Murray

Hi Peter

This is what Hika Shop said:

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.

did some tests and have two ways of getting back from payment.
(either direct from Fast Spring or from Pay Pal)

In both cases the return URL looks similar to this:

www.finalbug.net/store/checkout/confirm/cart_id-456

I guess that the cart id number will change each time but the rest remains the same...

kindly advise

Paul

6 months 3 weeks ago #77624

Peter van Westen's Avatar Peter van Westen Admin

So you can simply exclude by URL:

checkout/confirm
You can enter a part of the URL to make it exclude any urls containing that.

6 months 3 weeks ago #77626

Paul Murray's Avatar Paul Murray

Hi Peter

Just double checking here...
So in the Assignmets Tab for my "Proceed to Cart Module"

a) Go to URL
b) Make sure that "Exclude" is selected.
c) enter "checkout/confirm" in the "URL matches" box.
d) Use Regular Expressions !?!?! Do I leave this as it is = No
e) And of course SAVE

This means that once the module realises that an order is confirmed it switches itself off/does not display any more. Correct?

thanks

Paul

6 months 3 weeks ago #77629

Peter van Westen's Avatar Peter van Westen Admin

No need to set the Regular Expressions option on.

Yes, so you will have 2 assignments.
One 'Exclude' assignment for the URL.
And one 'Include' assignment for the HikaShop page type.

6 months 3 weeks ago #77632

Paul Murray's Avatar Paul Murray

Hi Peter

If i am not mistaken I have four things going on here :huh: :

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

2) the module displays on all pages if there is something in the shopping cart
a) Menu Items = ALL
b) Also on child items = Yes
c) Include no Itemid = Yes

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.

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.

Sorry for being paranoid but these are a lot of variables to test.

thanks

Paul

6 months 3 weeks ago #77633

Peter van Westen's Avatar Peter van Westen Admin

You don't need the Menu Item assignment. Setting this to 'Ignore' will make it show up on all pages by default.

You could probably even switch off the HikaShop Page Type assignment and simply use the URL assignment to exclude all urls containing '/checkout'.

So to conclude, you probably only need the URL assignment:
Exclude: /checkout

6 months 3 weeks ago #77634

Paul Murray's Avatar Paul Murray

Hi Peter

OMG I understand you :P

1) Leave it as it is
2) Switch to ignore
3) Leave it as it is
On my way to the check out this is the first link I see:

www.finalbug.net/store/checkout/task-show/cid-2
www.finalbug.net/store/checkout/task-show/cid-3

Then finish...

4) Leave it as it is

thanks

Paul

6 months 3 weeks ago #77635

Peter van Westen's Avatar Peter van Westen Admin

My pleasure.