Forum

Thread tagged as: Question, Problem

Breadcrumb for Paypal shop product pages

How do I use breadcrumbs for Paypal shop products? Everything works fine on the site for standard pages but then goes missing for shop products

Neil Duddridge

Neil Duddridge 1 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Is the product page added to your Pages list in the control panel?

The product page is /shop/product.php?s=productname

I've not created page in the CMS to link to it if that's what you mean.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, can you do that?

Ok, but the product page is the product page so creating a new 'Page' with option 'already exists or is just a link' and then linking to /shop/product.php?..... doesn't make any difference.

The breadcrumb html is where I see the issue is as there is 'perch:pages' when the shop is 'perch:shop' which I assume makes the breadcrumb code redundant


<perch:before> <section class="page-header"> <div class="container"> <div class="row"> <div class="col-md-12"> <ul class="breadcrumb"> <li><a href="/">Home</a></li> </perch:before> <li> <perch:if exists="perch_item_last"> <perch:pages id="pageNavText" /> <perch:else /> <a href="<perch:pages id="pagePath" />"><perch:pages id="pageNavText" /></a> </perch:if> </li> <perch:after> </ul> </div> </div> <div class="row"> <div class="col-md-12"> <h1><perch:pages id="pageNavText" /></h1> </div> </div> </div> </section> </perch:after>
Drew McLellan

Drew McLellan 2638 points
Perch Support

What output are you expecting?

Ideally:

/ Home / Shop / Product name

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, so Product name obviously isn't a page, so won't cone from the navigation function unless you pass it in.


Diagnostics Perch: 2.8.18 Production mode: Production (100) Installed apps: content (2.8.18), assets (2.8.18), categories (2.8.18), perch_blog (4.6), perch_shop_paypal (1.2.3) DB driver: PDO DB tables: perch2_blog_authors, perch2_blog_comments, perch2_blog_index, perch2_blog_posts, perch2_blog_posts_to_tags, perch2_blog_sections, perch2_blog_tags, perch2_categories, perch2_category_counts, perch2_category_sets, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_gallery_albums, perch2_gallery_image_versions, perch2_gallery_images, perch2_navigation, perch2_navigation_pages, perch2_page_templates, perch2_pages, perch2_resource_log, perch2_resource_tags, perch2_resources, perch2_resources_to_tags, perch2_settings, perch2_shop_categories, perch2_shop_log, perch2_shop_orders, perch2_shop_product_options, perch2_shop_products, perch2_shop_products_to_categories, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users Users: 2 App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_shop_paypal', ); Scheduled tasks for perch_blog: delete_spam_comments (1440 mins) Editor plug-ins: ckeditor, markitup H1: 1885b494ff9542d70fc9ada282f8f546 L1: 0e0aa457fb855add168073f5d29e7c3c headerColour: #007742 content_singlePageEdit: 1 helpURL: siteURL: / hideBranding: 1 content_collapseList: 1 lang: en-gb update_2.8.8: done latest_version: 2.8.15 on_sale_version: 2.8.18 headerScheme: dark dashboard: 1 hide_pwd_reset: 0 content_hideNonEditableRegions: 0 content_frontend_edit: 0 update_2.8.13: done 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: 1 perch_blog_comment_notify: 0 perch_gallery_update: 2.8.5 update_2.8.14: done perch_blog_update: 5.0 perch_shop_paypal_email: xxxx perch_shop_product_url: /shop/product.php?s={productSlug} perch_shop_display_oos: 0 update_2.8.18: done PERCH_DEVELOPMENT: 10 PERCH_STAGING: 50 PERCH_PRODUCTION: 100 PERCH_DB_USERNAME: xxxx PERCH_DB_SERVER: xxxxx PERCH_DB_DATABASE: xxxx PERCH_DB_PREFIX: perch2_ PERCH_TZ: UTC PERCH_EMAIL_FROM: xxxx PERCH_EMAIL_FROM_NAME: xxxx PERCH_LOGINPATH: /site_admin PERCH_PATH: /var/sites/d/xxxx.co.uk/public_html/site_admin PERCH_CORE: /var/sites/d/xxxx.co.uk/public_html/site_admin/core PERCH_RESFILEPATH: /var/sites/d/xxxx.co.uk/public_html/assets PERCH_RESPATH: /assets 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_DEBUG: PERCH_PREVIEW_ARG: preview PERCH_TEMPLATE_PATH: /var/sites/d/xxxx.co.uk/public_html/site_admin/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_AUTH_PLUGIN: PERCH_DB_CHARSET: utf8 PERCH_DB_PORT: PERCH_DB_SOCKET: PERCH_SESSION_TIMEOUT_MINS: 20 HOSTING SETTINGS PHP: 5.6.15 Zend: 2.6.0 OS: Linux SAPI: cgi-fcgi Safe mode: not detected MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: 3c688b6bbc30d36af3ac34fdd4b7b5b787fe5555 $ MySQL server: 5.6.21 Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, gettext, SPL, iconv, session, intl, json, ldap, mbstring, mcrypt, mssql, standard, mysql, mysqlnd, mysqli, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, Reflection, imap, SimpleXML, soap, sockets, exif, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi-fcgi, memcached, memcache, mhash, ionCube Loader, Zend Guard Loader GD: Yes ImageMagick: No PHP max upload size: 100M PHP max form post size: 100M PHP memory limit: 128M Total max uploadable file size: 100M Resource folder writeable: Yes Session timeout: 240 minutes Native JSON: Yes Filter functions: Yes Transliteration functions: Yes DOCUMENT_ROOT: /var/sites/d/xxxx.co.uk/public_html GATEWAY_INTERFACE: CGI/1.1 HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 HTTP_ACCEPT_ENCODING: gzip, deflate, sdch HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8 HTTP_CONNECTION: close HTTP_COOKIE: cmsa=1; PHPSESSID=fb0dd1162bca433bb1fa4ac74af01222 HTTP_HOST: xxxx.co.uk HTTP_REFERER: https://xxxx.co.uk/site_admin/core/settings/diagnostics/ HTTP_UPGRADE_INSECURE_REQUESTS: 1 HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36 HTTP_X_FORWARDED_FOR: xxxx PATH: /bin QUERY_STRING: extended REDIRECT_STATUS: 200 REMOTE_ADDR: xxxx REMOTE_PORT: 40577 REQUEST_METHOD: GET REQUEST_URI: /site_admin/core/settings/diagnostics/?extended SCRIPT_FILENAME: /var/sites/d/xxxx.co.uk/public_html/site_admin/core/settings/diagnostics/index.php SCRIPT_NAME: /site_admin/core/settings/diagnostics/index.php SERVER_ADDR: xxxxx SERVER_ADMIN: you@example.com SERVER_NAME: xxxx.co.uk SERVER_PORT: 80 SERVER_PROTOCOL: HTTP/1.1 SERVER_SOFTWARE: Apache PHP_SELF: /site_admin/core/settings/diagnostics/index.php REQUEST_TIME_FLOAT: 1449608315.55 REQUEST_TIME: 1449608315 argc: 1