zazzle store builder keyword
Posted: Thursday, December 12, 2013 7:46:20 AM
Is there a way to get more than one product up using keywords. If i type in more than one even with a comma it just picks one how do it fix this. i would like to put up bodysuit and kids shirts on the same page.
Thanks
Posted: Thursday, December 12, 2013 7:34:33 PM
You just need to use the same code and change the keywords, you should then end up with the top section as one product and then second section as the other product below it like this below:

[zstore keywords="kids shirts"]
[zstore keywords="onesie"]

Hope that helps you Smile
CW



Posted: Saturday, December 14, 2013 12:52:02 PM
thank you for the information but what file do i put this in?
thanks
Posted: Saturday, December 14, 2013 5:31:20 PM
If you are using wordpress with the zazzle store plugin, you just put that code in the new pages you make and just change the keywords for the different products you want on the pages.

Are you using wordpress or using just the zazzle store builder and creating pages you code yourself??
Posted: Saturday, December 14, 2013 5:55:48 PM
zazzle store builder and making web pages
Posted: Saturday, December 14, 2013 5:57:48 PM
Oh ok, that is a little more work, let me check my files and see if I can remember how I did it before. I switched to wordpress for my site bc it was easier and alot less work.

Posted: Saturday, December 14, 2013 6:24:04 PM
I am thinking the code below should work, it is for 2 grid products page, you would have to put in your shop name where it says yourshopname and you can turn off any features you don't want by changing them to 'false' instead of 'true' and change how many products show from 20 to whatever you would like and you can change the grid cell size, I just went with the medium size.

Hopefully this works, let me know if you have any problems, I'll see what I can do to help Smile



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Change this to the what you want the web browser page title to be</title>
<link id="ext_css" rel="stylesheet" type="text/css" href="css/zstore.css"/>
<body>
<h1 class="sampleTitle">Change this to what you want your page title to be</h1>

<?php
// configure Zazzle Store Builder display
$_GET['contributorHandle'] = 'yourshopname';
$_GET['keywords']= 'kids shirts';
$_GET['showPagination'] = 'true';
$_GET['showSorting'] = 'true';
$_GET['showProductDescription'] = 'true';
$_GET['showByLine'] = 'true';
$_GET['showProductTitle'] = 'true';
$_GET['showProductPrice'] = 'true';
$_GET['gridCellSize'] = 'medium';
$_GET['showHowMany'] = '20';

include "include/zstore.php";



// configure Zazzle Store Builder display
$_GET['contributorHandle'] = 'yourshopname';
$_GET['keywords']= 'onesie';
$_GET['showPagination'] = 'true';
$_GET['showSorting'] = 'true';
$_GET['showProductDescription'] = 'true';
$_GET['showByLine'] = 'true';
$_GET['showProductTitle'] = 'true';
$_GET['showProductPrice'] = 'true';
$_GET['gridCellSize'] = 'medium';
$_GET['showHowMany'] = '20';

include "include/zstore.php";

?>

</body>
</html>

Posted: Sunday, December 15, 2013 6:57:36 AM
Thank Agian But it doesnt seem to work this is what I get http://www.ifthemudaintflyinyouainttryin.com/test.php
Posted: Sunday, December 15, 2013 8:27:48 AM
Just seeing what the above code is, did you replace "yourshopname" to your stores name or if you want to pull from the marketplace remove the text but leave the quoteas - ""
Posted: Sunday, December 15, 2013 2:16:28 PM
this is the code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Change this to the what you want the web browser page title to be</title>
<link id="ext_css" rel="stylesheet" type="text/css" href="css/zstore.css"/>

<body>
<h1 class="sampleTitle">Change this to what you want your page title to be</h1>

<?php
$_GET['contributorHandle'] = 'gear4gearheads';
$_GET['keywords']= 'pacifiers';
$_GET['showPagination'] = 'true';
$_GET['showSorting'] = 'true';
$_GET['showProductDescription'] = 'true';
$_GET['showByLine'] = 'true';
$_GET['showProductTitle'] = 'true';
$_GET['showProductPrice'] = 'true';
$_GET['gridCellSize'] = 'medium';
$_GET['showHowMany'] = '20';

