This plugin uses the Spreadshirt API to list articles and let your customers order articles of your Spreadshirt shop using Spreadshirt order process.
This plugin uses the Spreadshirt API to display the contents of your Spreadshirt Shop or Spreadshop via Spreadshirts’ API. It is made for SEO compatibility, so each article has its unique URL and uses Google structured data.
The basket is api-driven, so until you or the customer clicks checkout the customer stays on your website. Only after clicking the checkout button the customer is redirected to the basket of your Spreadshirt Shop / Spreadshop. The whole payment and order process is handled by Spreadshirt.
Using the plugin is quite easy!
You only need to fill the settings, add the shortcode [spreadplugin]
to a new or existing page or post, click Rebuild Cache
and your shop is ready!
Current features
* Compatible with old and new partner area (api) of Spreadshirt
* Uses Spreadshirts’ own basket
* Designer Sketchomat already integrated to allow customers to customize your products (optional)
* Own product pages with custom URLs (SEO)
* Basket Widget
* Enhanced filter with extended shortcodes
* Choose color and sizes
* Multi-Language support
* Social buttons
* Enhanced zoom
* Infinity Scrolling
* Unique canonical, title, meta description with enabled Yoast SEO and Rank Math
and many more…
What do you need
Demo
https://www.mommyshirt.com/tshirts-fuer-frauen/
[spreadplugin]
Please use a different country or language setting and click Rebuild Cache
How to display one category per page? (Custom categories)
shop_productcategory
and one of your category names as values. See possible values in Spreadplugin Settings page under: Sample shortcode with category
Add or change in the [spreadplugin] code the value from shop_social="1"
to shop_social="0"
or use the settings page.
Add or change in the [spreadplugin]
code the value from shop_sortby=""
to shop_sortby="name"
. Available sort options are name, price, recent. Or use the settings page.
Please go to the settings page in the admin panel of the plugin and click “Rebuild cache”.
Please use the extended shortcode.
This will overwrite the default plugin settings just for the page, where you have added this shortcode.
This might be a problem resulting of a special URL structure (permalinks). In this case, please have a look at your wordpress settings -> permalinks.
If you don’t want to change this setting to another one, please let me know the structure to check it.
If you change the language in your wordpress installation, the language of the plugin changes, too. Well, but you can change the language only for the plugin by selecting your language in the spreadplugin options, now. If you have multiple pages with different shops on it and want to use a different language on each page, please use the shortcode and extend your already used shortcode by – for example shop_language="de_DE"
– possible values are: de_DE, en_GB, fr_FR, nl_NL, nn_NO, nb_NO, da_DK, it_IT. Your new shortcode could look like this: [spreadplugin shop_language="de_DE"]
Please save Spreadplugin settings again.
Paste [spreadplugin-designer]
into your desired page, that’s it. You may also use the Spreadplugin Basket widget to display shopping cart contents.
Sure, just use [spreadplugin shop_id="XXX"]
on one page and [spreadplugin shop_id="ZZZ"]
on another and Rebuild Cache
afterwards.
Use [spreadplugin shop_topic="XXX"]
whereas XXX stands for your topic id. If you navigate to the topic in your Spreadshop, you can see the url in your browser changes to something like ?collection=XXX&
. The XXX
is your topic id.
Add following class to the html element you want to be removed: spreadplugin-remove-on-detail
. You can also enclose more than one element with a div for example.
Use [spreadplugin shop_idea="XXX"]
whereas XXX stands for your idea id. If you navigate to the topic in your Spreadshop, you can see the url in your browser changes to something like idea=XXX&
. The XXX
is your design/idea id.
Use [spreadplugin-designer designid="XXX" appearanceid="XXX" producttypeid="XXX" viewid="XXX"]
you can use or arrange the properties as you like. For example to just show gray pullovers use: [spreadplugin-designer appearanceid="363" producttypeid="5"]
.
Use [spreadplugin shop_article_detail="XXX"]
to display the detail page of a single product. As value XXX
use the detail page url like baby-wickel-world-champion-baby-bio-langarm-body-5d77BAa2e447425742X4bfd1-816-1
.
Adjustments for new Spreadshirt API
Google structured data fix
Google structured data fix
Bugfix
Bugfix
API endpoints changed
API endpoints changed
API Key and Secret are not required anymore.
Designer was unable to add product to basket.
Switched to JSON query and responses for Spreadshirt requests. XML API is deprecated.
Use wordpress session fixes
Use wordpress diacritics functions
Stickers couldn’t be displayed
shop_article_detail shortcode attribute allows you to specify a single article. It display the detail page instead of `shop_article` which displays the kategory view.
Currency for basek item rows
If you want to exclude elements from detail page, enclose them with <div class="spreadplugin-remove-on-detail">...</div>
and enable. This applies now to all occurencies.
Yoast fix, thanks to cmolyn.
Spreadshirt API changes
Use Designer with shortcodes – see faq
Deprecated messages
Added product name to title again
Added coupon widget so you can display coupon code
Updated to latest spreadshirt code
Bugfix in shopping cart
Added idea to show just one idea with shop_idea="5dXXabfd5fd3eXXXb4dbf4cf"
Adjusted to spreadshirt changes
Added empty basket url, if basket is empty, customer gets redirected to website.
Bugfixes
Some scripts are disabled if functions aren’t used
Cache fix
Health-check fix
Encoding fix
Title meta improvement
Basket item language fix
Basket scrollbar is now sticky to avoid flickering.
If you want to exclude elements from detail page, enclose them with <div class="spreadplugin-remove-on-detail">...</div>
and enable
PHP warnings reduced
Minor update to allow addons
Inch calculation removed
Added more style options.
Fatal Bugfix. Sorry!
Use .html in url if permalink ‘/%postname%.html’ enabled. Tested with e.g. Plugin ‘.html after URL’ https://de.wordpress.org/plugins/html-after-url/
Bugfixes
Added new view for detail page
Display custom themes, topics of products
Added Support for Rank Math – thanks to René!
Yoast SEO fix
Javascript code improvements
CSS improvements
CSS improvements and split article name from product name
SEO improvements
Bugfix
Added additional input fields for “Add to basket” button on detail page
Changed background image color to show only on zoom images.
Adjusted the api requests
Added Canadian Dollars. Please choose CA in Spreadplugin Options
Google structured data fix
Improved Yoast SEO compatiblity
SEO friendly URLs: Article name is now included in the url.
Reenabled custom shop categories again. Please rebuild cache. You can use [spreadplugin shop_category=”XXX”] and put any string in there, which you can find by navigating your Spreadshop and looking at the query string in the address bar of the browser behind ?q=XXX
API changes at Spreadshirt
Bugfix
Now works with new partner area
CURL changes
Bugfix
Bugfix
Minor changes
Added translation for “Loading…” text
Badge for new articles (added in -1 month)
Added model images. Use shortcode shop_modelids="PRODUCTTYPEID-APPEARANCEID:MODELID,..."
. Possible ModelIds can be inspected on Spreadshirt Marketplace images at attribute modelId. Please see How to display the model images
in FAQ.
MagnificPopup disabled as it is not supported anymore
Bugfix
Add the suggested privacy policy text to the policy postbox
Replaced Tablomat with the new Sketchomat
Updates to Spreadshirt API
Bugfix in SEO
Prepared for API changes in 2018 (https://www.spreadshirt.com/blog/2017/12/21/changes-api-usage/)
Added CSS Classes for price and currency. If you like, you can now hide the currency.
Experimental feature for improved SEO (separate detail page). If you have questions, feel free to post in the forum.
[spreadplugin-designer]
to display designer only.shop_basket_text_icon
to enable or disable basket iconNorwegian language added
Pagination bugfix: In some cases, the pagination doesn’t work and always shows the first page.
Price format changed for USD
Bugfix: InfiniteScroll was not disabled correctly – it did show Javascript errors.
Sometimes no articles were displayed, when no designs are available. This has now been fixed.
Bugfix: Wrong view was used as default
Enhanced cache call method to get always newest API file, when deleting spreadplugin cache.
Bugfix: Script tried to display descriptions of the designs, which is currently not available from spreadshirt
Article description can now be displayed always. Use shop_showdescription="1"
to enable or use settings.
Edit article now opens in fancybox when set shop_checkoutiframe="2"
. It opens in a separate window by default, now. Thanks to grillwear-shop.de
Better WP Security
users, which were unable to display the options page in some circumstances.[spreadplugin]
.https://wordpress.org/extend/plugins/wp-spreadplugin/installation/
.Bugfix: Infinity scrolling doesn’t work sometimes when in designs view
to shop_display="1"
.Click on zoom image doesn’t open a separate window anymore. The article description is now displayed in a modal window on the website.
Edit for articles added, if you have a designer shop. Activate by changing shop_designershop=”0″ to shop_designershop=”[DESIGNERSHOPID]”.
Fancybox added to display checkout in a modal window. Activate by adding or changing shop_checkoutiframe="0"
to shop_checkoutiframe="2"
Price formatting added
Compatibility update for using with ‘Simple Facebook Connect’-Plugin
Dutch language added (nl_NL)
Compatibility update for < PHP 5
Translation for sorting added
to shop_sortby="[name, price, recent]"
.to shop_checkoutiframe="1"
.shop_linktarget=""
to shop_linktarget=”YOUR_IFRAME_NAME”`.shop_productcategory=""
and fill with field value e.g. Women => shop_productcategory="Women"
shop_enablelink="1"
or disable shop_enablelink="0"
this behaviour (default is enabled).shop_social="1"
/ Disable shop_social="0"
shop_category=""
. Please have a look at the faq for getting the category id. In v2 I hope to have an admin interface which will help you with the configuration.