The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.
 
 
Thread Tools Display Modes
  #41  
Old 02-17-2014, 04:45 PM
Maya's Avatar
Maya is offline
Ecwid Team
 
Join Date: Feb 2010
Location: Ecwid headquarter
Posts: 5,876
Default


Hello,

Sorry for delay with answer.

I have checked the script and it seems that everything is ok with it. Most probably, it has been placed incorrectly.

Could you send me the link to the page, where this script is installed? I will be glad to help you with investigation.

I look forward to your reply.
__________________
Maya N., Ecwid Team

------------------
Welcome to our new Help Center!
  #42  
Old 01-11-2015, 03:51 PM
Shaina Sidoti's Avatar
Shaina Sidoti Shaina Sidoti is offline
 
Join Date: Dec 2014
Posts: 1
Default

Matt,

If I am using a Wordpress site and I have the cart at the bottom of multiple pages of my site, does the script need to go underneath all of these in order to work from each page? I currently am testing it on my main 'order here' page.

Thanks for all your help!

Amanda
  #43  
Old 01-12-2015, 01:34 PM
Rick G's Avatar
Rick G Rick G is offline
Ecwid Team
 
Join Date: Jun 2014
Posts: 1,271
Default

Quote:
Originally Posted by Shaina Sidoti View Post
Matt,

If I am using a Wordpress site and I have the cart at the bottom of multiple pages of my site, does the script need to go underneath all of these in order to work from each page? I currently am testing it on my main 'order here' page.

Thanks for all your help!

Amanda
Hello Amanda.

Thank you for contacting us.

As I understand, you have added Ecwid store to only one page on your website, for example 'order here' and you added minicart widget to other pages on your website, then you should add the redirect to custom 'thank you' page script to the page where you added Ecwid store, the 'order here' page. You can do this in your Wordpress admin backend > Pages > Edit your store page > Add the script after Ecwid shortcodes that look like this: [ecwid]

But if you added Ecwid store using plugin to multiple pages on your Wordpress website, so your customers can go through checkout process in any of those pages. In this case you will need to add the script to all the pages where you added Ecwid, after Ecwid shortcodes.

Please let me know if you have any further questions.
Thank you.
__________________
Ecwid API and App Market Team
Ecwid Developer Website
  #44  
Old 04-08-2015, 04:36 PM
Giacomo Turbati1's Avatar
Giacomo Turbati1 Giacomo Turbati1 is offline
Junior Member
 
Join Date: Apr 2015
Posts: 3
Default

i have the same problem. I have to integrate the code into adobe muse. but I am absolutely not redirected to my page. which is the correct code to be entered?
  #45  
Old 04-09-2015, 12:50 PM
river's Avatar
river river is offline
Ecwid Team
 
Join Date: Feb 2015
Posts: 452
Default

Quote:
Originally Posted by Giacomo Turbati1 View Post
i have the same problem. I have to integrate the code into adobe muse. but I am absolutely not redirected to my page. which is the correct code to be entered?
Hi,

You don’t have to bother yourself with any integration codes for adding Ecwid store to Adobe Muse. There are two ready Ecwid plugins for Muse and they both may be found here: http://help.ecwid.com/customer/porta...004-adobe-muse
They are easily installed and are capable of providing maximum of Ecwid capabilities for your Adobe Muse website.
__________________
Roman I.
Ecwid Customer Care Team

More tips and hints on Ecwid use in our Help Center

⬇ Please click Thanks if my reply helped you.
  #46  
Old 04-09-2015, 06:34 PM
Giacomo Turbati1's Avatar
Giacomo Turbati1 Giacomo Turbati1 is offline
Junior Member
 
Join Date: Apr 2015
Posts: 3
Default

Good evening and thank you for your response. my problem is that I wanted to do the redirect to my page, after the customer has made the purchase. I found a code on this forum but I can not do the redirect. I wanted to know which code is correct to be built in adobe muse.
thanks in advance
  #47  
Old 04-10-2015, 10:37 AM
river's Avatar
river river is offline
Ecwid Team
 
Join Date: Feb 2015
Posts: 452
Default

Quote:
Originally Posted by Giacomo Turbati1 View Post
Good evening and thank you for your response. my problem is that I wanted to do the redirect to my page, after the customer has made the purchase. I found a code on this forum but I can not do the redirect. I wanted to know which code is correct to be built in adobe muse.
thanks in advance
Hello!

