How to integrate your Spreadshop into your Blog

if you want, go to

spreadshop_options.php on line 117 you see something like

<a class="btn-primary" href="<?php
 	
 	                    if(!empty(get_option('spreadshopToken'))) {
 	                      echo(get_site_url().'/'.get_option('spreadshopSlug').'/#!/'.get_option('spreadshopToken'));
 	                    } else {
 	                      echo(get_site_url().'/'.get_option('spreadshopSlug'));
 	                    }
 	                    ?>" target="_blank">Preview Shop</a>

to

<a class="btn-primary" href="<?php
 	$toki = get_option('spreadshopToken');
 	                    if(!empty($toki)) {
 	                      echo(get_site_url().'/'.get_option('spreadshopSlug').'/#!/'.$toki);
 	                    } else {
 	                      echo(get_site_url().'/'.get_option('spreadshopSlug'));
 	                    }
 	                    ?>" target="_blank">Preview Shop</a>

Is that a fix for Spreadshirt’s plugin? Not your plugin; correct?

yes for spreadshop plugin (spreadshirt’s) :slight_smile:

The error occurs because you are using an ancient PHP-Version (< 5.5). The best idea would be to upgrade to something newer. Wordpress is running fine with 7.3 and your page will probably be twice as fast.

Hi,

I am at the mercy of my hosting platform for the PHP. I am trying to work with them to update it but if you know anything about that it can be like pulling teeth from a rabid dog and cause my sites to crash. The next available I can get isnt even near 7 and it would have been nice if your plugin specified this and this was mentioned when I initially stated I had an error. Also I don’t have any speed issues currently… Lol

1 Like