View Single Post
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


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]

if (typeof(Ecwid) == 'object') {
Ecwid.OnAPILoaded.add(function() {
var continueShoppingRedirect = "";

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 = [


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
<!-- Ecwid code end -->

Last edited by Shanna Cushing; 08-25-2014 at 01:46 AM. Reason: Added Code