Now I see what the issue is. Custom redirection scripts in Adobe Muse work the same way with Ecwid widgets and integration code as well. They need to be put straight below the Ecwid container.

So, to integrate a script which would redirect the customer from the “Thank you for your order” page to a custom one, you need to put this very code you found on our forum below the Ecwid widget or an HTML box with the Ecwid integration code:

Code:
 

<script>
var confirmationPageURL = "http://google.com";

// Add handler for Ecwid's OnPageLoad event
if (
typeof(Ecwid) == 'object'
&& typeof(Ecwid.OnPageLoad) == 'object'
) {
Ecwid.OnPageLoad.add(function(page) {
// Redirect user if needed
if (
typeof(page) == 'object'
&& 'ORDER_CONFIRMATION' == page.type
) {
window.location = confirmationPageURL;
}
});
}
</script>
So, no matter if you are using one of the Ecwid widgets for Muse or an integration code, for proper redirection you need to:

1. Create another HTML box inside Adobe Muse (Object -> Insert HTML) and

2. Insert the script in it like this:



3. Change the http://google.com in the code of the script to the link to your custom page.


4.Hit OK, resize the HTML box to take minimal space on your website.

4. Put that box straight below the Ecwid container like this:



In this case I’m using the MuseThemes Ecwid widget to integrate Ecwid with an Adobe Muse website, but this will work for any method of integration.

Try that and see that it works just fine.
__________________
Roman I.
Ecwid Customer Care Team

More tips and hints on Ecwid use in our Help Center

⬇ Please click Thanks if my reply helped you.
  #48  
Old 05-13-2015, 03:07 PM
Nikolas5511's Avatar
Nikolas5511 Nikolas5511 is offline
 
Join Date: Feb 2013
Posts: 12
Default

Добрый день, я все сделал, как вы написали, но к сожалению у меня скрипт не работает. Вот страница http://www.rumarket5.ru/vt.
  #49  
Old 05-15-2015, 09:19 AM
Vladimir T's Avatar
Vladimir T Vladimir T is offline
Ecwid Team
 
Join Date: Jun 2014
Posts: 1,020
Default

Quote:
Originally Posted by Nikolas5511 View Post
Добрый день, я все сделал, как вы написали, но к сожалению у меня скрипт не работает. Вот страница http://www.rumarket5.ru/vt.
Здравствуйте,

Сейчас на сайте нет признаков скрипта для редиректа на свой вариант страницы благодарности. Можете разместить его, чтобы проверить его работу?
__________________
Владимир Т.
Команда заботы о пользователях Эквида

Наш блог с очень полезной информацией!
База знаний.

Скажите "Спасибо" в Twitter'е, если у нас получилось помочь вам, нам будет очень приятно =)
  #50  
Old 02-02-2016, 09:17 PM
Laura Naiser's Avatar
Laura Naiser Laura Naiser is offline
 
Join Date: May 2015
Posts: 4
Default

I tried pasting the code above into my store page (http://www.lauranaiser.com/store/) but when I tested it by doing an actual purchase, it returned me to http://www.lauranaiser.com/store/#!/...derId=30179565 rather than the custom thank you page of http://www.lauranaiser.com/purchase-ty

Here is the code as it appears on my store page:
<!-- Ecwid code. Please do not remove this line otherwise your Ecwid shopping cart will not work properly. -->(You don't need to sign in to browse or purchase.)[ecwid widgets="productbrowser search" grid="3,3" list="10" table="20" default_category_id="0" category_view="grid" search_view="grid" minicart_layout="attachToCategories" ]

<!-- Ecwid code end -->

<script>
var confirmationPageURL = "http://www.lauranaiser.com/purchase-ty";

// Add handler for Ecwid's OnPageLoad event
if (
typeof(Ecwid) == 'object'
&& typeof(Ecwid.OnPageLoad) == 'object'
) {
Ecwid.OnPageLoad.add(function(page) {
// Redirect user if needed
if (
typeof(page) == 'object'
&& 'ORDER_CONFIRMATION' == page.type
) {
window.location = confirmationPageURL;
}
});
}
</script>

What did I do wrong? Thanks!
 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Tags
checkout, paypal

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:49 AM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.