include "test2/zstore.php";


// configure Zazzle Store Builder display
$_GET['contributorHandle'] = 'gear4gearheads';
$_GET['keywords']= 'onesie';
$_GET['showPagination'] = 'true';
$_GET['showSorting'] = 'true';
$_GET['showProductDescription'] = 'true';
$_GET['showByLine'] = 'true';
$_GET['showProductTitle'] = 'true';
$_GET['showProductPrice'] = 'true';
$_GET['gridCellSize'] = 'medium';
$_GET['showHowMany'] = '20';

include "test2/zstore.php";




?>

</body>
</html>
Posted: Sunday, December 15, 2013 2:47:45 PM
Ok, is your zstore.php in the test2 directory or the test2/includes directory ? Usually the zstore is in the includes folder unless you moved it. If it's in the includes folder then add includes/ between test2/ and zstore.php If it's in the test2 folder then I don't know what might be the problem unless Zazzle is screwing up again or it can't find matches to your keywords to display anything. I'm sure someone here will have an answer for you that knows the ZSB better than me.
Posted: Tuesday, December 17, 2013 1:18:04 PM
I see you have the ZSB somewhat working at the link you provided. Other than just showing pacifiers in both I see you figured out how to get them to display.
Posted: Wednesday, December 18, 2013 7:16:20 AM
Thats the problem they have different keywords but they are only pulling from one any ideas?
Posted: Wednesday, December 18, 2013 10:27:05 AM
What is in your configuration.php file?
Posted: Wednesday, December 18, 2013 11:20:52 AM
<?php
/* *****************************************************/
/* USER CONFIGURABLE VARIABLES FOR ZSTORE 1.0.2 */
/* ****************************************************/

/***************************************************/
/* REQUIRED VARIABLES */
/* You must replace the values for these variables */
/****************************************************/
// Your Zazzle contributor name. Enter your contributor name to feature products from your gallery exclusively
// or leave blank (remove "zazzle") to pull a feed from the Zazzle Marketplace.
$contributorHandle = "gear4geadheads";

// Your Zazzle Associate ID
$associateId = "238095467864809554";

/****************************************************/
/* OPTIONAL VARIABLES */
/* You may change these variables to suit your gallery design */
/****************************************************/

// The numeric code for the Zazzle product line to display. If you want to show all products from a gallery, leave this blank.
// To get a product line number, click on a product line in a gallery. In the URL you will see something like this:
// http://www.zazzle.com/coatsofarms/products/cg-196595220567583981. The string of numbers at the end is the product line ID.
// Leave this blank if you are pulling Zazzle Marketplace feeds.
$productLineId = "196066403974248447";

// Product type filter. You can use this variable to limit display to only one type of product (t-shirts, mugs, etc)
// Just enter one of the numeric Product Codes below. If you leave this variable blank, all product types are displayed:
// 128 Bumper Sticker
// 137 Card
// 144 Mouse pad
// 145 Button
// 146 Keychain
// 147 Magnet
// 148 Hat
// 149 Bag
// 151 Tie
// 153 Photo Sculpture
// 154 Apron
// 156 Photo Print
// 158 Calendar
// 167 Keds Shoes
// 168 Mug
// 172 Postage Stamps
// 186 Skateboards
// 217 Sticker
// 228 Print (posters)
// 231 Embroidered shirts
// 232 Embroidered bags
// 233 Embroidered hats
// 235 T-Shirt
// 239 Postcards
// 240 Profile Card
$productType = "";

// Search terms. Comma separated keywords you can use to select products for your store.
// Entering keywords is especially useful when pulling Zazzle Marketplace feeds.
// If you use a Marketplace feed and do not enter one or more keywords, all products from Zazzle.com
// are returned, though not all at once.
$keywords = "";

// Grid width: Set the overall width of your product grid (in pixels).
$gridWidth = "900";

// The size you want each grid cell (product square) - choices: tiny, small, medium, large or huge
$gridCellSize = "large";

