Shop categoties
Hi, i don't understand the shop categories. I want to create categories 'Baby Girl (0-3 years)' and have sub-categories too.
eg. product a category ID 1 ( 'Baby Girl (0-3 years)' ), then i added a list of sub-categories to the product table separated with comers. e.g.: 'party,top,xmas'' actually table ID's. I added this to the old paypal shop.
hope can I have the same functionality, with the new shop?
also, when setting up a category, there it Title. Set Template, and Category template the last two can have Set or Category???
please explain this
tony
Yes, you can use Categories with Shop.
I'm afraid I don't understand this question.
If you need help then we need a clear explanation of the problem and steps to reproduce, also your Diagnostics Report and the relevant code.
I don't fully understand the shop categories. I've made a top left category 'Baby Girl (0-3 years)' then I add sub-category to it.
but I can't get past the Title 'Select Some Options'
screen grab here: https://www.tonymonckton.co.uk/ScreenShot.png
regards
Tony
Have you edited the master template for your category?
Ive not edit the template for the category. the only template I've changed is product.html
tony
screengrab
https://www.tonymonckton.co.uk/cat.png
tony
Could you post your diagnostics report please?
Hi, here it is...
tony
Can you show us your
templates/categories/category.html
template?<perch:before><ul></perch:before> <li style="margin-left: <perch:category id="catDepth" type="hidden" />0px;"> <h4><perch:category id="catTitle" type="smarttext" label="Title" required="true" /></h4> <perch:category id="catSlug" type="slug" for="catTitle" suppress="true" /> <perch:category id="desc" type="textarea" label="Description" editor="markitup" markdown="true" size="s" /> </li> <perch:after></ul></perch:after>
thanks for helping...
Tony
I can't see anything there that would cause this.
Is there anything unusual about this installation?
I think ill try installing it all again, I get an php errors when clicking Brands
Warning: include(/nfs/c05/h06/mnt/78335/domains/shop.stylishlittleme.com/html/perch/addons/apps/perch_blog/runtime.php): failed to open stream: No such file or directory in /nfs/c05/h06/mnt/78335/domains/shop.stylishlittleme.com/html/perch/core/inc/apps.php on line 21
i have removed the blog...
What do you have selected under Set Options?
I've reinstalled perch shop etc. all working
but create a new Category set. I don't understand it
Title: Baby Girl (0-3 years) Set template: Set Category template: category (it I use 'set', it just won't let me add a sub-category, it just says ' no results found "dresses", which I can't get passed )
tony
A category set would be something like 'Products'.
'Baby Girl (0-3 years)' would be a category within that set.
ok i have now created the categories.
I've setup a product, taxes etc... but when I click on 'generate variants' (there are none set up for product)
it displays the below
tony
Warning: Invalid argument supplied for foreach() in /nfs/c05/h06/mnt/78335/domains/shop.stylishlittleme.com/html/perch/addons/apps/perch_shop/lib/PerchShop_VariantFactory.class.php on line 116
Warning: Cannot modify header information - headers already sent by (output started at /nfs/c05/h06/mnt/78335/domains/shop.stylishlittleme.com/html/perch/addons/apps/perch_shop/lib/PerchShop_VariantFactory.class.php:116) in /nfs/c05/h06/mnt/78335/domains/shop.stylishlittleme.com/html/perch/core/lib/PerchUtil.class.php on line 1211
Warning: Cannot modify header information - headers already sent by (output started at /nfs/c05/h06/mnt/78335/domains/shop.stylishlittleme.com/html/perch/addons/apps/perch_shop/lib/PerchShop_VariantFactory.class.php:116) in /nfs/c05/h06/mnt/78335/domains/shop.stylishlittleme.com/html/perch/core/lib/PerchUtil.class.php on line 1212
Warning: Cannot modify header information - headers already sent by (output started at /nfs/c05/h06/mnt/78335/domains/shop.stylishlittleme.com/html/perch/addons/apps/perch_shop/lib/PerchShop_VariantFactory.class.php:116) in /nfs/c05/h06/mnt/78335/domains/shop.stylishlittleme.com/html/perch/core/lib/PerchUtil.class.php on line 1213
Warning: Cannot modify header information - headers already sent by (output started at /nfs/c05/h06/mnt/78335/domains/shop.stylishlittleme.com/html/perch/addons/apps/perch_shop/lib/PerchShop_VariantFactory.class.php:116) in /nfs/c05/h06/mnt/78335/domains/shop.stylishlittleme.com/html/perch/core/lib/PerchUtil.class.php on line 1219
Warning: Cannot modify header information - headers already sent by (output started at /nfs/c05/h06/mnt/78335/domains/shop.stylishlittleme.com/html/perch/addons/apps/perch_shop/lib/PerchShop_VariantFactory.class.php:116) in /nfs/c05/h06/mnt/78335/domains/shop.stylishlittleme.com/html/perch/core/inc/top.php on line 17
PERCH INFORMATION
Perch: 2.8.30 Production mode: Production (100) Installed apps: content (2.8.30), assets (2.8.30), categories (2.8.30), perch_blog (5.0), perch_shop_orders (PERCH_SHOP_VERSION), perch_shop_products (1.0.6), perch_shop (1.0.6), perch_members (1.5) DB driver: PDO DB tables: perch2_categories (20), perch2_category_counts (0), perch2_category_sets (1), perch2_content_index (0), perch2_content_items (0), perch2_content_regions (0), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_templates (0), perch2_pages (0), perch2_resource_log (10), perch2_resource_tags (0), perch2_resources (10), perch2_resources_to_tags (0), perch2_settings (29), perch2_shop_addresses (0), perch2_shop_admin_index (28), perch2_shop_brands (1), perch2_shop_cart (1), perch2_shop_cart_data (0), perch2_shop_cart_items (0), perch2_shop_countries (250), perch2_shop_currencies (152), perch2_shop_customers (0), perch2_shop_emails (1), perch2_shop_index (66), perch2_shop_option_values (0), perch2_shop_options (0), perch2_shop_order_items (0), perch2_shop_order_promotions (0), perch2_shop_order_statuses (9), perch2_shop_orders (0), perch2_shop_orders_meta (1), perch2_shop_product_files (0), perch2_shop_product_option_values (0), perch2_shop_product_options (0), perch2_shop_product_tags (0), perch2_shop_products (1), perch2_shop_promotions (0), perch2_shop_search (1), perch2_shop_shipping_zone_countries (1), perch2_shop_shipping_zones (1), perch2_shop_shippings (1), perch2_shop_tax_exhibits (0), perch2_shop_tax_group_rates (0), perch2_shop_tax_groups (1), perch2_shop_tax_locations (1), perch2_shop_tax_rates (1), perch2_shop_variants (0), perch2_user_passwords (0), perch2_user_privileges (64), perch2_user_role_privileges (16), perch2_user_roles (2), perch2_users (1) Users: 1 App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_members', 'perch_shop', ); ?> Scheduled tasks for perch_blog: delete_spam_comments (1440 mins) Editor plug-ins: markitup H1: b95549e023a1e8891b21845e5a4bdae5 L1: 15df4da316a6b61570fd981038ecd532 F1: 2edba60ed1f613d6dd804feb202456a2 headerColour: #ffffff content_singlePageEdit: 1 helpURL: siteURL: / hideBranding: 0 content_collapseList: 1 lang: en-gb update_2.8.30: done latest_version: 2.8.15 on_sale_version: 2.8.30 perch_shop_update: 1.0.6 headerScheme: light perch_blog_site_name: perch_blog_post_url: /blog/post.php?s={postSlug} perch_blog_slug_format: %Y-%m-%d-{postTitle} perch_blog_akismet_key: perch_blog_max_spam_days: 0 perch_members_login_page: /members/login.php?r={returnURL} perch_shop_price_tax_mode: exc perch_shop_site_url: https:// perch_shop_product_url: /shop/products/{slug} perch_shop_default_currency: 47 perch_shop_reporting_currency: 47 perch_shop_invoice_number_format: Invoice%d dashboard: 0 hide_pwd_reset: 0 content_hideNonEditableRegions: 0 content_frontend_edit: 0 perch_blog_comment_notify: 0 PERCH_DEVELOPMENT: 10 PERCH_STAGING: 50 PERCH_PRODUCTION: 100 PERCH_DB_USERNAME: db78335_tony PERCH_DB_SERVER: internal-db.s78335.gridserver.com PERCH_DB_DATABASE: db78335_littleme PERCH_DB_PREFIX: perch2_ PERCH_TZ: Europe/London PERCH_EMAIL_FROM: tony@purpletang.co.uk PERCH_EMAIL_FROM_NAME: Tony Monckton PERCH_LOGINPATH: /perch PERCH_PATH: /nfs/c05/h06/mnt/78335/domains/shop.stylishlittleme.com/html/perch PERCH_CORE: /nfs/c05/h06/mnt/78335/domains/shop.stylishlittleme.com/html/perch/core PERCH_RESFILEPATH: /nfs/c05/h06/mnt/78335/domains/shop.stylishlittleme.com/html/perch/resources PERCH_RESPATH: /perch/resources PERCH_HTML5: 1 PERCH_RUNWAY: PERCH_ERROR_MODE: DIE PERCH_DATE_LONG: %d %B %Y PERCH_DATE_SHORT: %d %b %Y PERCH_TIME_SHORT: %H:%M PERCH_TIME_LONG: %H:%M:%S PERCH_RUNWAY_ROUTED: PERCH_STRONG_PASSWORDS: PERCH_DEBUG: PERCH_PREVIEW_ARG: preview PERCH_TEMPLATE_PATH: /nfs/c05/h06/mnt/78335/domains/shop.stylishlittleme.com/html/perch/templates PERCH_DEFAULT_DOC: index.php PERCH_DEFAULT_EXT: .php PERCH_PRODUCTION_MODE: 100 PERCH_RWD: PERCH_HTML_ENTITIES: PERCH_SSL: PERCH_STRIPSLASHES: PERCH_PROGRESSIVE_FLUSH: 1 PERCH_PARANOID: PERCH_FORCE_SECURE_COOKIES: PERCH_PASSWORD_MIN_LENGTH: 6 PERCH_MAX_FAILED_LOGINS: 10 PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR PERCH_VERIFY_UPLOADS: PERCH_AUTH_PLUGIN: PERCH_DB_CHARSET: utf8 PERCH_DB_PORT: PERCH_DB_SOCKET: PERCH_SESSION_TIMEOUT_MINS: 20 PERCH_SHOP_VERSION: 1.0.6 PERCH_APPS_EDITOR_PLUGIN: markitup PERCH_APPS_EDITOR_MARKUP_LANGUAGE: textile HOSTING SETTINGS
PHP: 5.5.35 Zend: 2.5.0 OS: Linux SAPI: cgi-fcgi Safe mode: not detected MySQL client: 5.5.49 MySQL server: 5.1.63-rel13.4 Free disk space: 3.61 TB Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dba, dom, hash, fileinfo, filter, ftp, gd, gettext, SPL, iconv, session, intl, json, ldap, mbstring, mcrypt, standard, mysqlnd, mysqli, mysql, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, Reflection, imap, SimpleXML, soap, sockets, exif, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi-fcgi, mhash GD: Yes ImageMagick: No PHP max upload size: 20M PHP max form post size: 20M PHP memory limit: 2048M Total max uploadable file size: 20M Resource folder writeable: Yes Session timeout: 24 minutes Native JSON: Yes Filter functions: Yes Transliteration functions: Yes PATH: /usr/local/bin:/usr/bin:/bin REDIRECT_HANDLER: php-latest REDIRECT_STATUS: 200 UNIQUE_ID: V35ze0YgRA4AAHSbOnUAAACY SCRIPT_URL: /perch/core/settings/diagnostics/ SCRIPT_URI: https://shop.stylishlittleme.com/perch/core/settings/diagnostics/ WM_UCONTROL_XMLRPC_SERVER: https://10.0.0.13 ACCESS_DOMAIN: s78335.gridserver.com DATABASE_SERVER: internal-db.s78335.gridserver.com SITE_ROOT: /home/78335 SITE_CGIROOT: /home/78335/cgi-bin SITE_HTMLROOT: /home/78335/domains/shop.stylishlittleme.com/html PHPRC: /home/78335/etc/ HTTP_HOST: shop.stylishlittleme.com HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 HTTP_CONNECTION: keep-alive HTTP_COOKIE: PHPSESSID=d6b1449312140d349b3234a1ab94ac1a; cmsa=1 HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/601.6.17 (KHTML, like Gecko) Version/9.1.1 Safari/601.6.17 HTTP_ACCEPT_LANGUAGE: en-us HTTP_REFERER: https://shop.stylishlittleme.com/perch/core/settings/diagnostics/ HTTP_ACCEPT_ENCODING: gzip, deflate SERVER_SIGNATURE: <address>Apache/2.2.22 Server at shop.stylishlittleme.com Port 80</address> SERVER_SOFTWARE: Apache/2.2.22 SERVER_NAME: shop.stylishlittleme.com SERVER_ADDR: 70.32.68.91 SERVER_PORT: 80 REMOTE_ADDR: 86.181.162.59 DOCUMENT_ROOT: /home/78335/domains/shop.stylishlittleme.com/html SERVER_ADMIN: webmaster@shop.stylishlittleme.com SCRIPT_FILENAME: /home/78335/domains/shop.stylishlittleme.com/html/perch/core/settings/diagnostics/index.php REMOTE_PORT: 53964 REDIRECT_QUERY_STRING: extended REDIRECT_URL: /perch/core/settings/diagnostics/index.php GATEWAY_INTERFACE: CGI/1.1 SERVER_PROTOCOL: HTTP/1.1 REQUEST_METHOD: GET QUERY_STRING: extended REQUEST_URI: /perch/core/settings/diagnostics/?extended SCRIPT_NAME: /perch/core/settings/diagnostics/index.php ORIG_SCRIPT_FILENAME: /etc/apache2/gs-bin/php-latest ORIG_PATH_INFO: /perch/core/settings/diagnostics/index.php ORIG_PATH_TRANSLATED: /home/78335/domains/shop.stylishlittleme.com/html/perch/core/settings/diagnostics/index.php ORIG_SCRIPT_NAME: /gs-bin/php-latest PHP_SELF: /perch/core/settings/diagnostics/index.php REQUEST_TIME_FLOAT: 1467904891.6136 REQUEST_TIME: 1467904891
What product options do you have configured?
perch2_shop_product_options table is empty
and perch2_shop_product_option_values is empty too
tony
So are you saying you've not added any options?
not added any options to the project...
Ok. So what are you hoping to achieve by generating variants? You won't have any variants if you have no options.