How do I make agree&information pages show in popup?

ThemeBurn SupportForumsOpenCart ThemesPavilion OpenCart ThemeHow do I make agree&information pages show in popup?

This topic has been marked as resolved.

OC 2.1.0.1
Pav 1.2.9
Ajax Quick Checkout.

During checkout user can be asked to confirm “read” and agree..
On the default theme, agree and information pages show as a popup window with just page content in them.

On pavilion theme they show redirect to full theme info page… This is a problem because it takes them off the cart.

I have “inspected” the page html and it is identical so it must be a class setting or something.

How do I make it so pavilion shows confirm and agree pages as a popup like default theme does?

following video demonstrates issue, first (gijerrycan) is on store with default theme, second (swisslink) is on store with pavilion theme.. you can easily see problem with pavilion store.

http://screencast.com/t/M6jMg0Otjn4

March 8, 2016 at 3:24 am #45357

Hi,

Can you try to add this additional code in your Custom Javascript panel:

tbApp.onScriptLoaded(function() {
      tbCreateDialog('.agree', $('#wrapper'));
});

BR,
ThemeBurn team

March 14, 2016 at 12:26 am #45466

Huge Fail… See Video >> http://screencast.com/t/tOAzk8CNMFsG

March 14, 2016 at 3:52 pm #45513

took the wrapper out and it worked fine…

tbApp.onScriptLoaded(function() {
      tbCreateDialog($('.agree'));
});

March 14, 2016 at 7:48 pm #45527

The way you call this function will not work for JS generated links.

About our code, there was a mistake in it. We have edited it, you can check it again if you want.

BR,
ThemeBurn team

March 17, 2016 at 11:13 am #45604

I don’t understand “The way you call this function will not work for JS generated links.”

It is working using the code I showed, where will it not work?

If its working do I need to change it to your code?
what kind of problems could it cause if I leave it?

March 18, 2016 at 1:24 am #45626

Hi,

What we mean is any content that is generated after page load, e.g. ajax tab (default checkout tabs are ajax based).

However, if it works you can leave it.

BR,
ThemeBurn team

March 21, 2016 at 12:54 pm #45678
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.