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
Prev Previous Post   Next Post Next
  #1  
Old 08-25-2014, 01:19 AM
Shanna Cushing's Avatar
Shanna Cushing Shanna Cushing is offline
Junior Member
 
Join Date: Aug 2014
Posts: 2
Default Continue Shopping Button to custom URL

Hello,

I'm using the Ecwid plugin for Wordpress.

I've been scouring the forums but can't find a solution that works for me. I need the "Continue Shopping" button on the Order Confirmation page to redirect to a new link, a third party site where clients book an IT technician after purchase.

I would also like to find out how to make the button bigger and change the text to say "Book your Technician" at the bottom of the Order Confirmation/Invoice page.

This is the code I'm using on my page:
<!-- Ecwid code. Please do not remove this line otherwise your Ecwid shopping cart will not work properly. -->[ecwid_minicart] [ecwid_searchbox] [ecwid_categories] [ecwid_productbrowser]

<script>
if (typeof(Ecwid) == 'object') {
Ecwid.OnAPILoaded.add(function() {
var continueShoppingRedirect = "https://www.timetrade.com/book/FGK7S";

var buttons = [
'button.ecwid-productBrowser-cart-continueShoppingButton', // Cart page
'div.ecwid-productBrowser-cart-emptyCartPanel button.gwt-Button', // Empty cart page
'button.ecwid-ContinueShoppingButton-Invoice', // Order confirmation page
'div.ecwid-productBrowser-search-ContinueShoppingButtonContainer button.gwt-Button', // Search results page
'div.ecwid-Account-ContinueShoppingButtonContainer button.gwt-Button' // 'My account' pages
];

var pages = [
'ORDER_CONFIRMATION',
'ACCOUNT_SETTINGS',
'ORDERS',

];

Ecwid.OnPageLoaded.add(function(page) {
if (jQuery.inArray(page.type, pages) >= 0) {
var buttonObject = jQuery(buttons.join()).filter(":not('.clone'):visi ble");
if (buttonObject.length) {
buttonObject.clone().addClass('clone').appendTo(bu ttonObject.parent()).click(function() {
location.href = continueShoppingRedirect;
});

// Remove the original button
buttonObject.remove();
}
}
});
});
}
</script>
<!-- Ecwid code end -->

Last edited by Shanna Cushing; 08-25-2014 at 01:46 AM. Reason: Added Code
 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Tags
continue shopping button, custom button, custom url, wordress

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 12:21 PM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.