Forum

Thread tagged as: Question, Problem, Blog

Multiple Blogs | Autoload.php file

Hi Guys, My apologies if this has been asked before. I am trying to create another (separate blog) for the same website. I have done this in the past without issue by renaming code/filenames in the blog structure. However now when I add the file /vendor/autoload.php in the blog package, it breaks the website & perch. Is there something that this can be manipulated here or has something changed with Perch 3?

Diagnostics

Perch: 3.1.2, PHP: 7.1.20, MySQL: 5.6.39, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (3.1.2), assets (3.1.2), categories (3.1.2), perch_blog (5.6.1), chirp_seo (1.2.1), perch_shop (5.6.1), perch_mailchimp (3.1)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_shop' );
PERCH_LOGINPATH: /perch
PERCH_PATH: /var/www/vhosts/142/1004491/webspace/httpdocs/perch
PERCH_CORE: /var/www/vhosts/142/1004491/webspace/httpdocs/perch/core
PERCH_RESFILEPATH: /var/www/vhosts/142/1004491/webspace/httpdocs/perch/resources
Image manipulation: GD Imagick
PHP limits: Max upload 32M, Max POST 32M, Memory: 256M, Total max file upload: 32M
F1: 3b606135b33e6a102526838f4152a807
Resource folder writeable: Yes
HTTP_HOST: www.lirchocolates.com
DOCUMENT_ROOT: /var/www/vhosts/142/1004491/webspace/httpdocs
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
Cormac Kerrigan

Cormac Kerrigan 0 points

  • 2 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

You can create multiple blogs in Perch Runway.

Hi Drew, Thanks, I've upgraded to Runway but what I'm trying to do or what I've done in the past still ain't working. I'm aware I now have the ability to make multiple blogs, so perhaps you can assist/guide me? Essentially what I'm trying to do is take a Perch blog package, bastardize it to become a simple shop listing page (that functions like exactly like a blog, but plugs into an external cart/buy now button). Note* I've pushed the client towards Perch Shop but they're adamant they have to use Shopify through Perch as their cart and so this is the best solution I can offer.

I should add as I'm not hugely familiar with Perch Shop, but If it can provide the same functionality where I can simply list products in a shop page, assign an individual slug to each product listed and allow me to embed a Shopify Buy Now button code into each product, then I'm open to installing/using this also.

Hi Cormac. You could use a collection to list your products rather hack around with blogs. Shop would be overkill for what you need. Why can't the customer just use Shopify to manage the products or shouldn't I ask ;)?

Jon

Hi Jonathan, The problem with that is, it will appear to the customer in the Perch Dashboard as another blog (not a shop) where they can add by products by new post?! Just doesn't present right. The website already exists and is built on Perch. The shop page is designed and developed. I just need an easy solution to list products on a shop landing page and for each product to have it's own page, where I can then embed Shopify code to a buy now button. Developing through Shopify wouldn't be able to match the design?! They plan to use Shopify for the cart, stock inventory, etc. Even though I know Perch shop will all this....!

Sure. if you’re upgrading to Runway use collections rather than blog. You can add a custom link in the menu so your customer isn’t confused and control the order of items, url segments etc way better than blog. Blog is unsuited to listing products due to its chronoligical nature.

Jonathan Elliman said:

Sure. if you’re upgrading to Runway use collections rather than blog. You can add a custom link in the menu so your customer isn’t confused and control the order of items, url segments etc way better than blog. Blog is unsuited to listing products due to its chronoligical nature.

Thanks for your suggestion Jonathan. This looks like a possible option. I'm very unfamiliar with collections. I'm assuming I just create 1 collection i.e. Shop and have many items listed in there? i.e. shop products. How then do I link this to a physical page, like you would with a blog?

Cormac Kerrigan said:

Jonathan Elliman said:

Sure. if you’re upgrading to Runway use collections rather than blog. You can add a custom link in the menu so your customer isn’t confused and control the order of items, url segments etc way better than blog. Blog is unsuited to listing products due to its chronoligical nature.

Thanks for your suggestion Jonathan. This looks like a possible option. I'm very unfamiliar with collections. I'm assuming I just create 1 collection i.e. Shop and have many items listed in there? i.e. shop products. How then do I link this to a physical page, like you would with a blog?

I'm assuming I have to create a list detail page? https://docs.grabaperch.com/perch/content/functions/how-do-i-create-list-detail-pages/

Yes that's right. You will need to call the collection function (which is really similar to the standard custom content function) from a page template and then set up routing that matches your URI structure e.g. /products/product_sku etc. Generally you'd have one page listing the collection and then another page listing the details.

https://docs.grabaperch.com/runway/collections/

Drew McLellan

Drew McLellan 2638 points
Perch Support

Or use the Shop app to do your product listings - it's designed for that. You don't have to use Shop's checkout, you could pass off to Shopify at that point.

Drew McLellan said:

Or use the Shop app to do your product listings - it's designed for that. You don't have to use Shop's checkout, you could pass off to Shopify at that point.

Thanks Drew. I have never used Perch shop but willing to try it out. I have it installed and fully configured it, but am getting somewhat confused in what I need to do next to see my listings and detail pages. Can you advise which functions I should concentrate on using for product/SKU listings, categories and product detail page. I don't need the cart, etc or indeed many other shop functions. I would appreciate if you could point me towards some simple Perch Shop examples.

Drew McLellan

Drew McLellan 2638 points
Perch Support

I would focus on using the product functions: https://docs.grabaperch.com/functions/shop/products/

For an example, try here: https://github.com/PerchCMS/perchdemo-nest