// Grid cell spacing: The space between products in the product grid (in pixels).
$gridCellSpacing = "9";

// Background color of grid images in HEX (without the #, for example, "FFFFFF" for white)
$gridCellBgColor = "FFFFFF";

// If you have a Google Analytics account and you want to use it in your Zazzle Store, say true. Otherwise say false.
$useAnalytics = 'false';

// Your Google Analytics code. This variable is ignored if useAnalytics is set to false.
$analyticsId = "YOUROWNANALYTICSCODENUMBERHERE";

// Change just the number in quotes. This is how many results you want returned per page.
$showHowMany = !isset($_GET['ps']) ? "20" : $_GET['ps'];

// Change just the number in quotes. The page of your gallery products you want to be the first displayed in your Zazzle Store
// (example, start showing products from page 5 of the result set)
$startPage = !isset($_GET['pg']) ? "1" : $_GET['pg'];

// Show pagination controls (true or false). These are the page numbers, <---Prev, and Next ---> used to move around in a gallery or Zazzle Store.
$showPagination = true;

// Show sorting controls (true or false). If true, controls are displayed allowing buyers to sort products by Recent (date created) or Popular (number sold).
// If false, no sort controls are displayed and products are displayed according to the value of defaultSort.
$showSorting = true;

// How should we be sorting by default? options are 'date_created' or 'popularity' for sort by popularity.
$defaultSort = 'date_created';

// Show short product description beneath the product image (true or false).
// Note: the description appears beneath the title if the title is enabled.
$showProductDescription = true;

// Show creator "by" line. True or false.
$showByLine = true;

// Show product title. True or false.
$showProductTitle = true;

// Show product price. If false, no price is displayed for products in your Zazzle Store.
$showProductPrice = true;

// Enable or disable image caching (true or false).
$useCaching = false;

// How long to keep cached resources (if useCaching is enabled) in seconds. 3600 seconds = 1 hour
$cacheLifetime = 7200;


/* ******************************************* */

?>
Posted: Wednesday, December 18, 2013 11:23:36 AM
this is my test.php file

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Change this to the what you want the web browser page title to be</title>
<link id="ext_css" rel="stylesheet" type="text/css" href="css/zstore.css"/>

<body>
<h1 class="sampleTitle">Change this to what you want your page title to be</h1>

<?php
$_GET['contributorHandle'] = 'gear4gearheads';
$_GET['keywords']= 'pacifiers';
$_GET['showPagination'] = 'true';
$_GET['showSorting'] = 'true';
$_GET['showProductDescription'] = 'true';
$_GET['showByLine'] = 'true';
$_GET['showProductTitle'] = 'true';
$_GET['showProductPrice'] = 'true';
$_GET['gridCellSize'] = 'medium';
$_GET['showHowMany'] = '20';

include "test2/zstore.php";


// configure Zazzle Store Builder display
$_GET['contributorHandle'] = 'gear4gearheads';
$_GET['keywords']= 'onesie';
$_GET['showPagination'] = 'true';
$_GET['showSorting'] = 'true';
$_GET['showProductDescription'] = 'true';
$_GET['showByLine'] = 'true';
$_GET['showProductTitle'] = 'true';
$_GET['showProductPrice'] = 'true';
$_GET['gridCellSize'] = 'medium';
$_GET['showHowMany'] = '20';

include "test2/zstore.php";




?>

</body>
</html>
Posted: Wednesday, December 18, 2013 12:08:28 PM
Nice.
It looks like you need to require configuration.php twice.
To do so, replace in zstore.php
following line:

// import our external class libraries
require_once 'cacheMgr.php';
require_once 'lastRSS.php';
require_once 'configuration.php';
require_once 'strings.php';

with:

// import our external class libraries
require_once 'cacheMgr.php';
require_once 'lastRSS.php';
require 'configuration.php';
require_once 'strings.php';
Posted: Wednesday, December 18, 2013 3:52:35 PM
Thanks alot that worked
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Print this topic
RSS Feed
Normal
Threaded